summaryrefslogtreecommitdiff
path: root/games/gnuchess
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-03-08 06:03:10 +0000
committerminskim <minskim@pkgsrc.org>2004-03-08 06:03:10 +0000
commita200c5abefc82da5c6df3670f96f8adfef53a918 (patch)
treebf322aedbe54bcfa39165bfe097a91fea572c0be /games/gnuchess
parentfcd84d24da07f86fb327467daa7afb063f0fd350 (diff)
downloadpkgsrc-a200c5abefc82da5c6df3670f96f8adfef53a918.tar.gz
Read in default an opening book installed by gnuchess-book-*. Also
note opening book packages in DESCR. Bump PKGREVISION.
Diffstat (limited to 'games/gnuchess')
-rw-r--r--games/gnuchess/DESCR11
-rw-r--r--games/gnuchess/Makefile9
2 files changed, 14 insertions, 6 deletions
diff --git a/games/gnuchess/DESCR b/games/gnuchess/DESCR
index e386dd12567..a01d9ec5803 100644
--- a/games/gnuchess/DESCR
+++ b/games/gnuchess/DESCR
@@ -1,6 +1,7 @@
- Gnuchess plays a game of chess against the user or it
- plays against itself.
+Gnuchess plays a game of chess against the user or it plays against
+itself.
- Gnuchess is an updated version of the GNU chess playing
- program. It has a simple alpha-numeric board display or
- can be run with the xboard program under X-windows.
+Gnuchess is an updated version of the GNU chess playing program. It
+has a simple alpha-numeric board display or can be run with the xboard
+program under X-windows. It can use an opening book provided by one
+of gnuchess-book-* packages.
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile
index d5a46fa84fa..e54b47ab6e6 100644
--- a/games/gnuchess/Makefile
+++ b/games/gnuchess/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.21 2004/03/08 03:04:36 minskim Exp $
+# $NetBSD: Makefile,v 1.22 2004/03/08 06:03:10 minskim Exp $
# FreeBSD Id: Makefile,v 1.6 1999/01/27 07:41:12 fenner Exp
#
DISTNAME= gnuchess-5.07
+PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
@@ -26,6 +27,12 @@ CONFIGURE_ENV+= CFLAGS="-O -Winline -Wmissing-prototypes -funroll-loops"
CONFIGURE_ENV+= CFLAGS="-O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer"
.endif
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= "Fixing hardcoded paths."
+SUBST_STAGE.paths= post-patch
+SUBST_FILES.paths= src/book.h
+SUBST_SED.paths= -e 's,/usr/lib/games/,${LOCALBASE}/lib/,g' \
+
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/README ${DOCDIR}