aboutsummaryrefslogtreecommitdiff
path: root/games/gnuchess/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/gnuchess/Makefile')
-rw-r--r--games/gnuchess/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile
index aedc29e03927..39624b5d2ef0 100644
--- a/games/gnuchess/Makefile
+++ b/games/gnuchess/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gnuchess
-PORTVERSION= 6.0.1
+PORTVERSION= 6.0.2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= chess
@@ -28,7 +28,6 @@ OPTIONS= OPENING_BOOK "Install opening book (25 MB download)" On
.if defined(WITH_OPENING_BOOK)
DISTFILES+= book_1.02.pgn.gz
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
-USE_PERL5_BUILD=yes
.endif
GNU_CONFIGURE= yes
@@ -37,14 +36,11 @@ CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}" MKDIR_P="${MKDIR}"
post-patch:
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS:S/"//g}|g ; \
s|-pthread ||g' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e '/BookFile = fopen/{p;s/B.*/if (BookFile == NULL)\
- BookFile = fopen(full_file_name,"rb");/;}' \
- ${WRKSRC}/src/adapter/book.cpp
post-build:
.if defined(WITH_OPENING_BOOK)
zcat ${DISTDIR}/book_1.02.pgn.gz > ${WRKSRC}/src/book.pgn
- cd ${WRKSRC}/src && ${PERL} ${SCRIPTDIR}/create_opening_book.pl
+ cd ${WRKSRC}/src && ./gnuchess --addbook book.pgn
@${REINPLACE_CMD} -e '/Book =/s/false/true/' ${WRKSRC}/src/gnuchess.ini
.endif