summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-11-10 17:34:10 +0000
committerjlam <jlam@pkgsrc.org>2000-11-10 17:34:10 +0000
commit9c3064b08d6098c7634aad94d7af5805c22faf93 (patch)
tree6e2f1ec624735ef3a43ed378cf9684a8cb0e494d /games
parent9a7dfc314f18db3cff023dd0d7917a5330a28b85 (diff)
downloadpkgsrc-9c3064b08d6098c7634aad94d7af5805c22faf93.tar.gz
Update crafty to 17.14. The author kindly accepted all patches back into the
main source tree, so no more pkgsrc patches. Changes from version 17.13: another endgame evaluation problem fixed. the outside passed pawn code worked well, up until the point the pawn had to be given up to decoy the other side's king away from the remainder of the pawns. Crafty now understands the king being closer to the pawns than the enemy king, and therefore transitions from outside passer to won king-pawn ending much cleaner. new command "selective" as requested by S. Lim, which allows the user to set the min/max null move R values (default=2/3). they can be set to 0 which disables null-move totally, or they can be set larger than the default for testing. minor changes to init.c sent by Eugene Nalimov to handle 64 bit pointer declarations for win64 executable compilation. NetBSD changes included along with a new Makefile that requires no editing to use for any known configuration ("make help" will explain how to use it). this was submitted by Johnny Lam. serious changes to the outside passed pawn code. the evaluator now understands that outside passers on _both_ sides of the board is basically winning. same goes for candidate passers.
Diffstat (limited to 'games')
-rw-r--r--games/crafty/Makefile8
-rw-r--r--games/crafty/files/md510
-rw-r--r--games/crafty/files/patch-sum12
-rw-r--r--games/crafty/patches/patch-aa485
-rw-r--r--games/crafty/patches/patch-ab87
-rw-r--r--games/crafty/patches/patch-ac22
-rw-r--r--games/crafty/patches/patch-ad12
-rw-r--r--games/crafty/patches/patch-ae13
-rw-r--r--games/crafty/patches/patch-af13
9 files changed, 16 insertions, 646 deletions
diff --git a/games/crafty/Makefile b/games/crafty/Makefile
index 8bc215803c0..89c5893bc34 100644
--- a/games/crafty/Makefile
+++ b/games/crafty/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2000/11/10 17:34:10 jlam Exp $
-DISTNAME= crafty-17.13
+DISTNAME= crafty-17.14
CATEGORIES= games
MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/ \
ftp://ftp.cis.uab.edu/pub/hyatt/common/ \
@@ -19,6 +19,7 @@ EXTRACT_ONLY= ${CRAFTY_DISTFILES}
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "NetBSD"
.if ${MACHINE_ARCH} == "i386"
.if ${OBJECT_FMT} == "ELF"
ALL_TARGET= netbsd-i386-elf
@@ -27,6 +28,9 @@ ALL_TARGET= netbsd-i386
.endif
.elif ${MACHINE_ARCH} == "sparc"
ALL_TARGET= netbsd-sparc
+.else
+ALL_TARGET= netbsd
+.endif
.endif
CRAFTY_OPTS= -DBOOKDIR=\\\"${BOOKDIR}\\\"
diff --git a/games/crafty/files/md5 b/games/crafty/files/md5
index 05f318a41a9..f6f78391201 100644
--- a/games/crafty/files/md5
+++ b/games/crafty/files/md5
@@ -1,6 +1,6 @@
-$NetBSD: md5,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
+$NetBSD: md5,v 1.2 2000/11/10 17:34:11 jlam Exp $
-MD5 (crafty-17.13/crafty-17.13.tar.gz) = b4834719fe166ea3d4d5446114299e73
-MD5 (crafty-17.13/start.pgn) = 36185094abfee19d7d47af89bcb8969e
-MD5 (crafty-17.13/read.me) = 14ed88844764137e023e28539feb936b
-MD5 (crafty-17.13/crafty.faq) = f744727e291b6dec7e7c69bb3586b6dd
+MD5 (crafty-17.14/crafty-17.14.tar.gz) = 4f6553e1f7f2a50578ae9cf461cab5da
+MD5 (crafty-17.14/start.pgn) = 36185094abfee19d7d47af89bcb8969e
+MD5 (crafty-17.14/read.me) = 14ed88844764137e023e28539feb936b
+MD5 (crafty-17.14/crafty.faq) = f744727e291b6dec7e7c69bb3586b6dd
diff --git a/games/crafty/files/patch-sum b/games/crafty/files/patch-sum
index 8c088897f0b..90d57e9f64a 100644
--- a/games/crafty/files/patch-sum
+++ b/games/crafty/files/patch-sum
@@ -1,8 +1,6 @@
-$NetBSD: patch-sum,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
+$NetBSD: patch-sum,v 1.2 2000/11/10 17:34:11 jlam Exp $
-MD5 (patch-aa) = 94fc6f5fa59071f8e7f92c112c078a15
-MD5 (patch-ab) = bc5f2fe5c04f68c92cb418d643024df4
-MD5 (patch-ac) = c36255b29dc281bad35b67dd9f9a1764
-MD5 (patch-ad) = 02b8426d52fc79ceb69be67881fa95e0
-MD5 (patch-ae) = f0bb4e480e431328c106639be43246d0
-MD5 (patch-af) = 09d40c9d26133164b161ade98736e3b5
+This placeholder file is generated by the ``makepatchsum'' target
+whenever the patches directory is empty or missing. Its purpose
+is to ensure that the presence of any obsolete patches will cause
+the proper error to be emitted at build time.
diff --git a/games/crafty/patches/patch-aa b/games/crafty/patches/patch-aa
deleted file mode 100644
index 89bcb307d92..00000000000
--- a/games/crafty/patches/patch-aa
+++ /dev/null
@@ -1,485 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
-
---- Makefile.orig Fri Jun 9 12:56:10 2000
-+++ Makefile
-@@ -1,8 +1,6 @@
-
- # To build crafty:
- #
--# Uncomment the sections relevant to your architecture.
--# You may need to tune the two gcc lines below to match your compiler.
- # You want to set up for maximum optimization, but typically you will
- # need to experiment to see which options provide the fastest code.
- # This is optimized for pgcc, which is a fairly current compiler.
-@@ -14,8 +12,8 @@
- # ALPHALINUX {DEC Alpha running Linux}
- # CRAY1 {any Cray-1 compatible architecture including XMP, YMP,
- # C90, etc.}
--# HP {HP workstation running HP_UX operating system (unix)}
--# LINUX {80X86 architecture running LINUX (unix)}
-+# HP {HP workstation running HP_UX operating system (Unix)}
-+# LINUX {80X86 architecture running LINUX (Unix)}
- # NT_i386 {80X86 architecture running Windows 95 or NT}
- # NT_AXP {DEC Alpha running Windows NT}
- # DOS {PC running dos/windows, using DJGPP port of gcc to compile}
-@@ -24,7 +22,8 @@
- # SGI {SGI Workstation running Irix (SYSV/R4) Unix}
- # SUN {Sun SparcStation running Solaris (SYSV/R4) Unix}
- # SUN_GCC {Sun SparcStation running Solaris but using gcc
--# FreeBSD {80X86 architecture running FreeBSD (unix)}
-+# FreeBSD {80X86 architecture running FreeBSD (Unix)}
-+# NetBSD {multi-architecture running NetBSD (Unix)}
- #
- # The next options are optimizations inside Crafty that you will have
- # test to see if they help. on some machines, these will slow things
-@@ -44,20 +43,45 @@
- #
- # if you want 6 man EGTB support, you will need to add -DEGTB6 to the
- # options above.
--#
--#
--# AIX
--#target = AIX
--#CC = cc
--#CFLAGS = -O2
--#CPP = $(CC)
--#LDFLAGS =
--#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS
--#opt = -DCOMPACT_ATTACKS
--
--# ALPHA
--#target = ALPHA
--#CC = cc
-+
-+nothing-specified:
-+ @echo "You must specify the system which you want to compile for:"
-+ @echo ""
-+ @echo "make aix IBM AIX"
-+ @echo "make alpha DEC Alpha with OSF/1-Digital UNIX"
-+ @echo "make alpha-host Alpha DECstation optimized for host"
-+ @echo "make alpha-host-nocix Alpha DECstation optimezed for host, no CIX insn"
-+ @echo "make dos DOS on i386 with DJGPP"
-+ @echo "make hpux HP/UX 9/10, /7xx"
-+ @echo "make linux Linux optimized for i386"
-+ @echo "make linux-elf Linux optimized for i386, ELF format"
-+ @echo "make linux-i686 Linux optimized for i686"
-+ @echo "make linux-i686-elf Linux optimized for i686, ELF format"
-+ @echo "make linux-alpha Linux optimized for alpha"
-+ @echo "make freebsd FreeBSD"
-+ @echo "make freebsd-pgcc FreeBSD using Pentium GNU cc"
-+ @echo "make netbsd NetBSD"
-+ @echo "make netbsd-i386 NetBSD optimized for i386"
-+ @echo "make netbsd-i386-elf NetBSD optimized for i386, ELF format"
-+ @echo "make netbsd-sparc NetBSD optimized for sparc"
-+ @echo "make next NeXTSTEP"
-+ @echo "make os2 IBM OS/2 Warp"
-+ @echo "make sgi SGI running IRIX"
-+ @echo "make solaris Solaris 2.x"
-+ @echo "make solaris-gcc Solaris 2.x using GNU cc"
-+ @echo ""
-+ @echo "make generic Try this one if your system isn't listed above;"
-+ @echo " it assumes you have installed GNU cc"
-+ @echo ""
-+
-+aix:
-+ $(MAKE) target=AIX \
-+ CC=cc CXX='$$(CC)' \
-+ CFLAGS='$(CFLAGS} -O2' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS' \
-+ crafty-make
-+
- #Note: "-arch host" assumes you will run the binary on exactly the
- # same kind of ALPHA you compiled it on. Omit it if you want to run
- # the same binary on several kinds of Alpha. If you are on an early
-@@ -66,133 +90,242 @@
- # happens you'll see a message about "instr emulated" after starting
- # crafty; to fix it, change "-arch host" to "-arch ev56 -tune host"
- # and recompile.
--#CFLAGS = -std -fast -O4 -pthread -newc -arch host
--#CPP = cxx
--#LDFLAGS = $(CFLAGS)
--#LIBS = -lpthread -lexc
--#opt = -DSMP -DCPUS=8 -DFAST -DPOSIX
--
--# ALPHALINUX (experimental)
--#target = ALPHA
--#CC = gcc
--#Note: change <your_cpu> below to the type of your CPU
--# (ev4,ev45... or 21064,21064A...) or remove the option -mcpu
--# option for less optimization. If you have the Compaq C Compiler for
--# AlphaLinux you can link the machine/builtins.h from ccc's private
--# include file to /usr/include/alpha, link the directory alpha to machine
--# and remove -DNOBUILTINS from the opt-line
--# THIS TARGET IS EXPERIMENTAL !!!
--#CFLAGS = -O4 -ffast-math -funroll-loops -mcpu=<your_cpu>
--#CPP = g++
--#LDFLAGS = $(CFLAGS)
--#LIBS = -lpthread
--#opt = -DSMP -DCPUS=8 -DFAST -DPOSIX -DNOBUILTINS
--
--# DOS
--# target = DOS
--# CC = gcc
--# CFLAGS = -fomit-frame-pointer -m486 -O3
--# CPP = $(CC)
--# LDFLAGS =
--# opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
--# -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
--#CPP = $(CC)
--#LDFLAGS =
--#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
--# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
--
--# FreeBSD (pgcc)
--#target = FreeBSD
--#CC = gcc
--#CFLAGS = -pipe -D_REENTRANT -mpentium -O -Wall
--#CPP = $(CC)
--#LDFLAGS =
--#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
--# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
--
--# HP
--#target = HP
--#CC = cc
--#OPT = +O3 +Onolimit
--#CFLAGS = +ESlit -Ae +w1
--#CPP = $(CC)
--#LDFLAGS = $(OPT) $(CFLAGS)
--#opt =
--
--# LINUX (gcc 2.95)
--# Note: You have to uncomment exactly ONE of the `asm' lines below.
--target = LINUX
--CC = gcc
--CPP = g++
--CFLAGS = -Wall -pipe -D_REENTRANT -march=i686 -O -fforce-mem \
-- -fomit-frame-pointer -mpreferred-stack-boundary=2
--LDFLAGS = -lpthread
--opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-- -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 -DDGT
-
--# Uncomment the FIRST `asm' line for a.out systems.
--# Uncomment the SECOND `asm' line for ELF systems.
-+alpha:
-+ $(MAKE) target=ALPHA \
-+ CC=cc CXX=cxx \
-+ CFLAGS='$(CFLAGS) -std -fast -O4 -pthread -newc' \
-+ LDFLAGS='$(LDFLAGS) $(CFLAGS)' \
-+ LIBS='-lpthread -lexc' \
-+ opt='$(opt) -DSMP -DCPUS=8 -DFAST -DPOSIX' \
-+ crafty-make
-+
-+alpha-host:
-+ $(MAKE) target=ALPHA \
-+ CC=cc CXX=cxx \
-+ CFLAGS='$(CFLAGS) -std -fast -O4 -pthread -newc -arch host' \
-+ LDFLAGS='$(LDFLAGS) $(CFLAGS)' \
-+ LIBS='-lpthread -lexc' \
-+ opt='$(opt) -DSMP -DCPUS=8 -DFAST -DPOSIX' \
-+ crafty-make
-+
-+alpha-host-nocix:
-+ $(MAKE) target=ALPHA \
-+ CC=cc CXX=cxx \
-+ CFLAGS='$(CFLAGS) -std -fast -O4 -pthread -newc \
-+ -arch ev56 -tune host' \
-+ LDFLAGS='$(LDFLAGS) $(CFLAGS)' \
-+ LIBS='-lpthread -lexc' \
-+ opt='$(opt) -DSMP -DCPUS=8 -DFAST -DPOSIX' \
-+ crafty-make
-+
-+dos:
-+ $(MAKE) target=DOS \
-+ CC=gcc CXX='$$(CC)' \
-+ CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B' \
-+ asm='X86.o' \
-+ crafty-make
-+
-+freebsd:
-+ $(MAKE) target=FreeBSD \
-+ CC=gcc CXX='$$(CC)' \
-+ CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3 -Wall' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
-+ crafty-make
-+
-+freebsd-pgcc:
-+ $(MAKE) target=FreeBSD \
-+ CC=gcc CXX='$$(CC)' \
-+ CFLAGS='$(CFLAGS) -pipe -D_REENTRANT -mpentium -O -Wall' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
-+ crafty-make
-+
-+hpux:
-+ $(MAKE) target=HP \
-+ CC=cc CXX='$$(CC)' \
-+ CFLAGS='$(CFLAGS) +ESlit -Ae +w1' \
-+ LDFLAGS='$(LDFLAGS) +O3 +Onolimit $(CFLAGS)' \
-+ crafty-make
-+
-+linux:
-+ $(MAKE) target=LINUX \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -O3 \
-+ -fforce-mem -fomit-frame-pointer \
-+ LDFLAGS='$(LDFLAGS) -lpthread' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
-+ asm=X86-aout.o \
-+ crafty-make
-+
-+linux-elf:
-+ $(MAKE) target=LINUX \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -O3 \
-+ -fforce-mem -fomit-frame-pointer \
-+ LDFLAGS='$(LDFLAGS) -lpthread' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
-+ asm=X86-elf.o \
-+ crafty-make
-+
-+linux-i686:
-+ $(MAKE) target=LINUX \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -march=i686 -O \
-+ -fforce-mem -fomit-frame-pointer \
-+ -mpreferred-stack-boundary=2' \
-+ LDFLAGS='$(LDFLAGS) -lpthread' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \
-+ -DSMP -DCPUS=4 -DDGT' \
-+ asm=X86-aout.o \
-+ crafty-make
-+
-+linux-i686-elf:
-+ $(MAKE) target=LINUX \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -march=i686 -O \
-+ -fforce-mem -fomit-frame-pointer \
-+ -mpreferred-stack-boundary=2' \
-+ LDFLAGS='$(LDFLAGS) -lpthread' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \
-+ -DSMP -DCPUS=4 -DDGT' \
-+ asm=X86-elf.o \
-+ crafty-make
-+
-+# You may wish to add additional targets called linux-alpha-<your_cpu>
-+# to produce optimized code for your CPU. Just copy the linux-alpha target
-+# and add -mcpu=<your_cpu> to the CFLAGS, where the type of your CPU is
-+# ev4,ev45... or 21064,21064A... Or, just type
- #
--#asm = X86-aout.o
--asm = X86-elf.o
--
--# NEXT
--#target = NEXT
--#CC = /bin/cc
--#CFLAGS = -O2
--#CPP = $(CC)
--#LDFLAGS = $(CFLAGS)
--#opt = -DCOMPACT_ATTACKS
--
--# OS2 (emx09c)
--# target = OS2
--# CC = gcc
--# CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall
--# CPP = $(CC)
--# LDFLAGS = -Zexe -Zcrtdll -s
--# opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
--# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DOS2
--# asm = X86.o
--
--# SGI
--#target = SGI
--#AS = /bin/as
--#CC = cc
--#AFLAGS = -P
--#CFLAGS = -g -32 -mips2 -cckr
--#CPP = $(CC)
--#LDFLAGS =
--#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS
--#opt =
--
--# SUN
--#target = SUN
--#AS = /usr/ccs/bin/as
--#CC = cc
--#AFLAGS = -P
--#CPP = $(CC)
--#CFLAGS = -fast -xO5 -xunroll=20
--#LDFLAGS = -lpthread
--#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
--# -DUSE_ASSEMBLY_A -DSMP -DCPUS=4 -DMUTEX -DPOSIX
--#asm = Sparc.o
--
--# SUN_GCC (using gcc comiler)
--#target = SUN
--#AS = /usr/ccs/bin/as
--#CC = gcc
--#AFLAGS=-P
--#CPP = g++
--#CFLAGS= -Wall -pipe -D_REENTRANT -O2 -fforce-mem -fomit-frame-pointer
--#LDFLAGS=
--#opt = -DCOMPACT_ATTACK -DUSE_ATTACK_FUNCTIONS -DUSE_ASSEMBLY_A
--#asm = Sparc.o
-+# make linux-alpha CFLAGS='-mcpu=<your_cpu>'
-+#
-+# If you have the Compaq C Compiler for AlphaLinux you can link the
-+# machine/builtins.h from ccc's private include file to /usr/include/alpha,
-+# link the directory alpha to machine and remove -DNOBUILTINS from the
-+# opt-line.
-+#
-+# THIS TARGET IS EXPERIMENTAL !!!
-+
-+linux-alpha:
-+ $(MAKE) target=ALPHA \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -O4 -ffast-math -funroll-loops' \
-+ LDFLAGS='$(LDFLAGS) $(CFLAGS)' \
-+ LIBS='-lpthread' \
-+ opt='$(opt) -DSMP -DCPUS=8 -DFAST -DPOSIX -DNOBUILTINS' \
-+ crafty-make
-+
-+netbsd:
-+ $(MAKE) target=NetBSD \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall \
-+ -fomit-frame-pointer -funroll-all-loops \
-+ -finline-functions -ffast-math' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST' \
-+ crafty-make
-+
-+netbsd-i386:
-+ $(MAKE) target=NetBSD \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall -m486 \
-+ -fomit-frame-pointer -funroll-all-loops \
-+ -finline-functions -ffast-math' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B' \
-+ asm=X86-aout.o \
-+ crafty-make
-+
-+netbsd-i386-elf:
-+ $(MAKE) target=NetBSD \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall -m486 \
-+ -fomit-frame-pointer -funroll-all-loops \
-+ -finline-functions -ffast-math' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B' \
-+ asm=X86-elf.o \
-+ crafty-make
-+
-+netbsd-sparc:
-+ $(MAKE) target=NetBSD \
-+ CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS) -D_REENTRANT -O3 -Wall \
-+ -fomit-frame-pointer -funroll-all-loops \
-+ -finline-functions -ffast-math' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST \
-+ -DUSE_ASSEMBLY_A' \
-+ asm=Sparc.o \
-+ crafty-make
-+
-+next:
-+ $(MAKE) target=NEXT \
-+ CC=/bin/cc CXX='$$(CC)' \
-+ CFLAGS='$(CFLAGS) -O2' \
-+ LDFLAGS='$(LDFLAGS) $(CFLAGS)'
-+ opt='$(opt) -DCOMPACT_ATTACKS' \
-+ crafty-make
-+
-+os2:
-+ $(MAKE) target=OS2 \
-+ CC=gcc CXX='$$(CC)' \
-+ CFLAGS='$(CFLAGS) -fomit-frame-pointer -m486 -O3 -Wall' \
-+ LDFLAGS='$(LDFLAGS) -Zexe -Zcrtdll -s' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
-+ asm=X86.o \
-+ crafty-make
-+
-+sgi:
-+ $(MAKE) target=SGI \
-+ AS=/bin/as CC=cc CXX='$$(CC)' \
-+ AFLAGS='-P' \
-+ CFLAGS='$(CFLAGS) -g -32 -mips2 -cckr' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS' \
-+ crafty-make
-+
-+solaris:
-+ $(MAKE) target=SUN \
-+ AS=/usr/ccs/bin/as CC=cc CXX='$$(CC)' \
-+ AFLAGS='-P' \
-+ CFLAGS='$(CFLAGS) -fast -xO5 -xunroll=20' \
-+ LDFLAGS='$(LDFLAGS) -lpthread' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A -DSMP -DCPUS=4 -DMUTEX -DPOSIX' \
-+ asm=Sparc.o \
-+ crafty-make
-+
-+solaris-gcc:
-+ $(MAKE) target=SUN \
-+ AS=/usr/ccs/bin/as CC=gcc CXX=g++ \
-+ AFLAGS='-P' \
-+ CFLAGS='$(CFLAGS) -Wall -pipe -D_REENTRANT -O2 \
-+ -fforce-mem -fomit-frame-pointer' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-+ -DUSE_ASSEMBLY_A' \
-+ asm=Sparc.o \
-+ crafty-make
-+
-+generic:
-+ $(MAKE) CC=gcc CXX=g++ \
-+ CFLAGS='$(CFLAGS)' \
-+ LDFLAGS='$(LDFLAGS)' \
-+ crafty-make
-
- # Do not change anything below this line!
-
-@@ -212,6 +345,13 @@
-
- eval_users = data.o evaluate.o preeval.o
-
-+crafty-make:
-+ @$(MAKE) \
-+ AS='$(AS)' CC='$(CC)' CXX='$(CXX)' \
-+ AFLAGS='$(AFLAGS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' \
-+ opt='$(opt)' asm='$(asm)' \
-+ crafty
-+
- crafty: $(objects)
- $(CC) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS)
- @rm -f X86-elf.S
-@@ -221,7 +361,7 @@
- @cc -O -o dgt dgtdrv.c
-
- egtb.o: egtb.cpp
-- $(CPP) -c $(CFLAGS) $(opts) egtb.cpp
-+ $(CXX) -c $(CFLAGS) $(opts) egtb.cpp
- clean:
- -rm -f *.o crafty X86-elf.X X86-aout.S
-
diff --git a/games/crafty/patches/patch-ab b/games/crafty/patches/patch-ab
deleted file mode 100644
index f15e17dbe6a..00000000000
--- a/games/crafty/patches/patch-ab
+++ /dev/null
@@ -1,87 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
-
---- chess.h.orig Sun Aug 13 23:59:55 2000
-+++ chess.h
-@@ -54,6 +54,12 @@
- #define CDECL
- #define STDCALL
-
-+/* Provide reasonable defaults for UNIX systems. */
-+#undef HAS_64BITS /* machine has 64-bit integers / operators */
-+#define HAS_LONGLONG /* machine has 32-bit/64-bit integers */
-+#define UNIX /* system is unix-based */
-+
-+/* Architecture-specific definitions */
- #if defined(AIX)
- # undef HAS_64BITS /* machine has 64-bit integers / operators */
- # define HAS_LONGLONG /* machine has 32-bit/64-bit integers */
-@@ -99,6 +105,17 @@
- # define HAS_LONGLONG /* machine has 32-bit/64-bit integers */
- # define UNIX /* system is unix-based */
- #endif
-+#if defined(NetBSD)
-+# if defined(__alpha__)
-+# define HAS_64BITS /* machine has 64-bit integers / operators */
-+# undef HAS_LONGLONG /* machine has 32-bit/64-bit integers */
-+# define UNIX /* system is unix-based */
-+# else
-+# undef HAS_64BITS /* machine has 64-bit integers / operators */
-+# define HAS_LONGLONG /* machine has 32-bit/64-bit integers */
-+# define UNIX /* system is unix-based */
-+# endif
-+#endif
- #if defined(NEXT)
- # undef HAS_64BITS /* machine has 64-bit integers / operators */
- # define HAS_LONGLONG /* machine has 32-bit/64-bit integers */
-@@ -156,16 +173,34 @@
-
- # define COMPACT_ATTACKS
- # define USE_ATTACK_FUNCTIONS
-+#endif
-
--# define BOOKDIR "Books"
--# define LOGDIR "Logs"
--# define TBDIR "TB"
--# define RCDIR "."
-+#if defined(MACOS)
-+# if !defined(BOOKDIR)
-+# define BOOKDIR "Books"
-+# endif
-+# if !defined(LOGDIR)
-+# define LOGDIR "Logs"
-+# endif
-+# if !defined(TBDIR)
-+# define TBDIR "TB"
-+# endif
-+# if !defined(RCDIR)
-+# define RCDIR "."
-+# endif
- #else
--# define BOOKDIR "."
--# define LOGDIR "."
--# define TBDIR "./TB"
--# define RCDIR "."
-+# if !defined(BOOKDIR)
-+# define BOOKDIR "."
-+# endif
-+# if !defined(LOGDIR)
-+# define LOGDIR "."
-+# endif
-+# if !defined(TBDIR)
-+# define TBDIR "./TB"
-+# endif
-+# if !defined(RCDIR)
-+# define RCDIR "."
-+# endif
- #endif
-
- # define EGTB_CACHE_DEFAULT 1024*1024
-@@ -195,7 +230,7 @@
- extension is exactly one ply.
- */
-
--#define INCPLY 60 /* 1.00 */
-+#define INCPLY 60 /* 1.00 */
- #define NULL_MOVE_DEPTH 120 /* 2.00 */
- #define RAZORING_DEPTH 60 /* 1.00 */
-
diff --git a/games/crafty/patches/patch-ac b/games/crafty/patches/patch-ac
deleted file mode 100644
index 2e1e7ed4bef..00000000000
--- a/games/crafty/patches/patch-ac
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ac,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
-
---- egtb.cpp.orig Fri Jun 9 23:29:59 2000
-+++ egtb.cpp
-@@ -1234,7 +1234,7 @@
- for (pi3 = x_pieceNone; pi3 <= pi2; pi3 = (piece) (pi3 + 1))
- {
- if (0 != rgcTriplePawnPresent[pi1][pi2][pi3])
-- printf ("%c%c%c - %d enumerated positions\n",
-+ printf ("%c%c%c - %ld enumerated positions\n",
- "pPNBRQ"[pi1], "pPNBRQ"[pi2], "pPNBRQ"[pi3],
- rgcTriplePawnPresent[pi1][pi2][pi3]);
- }
-@@ -1243,7 +1243,7 @@
- for (pi3 = x_pieceNone; pi3 <= pi2; pi3 = (piece) (pi3 + 1))
- {
- if (0 != rgcTriplePawnless[pi1][pi2][pi3])
-- printf ("pawnless %c%c%c - %d enumerated positions\n",
-+ printf ("pawnless %c%c%c - %ld enumerated positions\n",
- "pPNBRQ"[pi1], "pPNBRQ"[pi2], "pPNBRQ"[pi3],
- rgcTriplePawnless[pi1][pi2][pi3]);
- }
diff --git a/games/crafty/patches/patch-ad b/games/crafty/patches/patch-ad
deleted file mode 100644
index 9998fd0a863..00000000000
--- a/games/crafty/patches/patch-ad
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ad,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
-
---- init.c.orig Mon Aug 14 14:00:03 2000
-+++ init.c
-@@ -276,7 +276,6 @@
- position_lrn_file=fopen(log_filename,"r");
- if (!position_lrn_file) {
- position_lrn_file=fopen(log_filename,"a");
-- fprintf(position_lrn_file,"position\n");
- }
- else {
- fclose(position_lrn_file);
diff --git a/games/crafty/patches/patch-ae b/games/crafty/patches/patch-ae
deleted file mode 100644
index dfe0aa7e85e..00000000000
--- a/games/crafty/patches/patch-ae
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ae,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
-
---- tbdecode.h.orig Mon Aug 14 00:00:30 2000
-+++ tbdecode.h
-@@ -76,7 +76,7 @@
- #define dprintf(x) ((void) 0)
- #endif
-
--extern "C" int cbEGTBCompBytes = 0;
-+extern "C" { int cbEGTBCompBytes = 0; }
-
- /* --------------------- Constants, types, etc. ----------------------- */
- /* ---------------------- */
diff --git a/games/crafty/patches/patch-af b/games/crafty/patches/patch-af
deleted file mode 100644
index cbc3b5e1b24..00000000000
--- a/games/crafty/patches/patch-af
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-af,v 1.1.1.1 2000/10/15 02:06:27 jlam Exp $
-
---- utility.c.orig Mon Aug 14 14:39:13 2000
-+++ utility.c
-@@ -27,7 +27,7 @@
- #if defined(UNIX)
- # include <unistd.h>
- # include <sys/types.h>
--# if !defined(LINUX) && !defined(ALPHA) && !defined(HP) && !defined(CRAY1) && !defined(FreeBSD) && !defined(__EMX__)
-+# if !defined(LINUX) && !defined(ALPHA) && !defined(HP) && !defined(CRAY1) && !defined(FreeBSD) && !defined(NetBSD) && !defined(__EMX__)
- # if defined(AIX)
- # include <sys/termio.h>
- # include <sys/select.h>