summaryrefslogtreecommitdiff
path: root/games/gnuchess/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-03-26 08:29:25 +0000
committerjlam <jlam@pkgsrc.org>2000-03-26 08:29:25 +0000
commitc1a19d047c10431f00fc65db8906952f687d16f7 (patch)
tree495c20aa428aa90adc45f1ec9724f4ab7303dcc9 /games/gnuchess/Makefile
parent45c2310c697ed4041bb13fde76a90eab3311f286 (diff)
downloadpkgsrc-c1a19d047c10431f00fc65db8906952f687d16f7.tar.gz
Update gnuchess to 5.00. From the GNU chess web page:
Version 5.00 is the current release. Version 5.00 shares no code with versions 1.x through 4.x. The major motivation for this release is to simplify chess code making it more pedantically accessible, use modern data structures, make it easy to modify by less skilled programmers, and increase understandability to non-programmer, skilled chess experts.
Diffstat (limited to 'games/gnuchess/Makefile')
-rw-r--r--games/gnuchess/Makefile38
1 files changed, 23 insertions, 15 deletions
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile
index 564917df41d..2b716bce454 100644
--- a/games/gnuchess/Makefile
+++ b/games/gnuchess/Makefile
@@ -1,24 +1,32 @@
-# $NetBSD: Makefile,v 1.6 1999/11/17 23:21:53 tron Exp $
+# $NetBSD: Makefile,v 1.7 2000/03/26 08:29:25 jlam Exp $
# FreeBSD Id: Makefile,v 1.6 1999/01/27 07:41:12 fenner Exp
#
-DISTNAME= gnuchess-4.0.pl80
-PKGNAME= gnuchess-4.0.80
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
-CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_LOCAL}
+DISTNAME= chess-5.00
+PKGNAME= gnuchess-5.00
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
-MAINTAINER= packages@netbsd.org
-HOMEPAGE= http://www.gnu.org/software/chess/chess.html
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.gnu.org/software/chess/chess.html
-MIRROR_DISTFILE= no
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+ALL_TARGET= gnuchess
-GNU_CONFIGURE= yes
+post-build:
+ ${SED} -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/gnuchessx.sh \
+ > ${WRKDIR}/gnuchessx.sh
-post-install:
- ${MKDIR} ${PREFIX}/share/doc/gnuchess
-.for file in ARTICLE ARTICLE.2 CHESSTOOL FAQ HEURISTICS MOVE-GEN README.font README.output
- ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${file} ${PREFIX}/share/doc/gnuchess
-.endfor
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gnuchess ${PREFIX}/bin/gnuchess
+ ${INSTALL_SCRIPT} ${WRKDIR}/gnuchessx.sh ${PREFIX}/bin/gnuchessx
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/gnuchess
+ ${INSTALL_DATA} ${WRKSRC}/book.dat ${WRKSRC}/book.pgn \
+ ${PREFIX}/share/gnuchess
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnuchess
+ ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/README \
+ ${PREFIX}/share/doc/gnuchess
.include "../../mk/bsd.pkg.mk"