summaryrefslogtreecommitdiff
path: root/games/crafty
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1998-06-01 04:56:10 +0000
committerMatthew Hunt <mph@FreeBSD.org>1998-06-01 04:56:10 +0000
commitcefc28ed475c4c641f3e2a365c8d2e90c8cca37e (patch)
tree052a30f664a5531b93f13af2ed6f0a7bd8519716 /games/crafty
parentActivate crafty. (diff)
Import of Crafty 15.10, a chess program.
PR: 6804 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
Notes
Notes: svn path=/head/; revision=11202
Diffstat (limited to 'games/crafty')
-rw-r--r--games/crafty/Makefile50
-rw-r--r--games/crafty/distinfo5
-rw-r--r--games/crafty/files/books-building2
-rw-r--r--games/crafty/files/crafty.678
-rw-r--r--games/crafty/files/patch-aa70
-rw-r--r--games/crafty/pkg-comment1
-rw-r--r--games/crafty/pkg-descr7
-rw-r--r--games/crafty/pkg-plist8
8 files changed, 221 insertions, 0 deletions
diff --git a/games/crafty/Makefile b/games/crafty/Makefile
new file mode 100644
index 000000000000..afb5d72fe3f6
--- /dev/null
+++ b/games/crafty/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: crafty
+# Version required: 15.10
+# Date created: 31 May 1998
+# Whom: Stefan Eggers <seggers@semyam.dinoco.de>
+#
+# $Id$
+#
+
+DISTNAME= crafty-15.10
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/ \
+ ftp://ftp.cis.uab.edu/pub/hyatt/common/ \
+ ftp://ftp.cis.uab.edu/pub/hyatt/v15/
+DISTFILES= crafty-15.10.tar.gz crafty.doc crafty.faq read.me start.zip
+
+MAINTAINER= seggers@semyam.dinoco.de
+
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+
+ALL_TARGET= crafty
+DIST_SUBDIR= crafty
+EXTRACT_ONLY= crafty-15.10.tar.gz
+
+MAN6= crafty.6
+NO_CDROM= yes
+NO_WRKSUBDIR= yes
+RESTRICTED= "found no copyright notice or anything else - better be safe than sorry"
+
+post-extract:
+ (cd ${WRKDIR}; unzip ${DISTDIR}/${DIST_SUBDIR}/start.zip)
+
+post-build:
+ (cd ${WRKDIR}; ./crafty <${FILESDIR}/books-building)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKDIR}/crafty ${PREFIX}/bin/crafty
+ ${MKDIR} ${PREFIX}/lib/crafty
+ ${INSTALL_DATA} ${WRKDIR}/books.bin ${PREFIX}/lib/crafty/books.bin
+ ${INSTALL_MAN} ${FILESDIR}/crafty.6 ${MANPREFIX}/man/man6/crafty.6
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/crafty
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/crafty.doc ${PREFIX}/share/doc/crafty/crafty.doc
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/crafty.faq ${PREFIX}/share/doc/crafty/crafty.faq
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/read.me ${PREFIX}/share/doc/crafty/read.me
+.endif
+
+post-install:
+ strip ${PREFIX}/bin/crafty
+
+.include <bsd.port.mk>
diff --git a/games/crafty/distinfo b/games/crafty/distinfo
new file mode 100644
index 000000000000..b367904908de
--- /dev/null
+++ b/games/crafty/distinfo
@@ -0,0 +1,5 @@
+MD5 (crafty/crafty-15.10.tar.gz) = a26440d01bd6c2db70452ef4988b99eb
+MD5 (crafty/crafty.doc) = 59295fe5abfd62b51947a093cbd6e48a
+MD5 (crafty/crafty.faq) = f744727e291b6dec7e7c69bb3586b6dd
+MD5 (crafty/read.me) = 033fb765b1f4ba0a85c0770e674a58c5
+MD5 (crafty/start.zip) = 7a9faa5c4c0af5a2defa4dca942daf3d
diff --git a/games/crafty/files/books-building b/games/crafty/files/books-building
new file mode 100644
index 000000000000..4b2c095f4df9
--- /dev/null
+++ b/games/crafty/files/books-building
@@ -0,0 +1,2 @@
+books create start.pgn 60
+quit
diff --git a/games/crafty/files/crafty.6 b/games/crafty/files/crafty.6
new file mode 100644
index 000000000000..de99739b358e
--- /dev/null
+++ b/games/crafty/files/crafty.6
@@ -0,0 +1,78 @@
+.\" Copyright (c) 1998 Stefan Eggers
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $Id: crafty.6,v 1.1 1998/05/31 09:50:19 seggers Exp seggers $
+.\"
+.\" Note: The date here should be updated whenever a non-trivial
+.\" change is made to the manual page.
+.Dd May 31, 1998
+.Dt CRAFTY 6
+.Os
+.Sh NAME
+.Nm crafty
+.Nd chess playing and analysis program
+.Sh SYNOPSIS
+.Nm crafty
+.Sh DESCRIPTION
+.Nm
+is a chess playing and analysis program. It can optionally use
+opening books (available separately) and end game tables. As a
+graphical interface one can use xboard which is available as part of
+the FreeBSD ports collection.
+.Pp
+To make full use of
+.Nm
+one has to copy books.bin and an opening book (all usually located
+under /usr/local/lib/crafty) into ones private directories to allow it
+to learn during use.
+.Sh ENVIRONMENT
+.Nm
+doesn't use any environment variables.
+.Sh FILES
+.Bl -tag -width ./position.bin -compact
+.It Pa ./book.bin
+The opening book.
+.It Pa ./book.lrn
+Human readable version of things learned in openings.
+.It Pa ./books.bin
+A file with opening information which influences which opening
+.Nm
+will choose.
+.It Pa ./position.bin
+Positional information learned.
+.It Pa ./position.lrn
+Human readable version of things learned in positions.
+.El
+.Sh HISTORY
+The
+.Nm
+manual page first appeared in
+.Fx 2.2 .
+.Pp
+.Sh AUTHOR
+This
+manual page was written by
+.An Stefan Eggers Aq seggers@semyam.dinoco.de .
+.Sh BUGS
+None known to the man page author.
diff --git a/games/crafty/files/patch-aa b/games/crafty/files/patch-aa
new file mode 100644
index 000000000000..19d8eefb6878
--- /dev/null
+++ b/games/crafty/files/patch-aa
@@ -0,0 +1,70 @@
+*** Makefile.orig Fri May 22 17:52:39 1998
+--- Makefile Mon Jun 1 00:37:27 1998
+***************
+*** 68,80 ****
+ # -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B
+ # asm = X86.o
+
+! # FreeBSD (gcc 2.6.3)
+! #target = FreeBSD
+ #CC = gcc
+ #CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall
+ #LDFLAGS =
+! #opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
+! # -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
+
+ # FreeBSD (pgcc)
+ #target = FreeBSD
+--- 68,80 ----
+ # -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B
+ # asm = X86.o
+
+! # FreeBSD (gcc 2.7.2.1)
+! target = FreeBSD
+ #CC = gcc
+ #CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall
+ #LDFLAGS =
+! opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
+! -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
+
+ # FreeBSD (pgcc)
+ #target = FreeBSD
+***************
+*** 94,111 ****
+
+ # LINUX
+ # Note: You have to uncomment exactly ONE of the `asm' lines below.
+! target = LINUX
+! CC = gcc
+! CFLAGS = -pipe -D_REENTRANT -mpentiumpro -O -Wall
+! LDFLAGS = -lpthread
+! opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
+! -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4
+
+ # Uncomment the FIRST `asm' line for a.out systems.
+ # Uncomment the SECOND `asm' line for ELF systems.
+ #
+! #asm = X86-aout.o
+! asm = X86-elf.o
+
+ # NEXT
+ #target = NEXT
+--- 94,111 ----
+
+ # LINUX
+ # Note: You have to uncomment exactly ONE of the `asm' lines below.
+! #target = LINUX
+! #CC = gcc
+! #CFLAGS = -pipe -D_REENTRANT -mpentiumpro -O -Wall
+! #LDFLAGS = -lpthread
+! #opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
+! # -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4
+
+ # Uncomment the FIRST `asm' line for a.out systems.
+ # Uncomment the SECOND `asm' line for ELF systems.
+ #
+! asm = X86-aout.o
+! #asm = X86-elf.o
+
+ # NEXT
+ #target = NEXT
diff --git a/games/crafty/pkg-comment b/games/crafty/pkg-comment
new file mode 100644
index 000000000000..1ab613601009
--- /dev/null
+++ b/games/crafty/pkg-comment
@@ -0,0 +1 @@
+A chess programm for playing and analyzing games.
diff --git a/games/crafty/pkg-descr b/games/crafty/pkg-descr
new file mode 100644
index 000000000000..806318b9bb86
--- /dev/null
+++ b/games/crafty/pkg-descr
@@ -0,0 +1,7 @@
+This is crafty - a chess programm which is not just able to play a
+game and tell you the best move but also can annotate PGN files.
+
+The user interface is ASCII based. For a graphical interface one can
+use xboard which interfaces very well with it.
+
+- Stefan Eggers <seggers@semyam.dinoco.de>
diff --git a/games/crafty/pkg-plist b/games/crafty/pkg-plist
new file mode 100644
index 000000000000..f4b3ce5af311
--- /dev/null
+++ b/games/crafty/pkg-plist
@@ -0,0 +1,8 @@
+bin/crafty
+lib/crafty/books.bin
+@dirrm lib/crafty
+man/man6/crafty.6.gz
+share/doc/crafty/crafty.doc
+share/doc/crafty/crafty.faq
+share/doc/crafty/read.me
+@dirrm share/doc/crafty