View | Details | Raw Unified | Return to bug 160106
Collapse All | Expand All

(-)games/phalanx/Makefile (-14 / +24 lines)
Lines 6-42 Link Here
6
#
6
#
7
7
8
PORTNAME=	phalanx
8
PORTNAME=	phalanx
9
PORTVERSION=	22
9
PORTVERSION=	23.b
10
PORTREVISION=	1
11
CATEGORIES=	games
10
CATEGORIES=	games
12
MASTER_SITES=	ftp://ftp.math.muni.cz/pub/math/people/Dobes/ \
11
MASTER_SITES=	SF/${PORTNAME}/Version%20XXIII%20Beta
13
		http://dusan.freeshell.org/phalanx/
12
DISTNAME=	${PORTNAME}-XXIII-beta
13
EXTRACT_SUFX=	.tgz
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	Xboard-compatible chess playing program
16
COMMENT=	Xboard-compatible chess playing program
17
17
18
DEPRECATED=	No more public distfiles
18
LICENSE=	GPLv2 # (or later)
19
EXPIRATION_DATE=	2011-09-01
19
LICENSE_FILE=	${WRKSRC}/COPYING
20
20
21
WRKSRC=		${WRKDIR}/Phalanx-XXII
21
WRKSRC=		${WRKDIR}/${DISTNAME:S/-beta//}
22
22
23
USE_GMAKE=	yes
23
USE_GMAKE=	yes
24
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} ${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
25
ALL_TARGET=	# empty
26
MAKEFILE=	makefile
24
MAKEFILE=	makefile
25
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
26
ALL_TARGET=	# empty
27
MAKE_JOBS_SAFE=	yes
27
28
28
PORTDOCS=	README
29
CFLAGS+=	-DECO_DIR=\\\"${DATADIR}\\\" \
29
PLIST_FILES=	bin/phalanx %%DATADIR%%/pbook.phalanx %%DATADIR%%/sbook.phalanx
30
		-DLEARN_DIR=\\\"${DATADIR}\\\" \
31
		-DPBOOK_DIR=\\\"${DATADIR}\\\" \
32
		-DSBOOK_DIR=\\\"${DATADIR}\\\"
33
34
PORTDOCS=	HISTORY README README.old
35
PLIST_FILES=	bin/phalanx \
36
		%%DATADIR%%/eco.phalanx \
37
		%%DATADIR%%/pbook.phalanx \
38
		%%DATADIR%%/sbook.phalanx
30
PLIST_DIRS=	%%DATADIR%%
39
PLIST_DIRS=	%%DATADIR%%
31
40
32
do-install:
41
do-install:
33
	${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${PREFIX}/bin
42
	${INSTALL_PROGRAM} ${WRKSRC}/phalanx ${PREFIX}/bin
34
	@${MKDIR} ${DATADIR}
43
	@${MKDIR} ${DATADIR}
35
	${INSTALL_DATA} ${WRKSRC}/pbook.phalanx ${DATADIR}
44
	${INSTALL_DATA} ${WRKSRC}/*.phalanx ${DATADIR}
36
	${INSTALL_DATA} ${WRKSRC}/sbook.phalanx ${DATADIR}
37
.if !defined(NOPORTDOCS)
45
.if !defined(NOPORTDOCS)
38
	@${MKDIR} ${DOCSDIR}
46
	@${MKDIR} ${DOCSDIR}
39
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
47
.for file in ${PORTDOCS}
48
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
49
.endfor
40
.endif
50
.endif
41
51
42
.include <bsd.port.mk>
52
.include <bsd.port.mk>
(-)games/phalanx/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (phalanx-22.tar.gz) = 6eb45f17b50d864157dac2028ee5d45f4f54548825f5a732e1a430d5aa2dd889
1
SHA256 (phalanx-XXIII-beta.tgz) = dc72b8ad16e77c4b9e521ad0cbe8c49360d79840d886f4fba182db69da58a5cc
2
SIZE (phalanx-22.tar.gz) = 349769
2
SIZE (phalanx-XXIII-beta.tgz) = 352877
(-)games/phalanx/files/patch-io.c (-11 lines)
Lines 1-11 Link Here
1
--- io.c.orig	Sat Jan  8 23:36:29 2000
2
+++ io.c	Thu Aug  5 20:57:30 2004
3
@@ -894,7 +894,7 @@
4
 {	case 0: puts("off"); break;
5
 	case 1: puts("on"); break;
6
 	case 2: puts("on (pondering)"); break;
7
-	default:
8
+	default: ;
9
 }
10
 
11
 printf(" Transposition table ... ");
(-)games/phalanx/files/patch-phalanx.c (-57 lines)
Lines 1-57 Link Here
1
--- phalanx.c.orig	Fri Jul 18 13:36:59 2003
2
+++ phalanx.c	Fri Jul 18 13:38:52 2003
3
@@ -11,30 +11,30 @@
4
 
5
 void badoptions(void)
6
 {
7
-printf("\
8
-Usage:    phalanx [options] [<moves> <minutes> [<increment in seconds>]]
9
-          phalanx [options] [<seconds per move>]
10
-          phalanx bench
11
-          phalanx bcreate [options]
12
-Options:  -t <transposition table size in kilobytes>
13
-          -f <fixed search time in seconds>
14
-          -x <+/->  xboard mode on/off        default: on
15
-          -p <+/->  permanent brain on/off    default: off
16
-          -s <+/->  show thinking on/off      default: off
17
-          -c <+/->  cpu time                  default: off
18
-          -o <+/->  polling input             default: on
19
-          -b <+/->  opening book              default: on
20
-          -r <resign value in centipawns>     default: 0 (no resigning)
21
-          -e <easy level 0...100>             default: 0 (best play)
22
-          -l <+/->  learning on/off           default: on
23
-          -v        print version and exit
24
-          -P <primary book directory>
25
-          -S <secondary book directory>
26
-          -L <learning file directory>
27
-          -g <log file name>
28
-Examples: phalanx -c+ -s+ -o - -x- -f 60 -t4000
29
-          xboard -fcp \"phalanx -l+ -r800\"
30
-");
31
+printf("\n"
32
+"Usage:    phalanx [options] [<moves> <minutes> [<increment in seconds>]]\n"
33
+          "phalanx [options] [<seconds per move>]\n"
34
+          "phalanx bench\n"
35
+          "phalanx bcreate [options]\n"
36
+"Options:  -t <transposition table size in kilobytes>\n"
37
+          "-f <fixed search time in seconds>\n"
38
+          "-x <+/->  xboard mode on/off        default: on\n"
39
+          "-p <+/->  permanent brain on/off    default: off\n"
40
+          "-s <+/->  show thinking on/off      default: off\n"
41
+          "-c <+/->  cpu time                  default: off\n"
42
+          "-o <+/->  polling input             default: on\n"
43
+          "-b <+/->  opening book              default: on\n"
44
+          "-r <resign value in centipawns>     default: 0 (no resigning)\n"
45
+          "-e <easy level 0...100>             default: 0 (best play)\n"
46
+          "-l <+/->  learning on/off           default: on\n"
47
+          "-v        print version and exit\n"
48
+          "-P <primary book directory>\n"
49
+          "-S <secondary book directory>\n"
50
+          "-L <learning file directory>\n"
51
+          "-g <log file name>\n"
52
+"Examples: phalanx -c+ -s+ -o - -x- -f 60 -t4000\n"
53
+          "xboard -fcp \"phalanx -l+ -r800\n"
54
+);
55
 exit(0);
56
 }
57
 
(-)games/phalanx/pkg-descr (+2 lines)
Lines 10-12 Link Here
10
It's also possible to run phalanx without xboard. Do "phalanx -h"
10
It's also possible to run phalanx without xboard. Do "phalanx -h"
11
to get a list of command line options. One important command of
11
to get a list of command line options. One important command of
12
phalanx's ASCII interface is "help".
12
phalanx's ASCII interface is "help".
13
14
WWW: http://phalanx.sourceforge.net/

Return to bug 160106