diff options
author | Steve Price <steve@FreeBSD.org> | 1999-06-06 17:40:06 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-06-06 17:40:06 +0000 |
commit | 6d2420d1291aed3524c390740af5d3a3f4f9aba5 (patch) | |
tree | 4412c3844002a4d9761dac03a3690b7a881bb464 /games/phalanx | |
parent | 1a61574f58f4a7565c1cd4cacd3f0eeb44593553 (diff) | |
download | ports-6d2420d1291aed3524c390740af5d3a3f4f9aba5.tar.gz ports-6d2420d1291aed3524c390740af5d3a3f4f9aba5.zip |
Initial import of phalanx version 21.
An xboard-compatible chess playing program.
PR: 11600
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Notes
Notes:
svn path=/head/; revision=19268
Diffstat (limited to 'games/phalanx')
-rw-r--r-- | games/phalanx/Makefile | 37 | ||||
-rw-r--r-- | games/phalanx/distinfo | 1 | ||||
-rw-r--r-- | games/phalanx/files/patch-aa | 33 | ||||
-rw-r--r-- | games/phalanx/pkg-comment | 1 | ||||
-rw-r--r-- | games/phalanx/pkg-descr | 11 | ||||
-rw-r--r-- | games/phalanx/pkg-plist | 7 |
6 files changed, 90 insertions, 0 deletions
diff --git a/games/phalanx/Makefile b/games/phalanx/Makefile new file mode 100644 index 000000000000..cd745d5d8102 --- /dev/null +++ b/games/phalanx/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: phalanx +# Version required: 21 +# Date created: 2 May 1999 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= phalanx-21 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SUNSITE} \ + ftp://ftp.math.muni.cz/pub/math/people/Dobes/ +MASTER_SITE_SUBDIR= games/strategy + +MAINTAINER= andy@icc.surw.chel.su + +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt + +WRKSRC= ${WRKDIR}/Phalanx-XXI +USE_GMAKE= yes +ALL_TARGET= +MAKEFILE= makefile + +do-install: + @ ${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${PREFIX}/bin + @ ${MKDIR} ${PREFIX}/share/phalanx + @ ${INSTALL_DATA} ${WRKSRC}/pbook.phalanx ${PREFIX}/share/phalanx + @ ${INSTALL_DATA} ${WRKSRC}/sbook.phalanx ${PREFIX}/share/phalanx + +post-install: +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${PREFIX}/share/doc/phalanx + @ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/phalanx + @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/phalanx +.endif + +.include <bsd.port.mk> diff --git a/games/phalanx/distinfo b/games/phalanx/distinfo new file mode 100644 index 000000000000..7bb6e46b7f19 --- /dev/null +++ b/games/phalanx/distinfo @@ -0,0 +1 @@ +MD5 (phalanx-21.tar.gz) = ab1ae987833c25cf8ce00ca8cf2b5b8c diff --git a/games/phalanx/files/patch-aa b/games/phalanx/files/patch-aa new file mode 100644 index 000000000000..ce2d009e2c83 --- /dev/null +++ b/games/phalanx/files/patch-aa @@ -0,0 +1,33 @@ +--- makefile Sat Jan 30 00:26:13 1999 ++++ /home/andy/tmp/wrk/makefile Sun May 2 16:46:44 1999 +@@ -1,9 +1,10 @@ + +-CC = gcc ++#CC = gcc + + ####### choose the line that makes the binary faster on your machine + # CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops +-CFLAGS = -O -fomit-frame-pointer ++#CFLAGS = -O -fomit-frame-pointer ++CFLAGS+= -I${LOCALBASE}/include + + ####### debug/tuning options for developers + # CFLAGS = -O -Wall -g3 -static +@@ -20,7 +21,7 @@ + ### -DLEARN_DIR=\"/var/local/lib\" + ### -DQCAPSONLY + +-DEFINES = -DGNUFUN ++DEFINES = -DGNUFUN -DPBOOK_DIR=\"${PREFIX}/share/phalanx\" -DSBOOK_DIR=\"${PREFIX}/share/phalanx\" + LDFLAGS = + + OBJ = .o/phalanx.o .o/bcreate.o .o/search.o .o/io.o .o/data.o \ +@@ -28,7 +29,7 @@ + .o/levels.o .o/book.o .o/killers.o .o/endgame.o .o/learn.o + + phalanx: .o $(OBJ) +- $(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $(OBJ) -o phalanx ++ $(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $(OBJ) -o phalanx -L${LOCALBASE}/lib -lgnugetopt + strip phalanx + + .o/%.o: makefile %.c diff --git a/games/phalanx/pkg-comment b/games/phalanx/pkg-comment new file mode 100644 index 000000000000..cf5007d2ffc9 --- /dev/null +++ b/games/phalanx/pkg-comment @@ -0,0 +1 @@ +xboard-compatible chess playing program diff --git a/games/phalanx/pkg-descr b/games/phalanx/pkg-descr new file mode 100644 index 000000000000..7c42d3f7fec1 --- /dev/null +++ b/games/phalanx/pkg-descr @@ -0,0 +1,11 @@ + Phalanx is a chess playing program. Phalanx is xboard compatible. +Running with xboard: 'xboard -fcp phalanx'. Note that permanent brain +(pondering) is off by default. Newer versions of xboard set it on with +the 'hard' command. If this does not work, try 'xboard -fcp "phalanx -p+"' +or (for <4.0.0 versions of xboard) change your initString (see Xboard +documentation for details). It's better to stop permanent brain in both +programs, when playing Phalanx against another program on a machine with +one CPU. + It's also possible to run phalanx without xboard. Do "phalanx -h" to get +a list of command line options. One important command of phalanx's ASCII +interface is "help". diff --git a/games/phalanx/pkg-plist b/games/phalanx/pkg-plist new file mode 100644 index 000000000000..087358edc4f7 --- /dev/null +++ b/games/phalanx/pkg-plist @@ -0,0 +1,7 @@ +bin/phalanx +share/doc/phalanx/COPYING +share/doc/phalanx/README +share/phalanx/pbook.phalanx +share/phalanx/sbook.phalanx +@dirrm share/doc/phalanx +@dirrm share/phalanx |