summaryrefslogtreecommitdiff
path: root/games/exchess-book-small
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-10-25 08:41:25 +0000
committerjlam <jlam@pkgsrc.org>2000-10-25 08:41:25 +0000
commit7be42c40d18f792cb086ef30fbf6669b237b65b5 (patch)
tree66e32185290d0718dfadbb20666ec76d2c3c65a8 /games/exchess-book-small
parent815c3afc23db51051f0840b5f246b78560bae495 (diff)
downloadpkgsrc-7be42c40d18f792cb086ef30fbf6669b237b65b5.tar.gz
chess opening book for EXchess (small)
Diffstat (limited to 'games/exchess-book-small')
-rw-r--r--games/exchess-book-small/Makefile43
-rw-r--r--games/exchess-book-small/files/md53
-rw-r--r--games/exchess-book-small/pkg/COMMENT1
-rw-r--r--games/exchess-book-small/pkg/DESCR1
-rw-r--r--games/exchess-book-small/pkg/PLIST2
5 files changed, 50 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"
diff --git a/games/exchess-book-small/files/md5 b/games/exchess-book-small/files/md5
new file mode 100644
index 00000000000..35b17cd8587
--- /dev/null
+++ b/games/exchess-book-small/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/10/25 08:41:25 jlam Exp $
+
+MD5 (chessbooks/small.zip) = 4faca1c02593e142ab9d901935c41dea
diff --git a/games/exchess-book-small/pkg/COMMENT b/games/exchess-book-small/pkg/COMMENT
new file mode 100644
index 00000000000..136a2e47088
--- /dev/null
+++ b/games/exchess-book-small/pkg/COMMENT
@@ -0,0 +1 @@
+chess opening book for EXchess (small)
diff --git a/games/exchess-book-small/pkg/DESCR b/games/exchess-book-small/pkg/DESCR
new file mode 100644
index 00000000000..573152a25f0
--- /dev/null
+++ b/games/exchess-book-small/pkg/DESCR
@@ -0,0 +1 @@
+Small book of chess openings for EXchess.
diff --git a/games/exchess-book-small/pkg/PLIST b/games/exchess-book-small/pkg/PLIST
new file mode 100644
index 00000000000..11fb9ae47ff
--- /dev/null
+++ b/games/exchess-book-small/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/25 08:41:25 jlam Exp $
+lib/${CHESS_ENGINE}/${BOOK_FILE}