summaryrefslogtreecommitdiff
path: root/games/crafty-open-medium
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1998-06-04 02:34:00 +0000
committerMatthew Hunt <mph@FreeBSD.org>1998-06-04 02:34:00 +0000
commitb76b447c9cc411033d4b4091dcef2525bc1502a7 (patch)
tree763c8592fe0f36fe9c387e867a62c57633041cb0 /games/crafty-open-medium
parentImport of crafty-open-small, the small opening book for the Crafty (diff)
Import of crafty-open-medium, the medium-sized opening book for the
Crafty chess program. PR: 6817 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
Notes
Notes: svn path=/head/; revision=11232
Diffstat (limited to 'games/crafty-open-medium')
-rw-r--r--games/crafty-open-medium/Makefile37
-rw-r--r--games/crafty-open-medium/distinfo1
-rw-r--r--games/crafty-open-medium/files/book-building2
-rw-r--r--games/crafty-open-medium/pkg-comment1
-rw-r--r--games/crafty-open-medium/pkg-descr10
-rw-r--r--games/crafty-open-medium/pkg-plist2
6 files changed, 53 insertions, 0 deletions
diff --git a/games/crafty-open-medium/Makefile b/games/crafty-open-medium/Makefile
new file mode 100644
index 000000000000..d9d6de7d2e15
--- /dev/null
+++ b/games/crafty-open-medium/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: crafty-open-medium
+# Version required: 10 September 1996
+# Date created: 1 June 1998
+# Whom: Stefan Eggers <seggers@semyam.dinoco.de>
+#
+# $Id$
+#
+
+DISTNAME= medium
+PKGNAME= crafty-open-medium-19960910
+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/medium-book.bin
+
+.include <bsd.port.mk>
diff --git a/games/crafty-open-medium/distinfo b/games/crafty-open-medium/distinfo
new file mode 100644
index 000000000000..c6ac2942bec4
--- /dev/null
+++ b/games/crafty-open-medium/distinfo
@@ -0,0 +1 @@
+MD5 (crafty/medium.zip) = 6b4a61d15029811d7cdc34d6adae7a17
diff --git a/games/crafty-open-medium/files/book-building b/games/crafty-open-medium/files/book-building
new file mode 100644
index 000000000000..746ea0c3b88e
--- /dev/null
+++ b/games/crafty-open-medium/files/book-building
@@ -0,0 +1,2 @@
+book create book.txt 60 3
+quit
diff --git a/games/crafty-open-medium/pkg-comment b/games/crafty-open-medium/pkg-comment
new file mode 100644
index 000000000000..d665b1195c19
--- /dev/null
+++ b/games/crafty-open-medium/pkg-comment
@@ -0,0 +1 @@
+The medium opening book (about 1.9 MByte) for crafty.
diff --git a/games/crafty-open-medium/pkg-descr b/games/crafty-open-medium/pkg-descr
new file mode 100644
index 000000000000..a3db5df7ab83
--- /dev/null
+++ b/games/crafty-open-medium/pkg-descr
@@ -0,0 +1,10 @@
+This is the port of the medium opening book for crafty. It consumes
+about 1.9 MByte.
+
+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-medium/pkg-plist b/games/crafty-open-medium/pkg-plist
new file mode 100644
index 000000000000..580249025b99
--- /dev/null
+++ b/games/crafty-open-medium/pkg-plist
@@ -0,0 +1,2 @@
+lib/crafty/medium-book.bin
+@dirrm lib/crafty