summaryrefslogtreecommitdiff
path: root/games/exchess-book-small/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2000-10-25 08:41:25 +0000
committerjlam <jlam>2000-10-25 08:41:25 +0000
commitd8ceadb6d679b6b74aedb8eed37d0d3dd2e02166 (patch)
tree66e32185290d0718dfadbb20666ec76d2c3c65a8 /games/exchess-book-small/Makefile
parent1cdcf18176a9d4e40151c9895c220a110ff79846 (diff)
downloadpkgsrc-d8ceadb6d679b6b74aedb8eed37d0d3dd2e02166.tar.gz
chess opening book for EXchess (small)
Diffstat (limited to 'games/exchess-book-small/Makefile')
-rw-r--r--games/exchess-book-small/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/games/exchess-book-small/Makefile b/games/exchess-book-small/Makefile
new file mode 100644
index 00000000000..c8b517041b4
--- /dev/null
+++ b/games/exchess-book-small/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/10/25 08:41:25 jlam Exp $
+
+DISTNAME= small
+PKGNAME= ${CHESS_ENGINE}-book-${DISTNAME}-20000511
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/common/${DISTNAME}/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= jlam@netbsd.org
+
+DEPENDS+= exchess-[0-9]*:../../games/exchess
+
+CONFLICTS= ${CHESS_ENGINE}-book-*
+
+CHESS_ENGINE= exchess
+DIST_SUBDIR= chessbooks
+NO_WRKSUBDIR= # defined
+NO_CONFIGURE= # defined
+
+PLIST_SUBST+= CHESS_ENGINE=${CHESS_ENGINE}
+PLIST_SUBST+= BOOK_FILE=${BOOK_FILE}
+
+BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE}
+PGN_FILE= ${DISTNAME}.txt
+BOOK_FILE= open_bk.dat
+
+CMDFILE= ${WRKSRC}/exchess.input
+
+do-build:
+ ${RM} -f ${CMDFILE}
+ ${ECHO} "build" > ${CMDFILE}
+ ${ECHO} "${PGN_FILE}" >> ${CMDFILE}
+ ${ECHO} "60" >> ${CMDFILE}
+ ${ECHO} "3" >> ${CMDFILE}
+ ${ECHO} "${BOOK_FILE}" >> ${CMDFILE}
+ ${ECHO} "quit" >> ${CMDFILE}
+ cd ${WRKSRC} && exchess < ${CMDFILE}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${BOOKDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR}
+
+.include "../../mk/bsd.pkg.mk"