summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1998-06-04 02:32:01 +0000
committerMatthew Hunt <mph@FreeBSD.org>1998-06-04 02:32:01 +0000
commit59b167b80ac3234bde653ad2c2b54257563e1c37 (patch)
tree3a087648f0b01e4d801a4b2590afe85a4b80b9c7 /games
parentInstall xemacs.sh into ${PREFIX}/etc/rc.d to create /var/run/xemacs (diff)
Import of crafty-open-small, the small opening book for the Crafty
chess program. PR: 6817 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
Notes
Notes: svn path=/head/; revision=11231
Diffstat (limited to 'games')
-rw-r--r--games/crafty-open-small/Makefile37
-rw-r--r--games/crafty-open-small/distinfo1
-rw-r--r--games/crafty-open-small/files/book-building2
-rw-r--r--games/crafty-open-small/pkg-comment1
-rw-r--r--games/crafty-open-small/pkg-descr10
-rw-r--r--games/crafty-open-small/pkg-plist2
6 files changed, 53 insertions, 0 deletions
diff --git a/games/crafty-open-small/Makefile b/games/crafty-open-small/Makefile
new file mode 100644
index 000000000000..8fa24333670d
--- /dev/null
+++ b/games/crafty-open-small/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: crafty-open-small
+# Version required: 1 March 1997
+# Date created: 1 June 1998
+# Whom: Stefan Eggers <seggers@semyam.dinoco.de>
+#
+# $Id$
+#
+
+DISTNAME= small
+PKGNAME= crafty-open-small-19970301
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/common/
+EXTRACT_SUFX= .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
+
+do-build:
+ @${ECHO_MSG} '================================================================'
+ @${ECHO_MSG} 'Ignore warnings about illegal moves. These warnings are normal.'
+ @${ECHO_MSG} '================================================================'
+ (cd ${WRKDIR}; crafty <${FILESDIR}/book-building)
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib/crafty
+ ${INSTALL_DATA} ${WRKDIR}/book.bin ${PREFIX}/lib/crafty/small-book.bin
+
+.include <bsd.port.mk>
diff --git a/games/crafty-open-small/distinfo b/games/crafty-open-small/distinfo
new file mode 100644
index 000000000000..73a088ae3d21
--- /dev/null
+++ b/games/crafty-open-small/distinfo
@@ -0,0 +1 @@
+MD5 (crafty/small.zip) = 4faca1c02593e142ab9d901935c41dea
diff --git a/games/crafty-open-small/files/book-building b/games/crafty-open-small/files/book-building
new file mode 100644
index 000000000000..946b060104c7
--- /dev/null
+++ b/games/crafty-open-small/files/book-building
@@ -0,0 +1,2 @@
+book create small.txt 60 3
+quit
diff --git a/games/crafty-open-small/pkg-comment b/games/crafty-open-small/pkg-comment
new file mode 100644
index 000000000000..56355cd18b58
--- /dev/null
+++ b/games/crafty-open-small/pkg-comment
@@ -0,0 +1 @@
+The small opening book (about 600 KByte) for crafty.
diff --git a/games/crafty-open-small/pkg-descr b/games/crafty-open-small/pkg-descr
new file mode 100644
index 000000000000..5f3d3f796376
--- /dev/null
+++ b/games/crafty-open-small/pkg-descr
@@ -0,0 +1,10 @@
+This is the port of the small opening book for crafty. It consumes
+about 600 KByte.
+
+It was created with "book create small.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-small/pkg-plist b/games/crafty-open-small/pkg-plist
new file mode 100644
index 000000000000..d0a4339589f6
--- /dev/null
+++ b/games/crafty-open-small/pkg-plist
@@ -0,0 +1,2 @@
+lib/crafty/small-book.bin
+@dirrm lib/crafty