summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormph <mph@FreeBSD.org>1998-06-04 02:37:38 +0000
committermph <mph@FreeBSD.org>1998-06-04 02:37:38 +0000
commit1e0bca3a0cb6f1bade085df2d481c2c1552c8839 (patch)
treeb2fae6daab41fdc67c578f9a280712b3d491bbe2 /games
parent1747d4d7bda260233bf9fcee1ee4415c7e0f41f3 (diff)
downloadFreeBSD-ports-1e0bca3a0cb6f1bade085df2d481c2c1552c8839.zip
FreeBSD-ports-1e0bca3a0cb6f1bade085df2d481c2c1552c8839.tar.gz
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>
Diffstat (limited to 'games')
-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 0000000..69d9334
--- /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 0000000..a10bb8a
--- /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 0000000..3377c32
--- /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 0000000..b0a613b
--- /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 0000000..7cfe5d5
--- /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 0000000..19ff5a8
--- /dev/null
+++ b/games/crafty-open-large/pkg-plist
@@ -0,0 +1,2 @@
+lib/crafty/large-book.bin
+@dirrm lib/crafty
OpenPOWER on IntegriCloud