ports/161516: [maintainer-update] games/stockfish: Update
Gautam
execve at gmail.com
Wed Oct 12 12:40:09 UTC 2011
>Number: 161516
>Category: ports
>Synopsis: [maintainer-update] games/stockfish: Update
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 12 12:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Gautam
>Release: 8.2-STABLE
>Organization:
NA
>Environment:
FreeBSD x 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Oct 3 23:05:39 IST 2011 root at x:/usr/obj/usr/src/sys/GENERIC i386
>Description:
No version change in the port.
Following changes to accommodate:
- Mainstream changed distribution file names and location
- Added Opening Book
- Added options for building profile-build and profile-build-popcnt
Patch attached.
Thanks!
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/ports/stockfish/Makefile b/ports/stockfish/Makefile
index b461ecb..9a7decc 100644
--- a/ports/stockfish/Makefile
+++ b/ports/stockfish/Makefile
@@ -8,26 +8,49 @@
PORTNAME= stockfish
PORTVERSION= 2.1.1
CATEGORIES= games
-MASTER_SITES= http://f.cl.ly/items/3E1y252w3q0R3C050k01/
-DISTNAME= stockfish-211-ja
+MASTER_SITES= http://f.cl.ly/items/1W3R1i3c3Y2n0m133q15/:src \
+ http://www.execve.net/sf/:src \
+ http://f.cl.ly/items/1y0Q3P2n0I2S0g0Y100E/:book \
+ http://www.execve.net/sf/:book
+DISTNAME= sf-211-linux-eng
+DISTFILES= sf-211-linux-eng.zip:src \
+ sf-211-book.zip:book
MAINTAINER= execve at gmail.com
COMMENT= Open source chess engine
+LICENSE= GPLv3
+
USE_ZIP= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_GMAKE= yes
MYARCH= ${ARCH}
+BOOKDIR= sf-211-book
ALL_TARGET= build ARCH=${MYARCH}
+OPTIONS= POPCNT_PROFILE_BUILD "Make a Profile build (POPCNT enabled)" Off \
+ PROFILE_BUILD "Make a Profile build" Off
+
+TGTBLD= build
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_PROFILE_BUILD)
+TGTBLD= profile-build
+.endif
+
+.if defined(WITH_POPCNT_PROFILE_BUILD)
+TGTBLD= popcnt-profile-build
+.endif
+
.include <bsd.port.pre.mk>
# workaround the ARCH usage in the stockfish Makefile
.if ${MYARCH} == "i386"
-ALL_TARGET= build ARCH=x86-32
+ALL_TARGET= ${TGTBLD} ARCH=x86-32
.elif ${MYARCH} == "amd64"
-ALL_TARGET= build ARCH=x86-64
+ALL_TARGET= ${TGTBLD} ARCH=x86-64
.endif
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
@@ -39,5 +62,7 @@ do-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/Readme.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/polyglot.ini ${DOCSDIR}
+ ${MKDIR} ${PREFIX}/share/stockfish
+ ${INSTALL_DATA} ${WRKDIR}/${BOOKDIR}/Book.bin ${PREFIX}/share/stockfish
.include <bsd.port.post.mk>
diff --git a/ports/stockfish/distinfo b/ports/stockfish/distinfo
index 9370ee1..54d7216 100644
--- a/ports/stockfish/distinfo
+++ b/ports/stockfish/distinfo
@@ -1,2 +1,4 @@
-SHA256 (stockfish-211-ja.zip) = bbc01a873183d213903260e4262fbee3cc79f51c62a601fce6b66a405b13d93a
-SIZE (stockfish-211-ja.zip) = 2623630
+SHA256 (sf-211-linux-eng.zip) = 65398505d9582160a62520eb1bebe4527df7d90e3af2b88d0458919bf65c2def
+SIZE (sf-211-linux-eng.zip) = 1218458
+SHA256 (sf-211-book.zip) = fc4b2964128278dcf076b1601a5fb7a6cc88d87d9f617d32fa82aeb05cfdff74
+SIZE (sf-211-book.zip) = 8831695
diff --git a/ports/stockfish/pkg-plist b/ports/stockfish/pkg-plist
index f963cd5..382503a 100644
--- a/ports/stockfish/pkg-plist
+++ b/ports/stockfish/pkg-plist
@@ -1,4 +1,6 @@
bin/stockfish
+share/stockfish/Book.bin
%%DOCSDIR%%/Readme.txt
%%DOCSDIR%%/polyglot.ini
@dirrm %%DOCSDIR%%
+ at dirrm share/stockfish
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list