diff options
author | jmc <jmc@pkgsrc.org> | 2003-03-08 06:10:47 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2003-03-08 06:10:47 +0000 |
commit | 7c0484f2eca572058eb7ef79462135d2e90140bd (patch) | |
tree | 5a53e102b3e3d5734a9c56780e6cd5f6d73dfe42 /games/gnuchess-book-medium/Makefile | |
parent | f993a8fa26f9df50484fa81c6c3c263ecf22c386 (diff) | |
download | pkgsrc-7c0484f2eca572058eb7ef79462135d2e90140bd.tar.gz |
Make this work correctly. While in the past gnuchess may have appeared to
read/parse this book, in reality it wasn't. It doesn't seem to understand
full pgn format and instead uses an abbreviated format (which all the other
book packages use as well). It sort of interprets full pgn but gets lots
of things wrong.
Include a script to convert the book to a proper format and then run gnuchess
across that and it seems to find much less errors.
Diffstat (limited to 'games/gnuchess-book-medium/Makefile')
-rw-r--r-- | games/gnuchess-book-medium/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/games/gnuchess-book-medium/Makefile b/games/gnuchess-book-medium/Makefile index 93512ccc95c..e8f986433c9 100644 --- a/games/gnuchess-book-medium/Makefile +++ b/games/gnuchess-book-medium/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.6 2001/09/27 23:18:07 jlam Exp $ +# $NetBSD: Makefile,v 1.7 2003/03/08 06:10:47 jmc Exp $ DISTNAME= medium PKGNAME= ${CHESS_ENGINE}-book-${DISTNAME}-20000511 +PKGREVISION= 1 CATEGORIES= games MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/common/${DISTNAME}/ EXTRACT_SUFX= .zip @@ -17,22 +18,27 @@ CHESS_ENGINE= gnuchess DIST_SUBDIR= chessbooks WRKSRC= ${WRKDIR} NO_CONFIGURE= # defined +USE_PERL5= build +USE_BUILDLINK2= YES PLIST_SUBST+= CHESS_ENGINE=${CHESS_ENGINE} PLIST_SUBST+= BOOK_FILE=${BOOK_FILE} BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE} PGN_FILE= book.txt +PGN_CONVERTED_FILE= book_pgn.txt BOOK_FILE= book.dat do-build: @${ECHO} "" @${ECHO} " ** Go to bed! This will take _very_ long!" @${ECHO} "" - cd ${WRKSRC} && gnuchess compile ${PGN_FILE} ${BOOK_FILE} + ${PREFIX}/bin/perl ${PKGDIR}/files/convert.pl < ${WRKSRC}/${PGN_FILE} > ${WRKSRC}/${PGN_CONVERTED_FILE} + cd ${WRKSRC} && gnuchess compile ${PGN_CONVERTED_FILE} ${BOOK_FILE} do-install: ${INSTALL_DATA_DIR} ${BOOKDIR} ${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR} +.include "../../lang/perl5/buildlink2.mk" .include "../../mk/bsd.pkg.mk" |