diff options
author | johans <johans@FreeBSD.org> | 2018-02-06 19:50:38 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2018-02-06 19:50:38 +0800 |
commit | ae708bdd6fb7200060d2d6713b508cca9dc21e0c (patch) | |
tree | ef59bc2f476b14ce9d2076cbd32de865619a38af /games | |
parent | 6267babbdcfb2bc73c754ec6360ef751c863fc73 (diff) | |
download | freebsd-ports-gnome-ae708bdd6fb7200060d2d6713b508cca9dc21e0c.tar.gz freebsd-ports-gnome-ae708bdd6fb7200060d2d6713b508cca9dc21e0c.tar.zst freebsd-ports-gnome-ae708bdd6fb7200060d2d6713b508cca9dc21e0c.zip |
Unbreak
Simplify setup by using only the default opening books
Don't rebuild the opening book that is also downloaded
Docs are no longer included, but provided online at
http://www.craftychess.com/documentation/craftydoc.html
Diffstat (limited to 'games')
-rw-r--r-- | games/crafty/Makefile | 43 | ||||
-rw-r--r-- | games/crafty/distinfo | 16 | ||||
-rw-r--r-- | games/crafty/pkg-plist | 10 |
3 files changed, 10 insertions, 59 deletions
diff --git a/games/crafty/Makefile b/games/crafty/Makefile index dbf3563fbd8a..9edccbca5cf7 100644 --- a/games/crafty/Makefile +++ b/games/crafty/Makefile @@ -5,28 +5,20 @@ PORTNAME= crafty PORTVERSION= 25.2 CATEGORIES= games MASTER_SITES= http://www.craftychess.com/downloads/source/:src \ - http://www.cis.uab.edu/hyatt/crafty/pgn/:data \ - http://www.cis.uab.edu/hyatt/crafty/documentation/:doc \ - http://www.cis.uab.edu/hyatt/crafty/source/:src \ - http://www.cis.uab.edu/hyatt/crafty/book/:utils \ - http://www.cis.uab.edu/hyatt/crafty/book/:books + http://www.craftychess.com/downloads/book/:data DISTFILES= crafty-${PORTVERSION}.zip:src \ - start.pgn:data + books.bin:data \ + start.pgn.gz:data DIST_SUBDIR= crafty EXTRACT_ONLY= crafty-${PORTVERSION}.zip MAINTAINER= johans@FreeBSD.org COMMENT= Chess program for playing and analyzing games -BROKEN= fails to build: Could not read profile default.profdata: No such file or directory - WRKSRC= ${WRKDIR} USES= gmake zip -BOOKS= books.bin -DISTFILES+= ${BOOKS:S/$/:books/} - ALL_TARGET= unix-gcc WITH_BOOKDIR?= ${PREFIX}/lib/crafty @@ -41,15 +33,6 @@ OPT= -DHASHSTATS -DTRACE -DBOOKDIR=\\\"${WITH_BOOKDIR}\\\" \ -DTBDIR=\\\"${WITH_TBDIR}\\\" \ -DPERSDIR=\\\"${WITH_PERSDIR}\\\" -DSKILL -OPTIONS_DEFINE= DOCS BOOK -OPTIONS_SUB= yes -BOOK_DESC= Include (default) opening book - -DOCFILES= crafty.doc.ascii crafty.doc.ps -DISTFILES+= ${DOCFILES:S/$/:doc/} -UTILS= bitmaps.tgz sound.zip -DISTFILES+= ${UTILS:S/$/:utils/} - .include <bsd.port.pre.mk> .if ${ARCH} == "i386" || ${ARCH} == "amd64" @@ -58,19 +41,11 @@ OPT+= -DCPUS=4 OPT+= -DCPUS=1 # disables x86 assembler .endif -.if ${PORT_OPTIONS:MBOOK} -BOOKS+= book.bin -PKGNAMESUFFIX= -open-default -CONFLICTS+= crafty-open-enormous-[0-9]* crafty-open-large-[0-9]* crafty-open-medium-[0-9]* -.endif - MAKE_ENV+= opt="${OPT}" target=${OPSYS} CXFLAGS="${CXXFLAGS}" post-extract: - cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} start.pgn books.bin ${WRKSRC} -.if ${PORT_OPTIONS:MBOOK} - ${CP} ${DISTDIR}/${DIST_SUBDIR}/book.bin ${WRKSRC} -.endif + cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} book.bin start.pgn.gz ${WRKSRC} + ${GUNZIP_CMD} ${WRKSRC}/start.pgn.gz post-build: (cd ${WRKSRC}; ./crafty bookpath=. <${FILESDIR}/books-building) @@ -78,13 +53,7 @@ post-build: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/crafty ${STAGEDIR}${PREFIX}/bin/crafty @${MKDIR} ${STAGEDIR}${PREFIX}/lib/crafty/cpf -.if ${PORT_OPTIONS:MBOOK} - ${INSTALL_DATA} ${WRKSRC}/book.bin ${STAGEDIR}${PREFIX}/lib/crafty -.endif - ${INSTALL_DATA} ${WRKSRC}/books.bin ${WRKSRC}/crafty.hlp \ + ${INSTALL_DATA} ${WRKSRC}/book.bin ${WRKSRC}/books.bin ${WRKSRC}/crafty.hlp \ ${STAGEDIR}${PREFIX}/lib/crafty - @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${DOCFILES} ${UTILS} \ - ${STAGEDIR}${DOCSDIR} .include <bsd.port.post.mk> diff --git a/games/crafty/distinfo b/games/crafty/distinfo index aa46f6578d53..de4f9d4df4c3 100644 --- a/games/crafty/distinfo +++ b/games/crafty/distinfo @@ -1,17 +1,7 @@ -TIMESTAMP = 1500155416 +TIMESTAMP = 1517917587 SHA256 (crafty/crafty-25.2.zip) = 337e00bab79c33739fbaa71cd26c65f986886ee0d8ce181f2cb62f2efd317710 SIZE (crafty/crafty-25.2.zip) = 433320 -SHA256 (crafty/start.pgn) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065 -SIZE (crafty/start.pgn) = 51307 SHA256 (crafty/books.bin) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065 SIZE (crafty/books.bin) = 51307 -SHA256 (crafty/book.bin) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065 -SIZE (crafty/book.bin) = 51307 -SHA256 (crafty/crafty.doc.ascii) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065 -SIZE (crafty/crafty.doc.ascii) = 51307 -SHA256 (crafty/crafty.doc.ps) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065 -SIZE (crafty/crafty.doc.ps) = 51307 -SHA256 (crafty/bitmaps.tgz) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065 -SIZE (crafty/bitmaps.tgz) = 51307 -SHA256 (crafty/sound.zip) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065 -SIZE (crafty/sound.zip) = 51307 +SHA256 (crafty/start.pgn.gz) = ee5c11b59faa1df97639ea69d823fdb19161e32509ff66b7d39abbe85e05e789 +SIZE (crafty/start.pgn.gz) = 314 diff --git a/games/crafty/pkg-plist b/games/crafty/pkg-plist index 1de6a89b71ee..c6b2c5305742 100644 --- a/games/crafty/pkg-plist +++ b/games/crafty/pkg-plist @@ -2,18 +2,10 @@ @mode 2755 bin/crafty @mode 664 -%%BOOK%%lib/crafty/book.bin -@mode 644 +lib/crafty/book.bin lib/crafty/books.bin lib/crafty/crafty.hlp -@mode -@group wheel -%%PORTDOCS%%%%DOCSDIR%%/crafty.doc.ascii -%%PORTDOCS%%%%DOCSDIR%%/crafty.doc.ps -%%PORTDOCS%%%%DOCSDIR%%/bitmaps.tgz -%%PORTDOCS%%%%DOCSDIR%%/sound.zip @mode 775 -@group nogroup @dir lib/crafty/cpf @dir lib/crafty @mode |