From 2ed28273621f34285f50f40ddc08ccc296170f48 Mon Sep 17 00:00:00 2001 From: Matthew Hunt Date: Thu, 4 Jun 1998 02:37:38 +0000 Subject: Import of crafty-open-large, the (surprise!) large opening book for the Crafty chess program. PR: 6817 Submitted by: Stefan Eggers --- games/crafty-open-large/Makefile | 40 +++++++++++++++++++++++++++++ games/crafty-open-large/distinfo | 4 +++ games/crafty-open-large/files/book-building | 2 ++ games/crafty-open-large/pkg-comment | 1 + games/crafty-open-large/pkg-descr | 9 +++++++ games/crafty-open-large/pkg-plist | 2 ++ 6 files changed, 58 insertions(+) create mode 100644 games/crafty-open-large/Makefile create mode 100644 games/crafty-open-large/distinfo create mode 100644 games/crafty-open-large/files/book-building create mode 100644 games/crafty-open-large/pkg-comment create mode 100644 games/crafty-open-large/pkg-descr create mode 100644 games/crafty-open-large/pkg-plist (limited to 'games') 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 +# +# $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 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 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 -- cgit v1.2.3