2013-09-13 22:43:00 +02:00
|
|
|
# Created by: Stefan Eggers <seggers@semyam.dinoco.de>
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1998-06-01 06:56:10 +02:00
|
|
|
|
2000-04-14 02:45:49 +02:00
|
|
|
PORTNAME= crafty
|
2017-07-16 00:05:28 +02:00
|
|
|
PORTVERSION= 25.2
|
2018-02-09 17:13:07 +01:00
|
|
|
PORTREVISION= 1
|
1998-06-01 06:56:10 +02:00
|
|
|
CATEGORIES= games
|
2017-07-16 00:05:28 +02:00
|
|
|
MASTER_SITES= http://www.craftychess.com/downloads/source/:src \
|
2018-02-06 12:50:38 +01:00
|
|
|
http://www.craftychess.com/downloads/book/:data
|
2005-12-21 12:03:33 +01:00
|
|
|
DISTFILES= crafty-${PORTVERSION}.zip:src \
|
2018-02-09 17:13:07 +01:00
|
|
|
book.bin:data \
|
2018-02-06 12:50:38 +01:00
|
|
|
start.pgn.gz:data
|
2005-12-21 12:03:33 +01:00
|
|
|
DIST_SUBDIR= crafty
|
|
|
|
EXTRACT_ONLY= crafty-${PORTVERSION}.zip
|
1998-06-01 06:56:10 +02:00
|
|
|
|
2014-03-28 16:59:41 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Chess program for playing and analyzing games
|
1998-06-01 06:56:10 +02:00
|
|
|
|
2017-07-16 00:05:28 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
2005-12-21 12:03:33 +01:00
|
|
|
|
2017-07-16 00:05:28 +02:00
|
|
|
USES= gmake zip
|
2017-05-13 09:24:08 +02:00
|
|
|
|
2017-07-16 00:05:28 +02:00
|
|
|
ALL_TARGET= unix-gcc
|
2003-01-20 21:43:55 +01:00
|
|
|
|
2009-03-04 13:18:05 +01:00
|
|
|
WITH_BOOKDIR?= ${PREFIX}/lib/crafty
|
|
|
|
WITH_LOGDIR?= /tmp
|
|
|
|
WITH_RCDIR?= ~/
|
|
|
|
WITH_TBDIR?= ${PREFIX}/lib/crafty/TB
|
|
|
|
WITH_PERSDIR?= ${PREFIX}/lib/crafty/cpf
|
|
|
|
|
2015-07-01 21:54:56 +02:00
|
|
|
OPT= -DHASHSTATS -DTRACE -DBOOKDIR=\\\"${WITH_BOOKDIR}\\\" \
|
2007-09-10 03:11:54 +02:00
|
|
|
-DLOGDIR=\\\"${WITH_LOGDIR}\\\" \
|
2008-04-25 17:24:32 +02:00
|
|
|
-DRCDIR=\\\"${WITH_RCDIR}\\\" \
|
2007-09-11 14:00:42 +02:00
|
|
|
-DTBDIR=\\\"${WITH_TBDIR}\\\" \
|
2008-05-02 22:08:06 +02:00
|
|
|
-DPERSDIR=\\\"${WITH_PERSDIR}\\\" -DSKILL
|
2007-09-23 05:44:46 +02:00
|
|
|
|
2015-07-01 21:54:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
|
|
|
|
OPT+= -DCPUS=4
|
|
|
|
.else
|
|
|
|
OPT+= -DCPUS=1 # disables x86 assembler
|
2014-03-17 08:47:13 +01:00
|
|
|
.endif
|
2007-09-10 03:11:54 +02:00
|
|
|
|
|
|
|
MAKE_ENV+= opt="${OPT}" target=${OPSYS} CXFLAGS="${CXXFLAGS}"
|
1998-06-01 06:56:10 +02:00
|
|
|
|
|
|
|
post-extract:
|
2018-02-06 12:50:38 +01:00
|
|
|
cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} book.bin start.pgn.gz ${WRKSRC}
|
|
|
|
${GUNZIP_CMD} ${WRKSRC}/start.pgn.gz
|
1998-06-01 06:56:10 +02:00
|
|
|
|
|
|
|
post-build:
|
2007-09-10 03:11:54 +02:00
|
|
|
(cd ${WRKSRC}; ./crafty bookpath=. <${FILESDIR}/books-building)
|
1998-06-01 06:56:10 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-03-17 08:47:13 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/crafty ${STAGEDIR}${PREFIX}/bin/crafty
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/crafty/cpf
|
2018-02-06 12:50:38 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/book.bin ${WRKSRC}/books.bin ${WRKSRC}/crafty.hlp \
|
2014-03-28 16:59:41 +01:00
|
|
|
${STAGEDIR}${PREFIX}/lib/crafty
|
2014-03-17 08:47:13 +01:00
|
|
|
|
2014-03-28 16:59:41 +01:00
|
|
|
.include <bsd.port.post.mk>
|