summaryrefslogtreecommitdiff
path: root/games/crafty-open-large
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1998-06-04 02:37:38 +0000
committerMatthew Hunt <mph@FreeBSD.org>1998-06-04 02:37:38 +0000
commit2ed28273621f34285f50f40ddc08ccc296170f48 (patch)
tree0ee0f82e98ad5c95f36f8acee7ae8d2b0b00f6c2 /games/crafty-open-large
parentImport of crafty-open-medium, the medium-sized opening book for the (diff)
Import of crafty-open-large, the (surprise!) large opening book for
the Crafty chess program. PR: 6817 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
Notes
Notes: svn path=/head/; revision=11233
Diffstat (limited to 'games/crafty-open-large')
-rw-r--r--games/crafty-open-large/Makefile40
-rw-r--r--games/crafty-open-large/distinfo4
-rw-r--r--games/crafty-open-large/files/book-building2
-rw-r--r--games/crafty-open-large/pkg-comment1
-rw-r--r--games/crafty-open-large/pkg-descr9
-rw-r--r--games/crafty-open-large/pkg-plist2
6 files changed, 58 insertions, 0 deletions
diff --git a/games/crafty-open-large/Makefile b/games/crafty-open-large/Makefile
new file mode 100644
index 000000000000..69d93341fff2
--- /dev/null
+++ b/games/crafty-open-large/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: crafty-open-large
+# Version required: 10 September 1996
+# Date created: 1 June 1998
+# Whom: Stefan Eggers <seggers@semyam.dinoco.de>
+#
+# $Id$
+#
+
+DISTNAME= crafty-open-large-19960910
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/common/
+DISTFILES= large1.zip large2.zip large3.zip large4.zip
+
+MAINTAINER= seggers@semyam.dinoco.de
+
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \
+ crafty:${PORTSDIR}/games/crafty
+RUN_DEPENDS= crafty:${PORTSDIR}/games/crafty
+
+DIST_SUBDIR= crafty
+EXTRACT_AFTER_ARGS=
+EXTRACT_BEFORE_ARGS=
+EXTRACT_CMD= unzip
+NO_WRKSUBDIR= yes
+
+post-extract:
+ @${ECHO_MSG} '================================================================'
+ @${ECHO_MSG} 'Ignore warnings about illegal moves. These warnings are normal.'
+ @${ECHO_MSG} '================================================================'
+ ${CAT} ${WRKDIR}/Book1.pgn ${WRKDIR}/Book2.pgn ${WRKDIR}/Book3.pgn ${WRKDIR}/Book4.pgn >${WRKDIR}/Book.pgn
+ ${RM} ${WRKDIR}/Book1.pgn ${WRKDIR}/Book2.pgn ${WRKDIR}/Book3.pgn ${WRKDIR}/Book4.pgn
+
+do-build:
+ (cd ${WRKDIR}; crafty <${FILESDIR}/book-building)
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib/crafty
+ ${INSTALL_DATA} ${WRKDIR}/book.bin ${PREFIX}/lib/crafty/large-book.bin
+
+.include <bsd.port.mk>
diff --git a/games/crafty-open-large/distinfo b/games/crafty-open-large/distinfo
new file mode 100644
index 000000000000..a10bb8a1308e
--- /dev/null
+++ b/games/crafty-open-large/distinfo
@@ -0,0 +1,4 @@
+MD5 (crafty/large1.zip) = 0ed222c7df3eb9a0f4ad91c76dc0349c
+MD5 (crafty/large2.zip) = 8f1bdc7dd3f9379d5e6fd43f1f9c07d3
+MD5 (crafty/large3.zip) = b9c6fbdfb56b489e31a85382c8142ff3
+MD5 (crafty/large4.zip) = 96ac81e6c7c4a851d9ad7996539f4d61
diff --git a/games/crafty-open-large/files/book-building b/games/crafty-open-large/files/book-building
new file mode 100644
index 000000000000..3377c3203fa4
--- /dev/null
+++ b/games/crafty-open-large/files/book-building
@@ -0,0 +1,2 @@
+book create Book.pgn 60 3
+quit
diff --git a/games/crafty-open-large/pkg-comment b/games/crafty-open-large/pkg-comment
new file mode 100644
index 000000000000..b0a613b44cb3
--- /dev/null
+++ b/games/crafty-open-large/pkg-comment
@@ -0,0 +1 @@
+The large opening book for crafty.
diff --git a/games/crafty-open-large/pkg-descr b/games/crafty-open-large/pkg-descr
new file mode 100644
index 000000000000..7cfe5d539b1e
--- /dev/null
+++ b/games/crafty-open-large/pkg-descr
@@ -0,0 +1,9 @@
+This is the port of the large opening book for crafty.
+
+It was created with "book create book.txt 60 3" (see the crafty
+documentation and online help for a more thorough explanation of what
+this does) which discards all openings not played in at least three
+games which I expect to be a reasonable constant, but I am open to
+suggestions on this.
+
+- Stefan Eggers <seggers@semyam.dinoco.de>
diff --git a/games/crafty-open-large/pkg-plist b/games/crafty-open-large/pkg-plist
new file mode 100644
index 000000000000..19ff5a8de2e0
--- /dev/null
+++ b/games/crafty-open-large/pkg-plist
@@ -0,0 +1,2 @@
+lib/crafty/large-book.bin
+@dirrm lib/crafty