Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 May 1999 15:11:39 +0400 (MSD)
From:      Andrey Zakhvatov <andy@icc.surw.chel.su>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11600: New port: phalanx-21
Message-ID:  <199905091111.PAA33107@icc.surw.chel.su>

next in thread | raw e-mail | index | archive | help

>Number:         11600
>Category:       ports
>Synopsis:       New port: phalanx-21
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May  9 04:20:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Zakhvatov
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
South Ural Railway ICC
>Environment:

>Description:

   This is a port of phalanx-XXI, an xboard-compatible chess playing program.

   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".


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	phalanx-21
#	phalanx-21/Makefile
#	phalanx-21/files
#	phalanx-21/files/md5
#	phalanx-21/patches
#	phalanx-21/patches/patch-aa
#	phalanx-21/pkg
#	phalanx-21/pkg/PLIST
#	phalanx-21/pkg/COMMENT
#	phalanx-21/pkg/DESCR
#
echo c - phalanx-21
mkdir -p phalanx-21 > /dev/null 2>&1
echo x - phalanx-21/Makefile
sed 's/^X//' >phalanx-21/Makefile << 'END-of-phalanx-21/Makefile'
X# New ports collection makefile for:	phalanx
X# Version required:			21
X# Date created:				2 May 1999
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=		phalanx-21
XCATEGORIES=		games
XMASTER_SITES=		${MASTER_SITE_SUNSITE} \
X			ftp://ftp.math.muni.cz/pub/math/people/Dobes/
XMASTER_SITE_SUBDIR=	games/strategy
X
XMAINTAINER=		andy@icc.surw.chel.su
X
XLIB_DEPENDS=		gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
X
XWRKSRC=			${WRKDIR}/Phalanx-XXI
XUSE_GMAKE=		yes
XALL_TARGET=
XMAKEFILE=		makefile
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${PREFIX}/bin
X	@ ${MKDIR} ${PREFIX}/share/phalanx
X	@ ${INSTALL_DATA} ${WRKSRC}/pbook.phalanx ${PREFIX}/share/phalanx
X	@ ${INSTALL_DATA} ${WRKSRC}/sbook.phalanx ${PREFIX}/share/phalanx
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@ ${MKDIR} ${PREFIX}/share/doc/phalanx
X	@ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/phalanx
X	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/phalanx
X.endif
X
X.include <bsd.port.mk>
END-of-phalanx-21/Makefile
echo c - phalanx-21/files
mkdir -p phalanx-21/files > /dev/null 2>&1
echo x - phalanx-21/files/md5
sed 's/^X//' >phalanx-21/files/md5 << 'END-of-phalanx-21/files/md5'
XMD5 (phalanx-21.tar.gz) = ab1ae987833c25cf8ce00ca8cf2b5b8c
END-of-phalanx-21/files/md5
echo c - phalanx-21/patches
mkdir -p phalanx-21/patches > /dev/null 2>&1
echo x - phalanx-21/patches/patch-aa
sed 's/^X//' >phalanx-21/patches/patch-aa << 'END-of-phalanx-21/patches/patch-aa'
X--- makefile	Sat Jan 30 00:26:13 1999
X+++ /home/andy/tmp/wrk/makefile	Sun May  2 16:46:44 1999
X@@ -1,9 +1,10 @@
X 
X-CC = gcc
X+#CC = gcc
X 
X ####### choose the line that makes the binary faster on your machine
X # CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops
X-CFLAGS = -O -fomit-frame-pointer
X+#CFLAGS = -O -fomit-frame-pointer
X+CFLAGS+= -I${LOCALBASE}/include
X 
X ####### debug/tuning options for developers
X # CFLAGS = -O -Wall -g3 -static
X@@ -20,7 +21,7 @@
X ### -DLEARN_DIR=\"/var/local/lib\"
X ### -DQCAPSONLY
X 
X-DEFINES = -DGNUFUN
X+DEFINES = -DGNUFUN -DPBOOK_DIR=\"${PREFIX}/share/phalanx\" -DSBOOK_DIR=\"${PREFIX}/share/phalanx\"
X LDFLAGS =
X 
X OBJ = .o/phalanx.o .o/bcreate.o .o/search.o .o/io.o .o/data.o \
X@@ -28,7 +29,7 @@
X       .o/levels.o .o/book.o .o/killers.o .o/endgame.o .o/learn.o
X 
X phalanx: .o $(OBJ)
X-	$(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $(OBJ) -o phalanx
X+	$(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $(OBJ) -o phalanx -L${LOCALBASE}/lib -lgnugetopt
X 	strip phalanx
X 
X .o/%.o: makefile %.c
END-of-phalanx-21/patches/patch-aa
echo c - phalanx-21/pkg
mkdir -p phalanx-21/pkg > /dev/null 2>&1
echo x - phalanx-21/pkg/PLIST
sed 's/^X//' >phalanx-21/pkg/PLIST << 'END-of-phalanx-21/pkg/PLIST'
Xbin/phalanx
Xshare/doc/phalanx/COPYING
Xshare/doc/phalanx/README
Xshare/phalanx/pbook.phalanx
Xshare/phalanx/sbook.phalanx
X@dirrm share/doc/phalanx
X@dirrm share/phalanx
END-of-phalanx-21/pkg/PLIST
echo x - phalanx-21/pkg/COMMENT
sed 's/^X//' >phalanx-21/pkg/COMMENT << 'END-of-phalanx-21/pkg/COMMENT'
Xxboard-compatible chess playing program
END-of-phalanx-21/pkg/COMMENT
echo x - phalanx-21/pkg/DESCR
sed 's/^X//' >phalanx-21/pkg/DESCR << 'END-of-phalanx-21/pkg/DESCR'
X   Phalanx is a chess playing program.  Phalanx is xboard compatible.
XRunning with xboard: 'xboard -fcp phalanx'.  Note that permanent brain
X(pondering) is off by default.  Newer versions of xboard set it on with
Xthe 'hard' command.  If this does not work, try 'xboard -fcp "phalanx -p+"'
Xor (for <4.0.0 versions of xboard) change your initString (see Xboard
Xdocumentation for details).  It's better to stop permanent brain in both
Xprograms, when playing Phalanx against another program on a machine with
Xone CPU.
X   It's also possible to run phalanx without xboard. Do "phalanx -h" to get
Xa list of command line options. One important command of phalanx's ASCII
Xinterface is "help".
END-of-phalanx-21/pkg/DESCR
exit


>How-To-Repeat:

>Fix:

   Please, check and commit this port.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905091111.PAA33107>