summaryrefslogtreecommitdiff
path: root/games/gnuchess-book-chess/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-10-15 01:57:10 +0000
committerjlam <jlam@pkgsrc.org>2000-10-15 01:57:10 +0000
commit152e6eb264577477898b42bec7410d6f25c79db9 (patch)
tree46cf7f5b1c8b23bfe8e0a92e461b9058d41ef0b2 /games/gnuchess-book-chess/Makefile
parent3dbb17828a22fd0179fa2a058bac921bc06f6f30 (diff)
downloadpkgsrc-152e6eb264577477898b42bec7410d6f25c79db9.tar.gz
gnuchess-book-chess: chess opening book for GNU Chess (default)
Diffstat (limited to 'games/gnuchess-book-chess/Makefile')
-rw-r--r--games/gnuchess-book-chess/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/games/gnuchess-book-chess/Makefile b/games/gnuchess-book-chess/Makefile
new file mode 100644
index 00000000000..b37dbb89cf6
--- /dev/null
+++ b/games/gnuchess-book-chess/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/10/15 01:57:10 jlam Exp $
+# FreeBSD Id: Makefile,v 1.6 1999/01/27 07:41:12 fenner Exp
+#
+
+DISTNAME= chess-5.00
+PKGNAME= ${CHESS_ENGINE}-book-${DISTNAME}
+WRKSRC= ${WRKDIR}/${DISTNAME}/book
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
+
+MAINTAINER= jlam@netbsd.org
+
+CONFLICTS+= gnuchess-book-*
+
+DEPENDS+= gnuchess>=5.00nb1:../../games/gnuchess
+
+CHESS_ENGINE= gnuchess
+NO_CONFIGURE= # defined
+
+PLIST_SUBST+= CHESS_ENGINE=${CHESS_ENGINE}
+PLIST_SUBST+= BOOK_FILE=${BOOK_FILE}
+
+BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE}
+PGN_FILE= book.pgn
+BOOK_FILE= book.dat
+
+do-build:
+ cd ${WRKSRC} && gnuchess compile ${PGN_FILE} ${BOOK_FILE}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${BOOKDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR}
+
+.include "../../mk/bsd.pkg.mk"