ports/172686: [MAINT UPD] Update games/stockfish to to 2.3.1
Gautam Mani
execve at gmail.com
Sun Oct 14 08:40:02 UTC 2012
>Number: 172686
>Category: ports
>Synopsis: [MAINT UPD] Update games/stockfish to to 2.3.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 14 08:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Gautam Mani
>Release: 9-STABLE
>Organization:
>Environment:
FreeBSD mellon 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #8 r+b9c6677-dirty: Sat Oct 6 13:25:32 IST 2012 root at mellon:/usr/obj/usr/src/sys/MYKERNEL amd64
>Description:
Summary of changes:
1. Port is updated to support stockfish-2.3.1
2. Book file is still 2.1.1 version level and compatible.
3. Basic support for clang added.
4. Restructured options due to further changes in the upstream options
>How-To-Repeat:
NA
>Fix:
NA
Patch attached with submission follows:
diff --git a/ports/stockfish/Makefile b/ports/stockfish/Makefile
index 32d621b..ff2ac84 100644
--- a/ports/stockfish/Makefile
+++ b/ports/stockfish/Makefile
@@ -2,18 +2,18 @@
# Date created: Apr 21 2011
# Whom: Gautam Mani <execve at gmail.com>
#
-# $FreeBSD: ports/games/stockfish/Makefile,v 1.5 2012/01/30 18:49:03 jgh Exp $
+# $FreeBSD$
#
PORTNAME= stockfish
-PORTVERSION= 2.2.2
+PORTVERSION= 2.3.1
CATEGORIES= games
-MASTER_SITES= http://dl.dropbox.com/u/2116588/sf-archive/:src \
+MASTER_SITES= http://cl.ly/2t3y2k2Y3Y1H/download/:src \
http://www.execve.net/sf/:src \
http://f.cl.ly/items/1y0Q3P2n0I2S0g0Y100E/:book \
http://www.execve.net/sf/:book
-DISTNAME= stockfish-${PORTVERSION:S/.//g}-ja
-DISTFILES= stockfish-${PORTVERSION:S/.//g}-ja.zip:src \
+DISTNAME= stockfish-${PORTVERSION:S/.//g}-linux
+DISTFILES= stockfish-${PORTVERSION:S/.//g}-linux.zip:src \
sf-211-book.zip:book
MAINTAINER= execve at gmail.com
@@ -28,17 +28,21 @@ MYARCH= ${ARCH}
BOOKDIR= sf-211-book
PORTDOCS= Readme.txt polyglot.ini
PORTDATA= Book.bin
+FETCH_ARGS= "-Fpr"
PLIST_FILES= bin/stockfish
PLIST_DIRSTRY= share/data/${PORTNAME} \
share/docs/${PORTNAME}
-ALL_TARGET= build ARCH=${MYARCH}
+TGTBLD= build
+MYCC= gcc
-OPTIONS= POPCNT_PROFILE_BUILD "Make a Profile build (POPCNT enabled)" Off \
- PROFILE_BUILD "Make a Profile build" Off
+.if ${CC} == "clang" || ${CXX} == "clang++"
+MYCC= clang
+.endif
-TGTBLD= build
+OPTIONS= POPCNT_ENABLED "Use the POPCNT instruction" Off \
+ PROFILE_BUILD "Make a Profile build" Off
.include <bsd.port.options.mk>
@@ -46,21 +50,25 @@ TGTBLD= build
TGTBLD= profile-build
.endif
-.if defined(WITH_POPCNT_PROFILE_BUILD)
+.if defined(WITH_POPCNT_ENABLED)
.if ${ARCH} != "amd64"
-BROKEN= WITH_POPCNT_PROFILE_BUILD compiles only on amd64
+BROKEN= WITH_POPCNT_ENABLED compiles only on amd64
.endif
-TGTBLD= popcnt-profile-build
.endif
.include <bsd.port.pre.mk>
# workaround the ARCH usage in the stockfish Makefile
-.if ${MYARCH} == "i386"
-ALL_TARGET= ${TGTBLD} ARCH=x86-32
-.elif ${MYARCH} == "amd64"
-ALL_TARGET= ${TGTBLD} ARCH=x86-64
+.if ${ARCH} == "i386"
+MYARCH= x86-32
+.elif ${ARCH} == "amd64"
+.if defined(WITH_POPCNT_ENABLED)
+MYARCH= x86-64-modern
+.else
+MYARCH= x86-64
+.endif
.endif
+ALL_TARGET= ${TGTBLD} ARCH=${MYARCH} COMP=${MYCC}
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64, powerpc, or sparc64
diff --git a/ports/stockfish/distinfo b/ports/stockfish/distinfo
index 5e17538..fca568a 100644
--- a/ports/stockfish/distinfo
+++ b/ports/stockfish/distinfo
@@ -1,4 +1,4 @@
-SHA256 (stockfish-222-ja.zip) = 068ccf7d1088e2df880fcfd326f0ac3920b05953d34ec39e6265391328d6fb9b
-SIZE (stockfish-222-ja.zip) = 2272728
+SHA256 (stockfish-231-linux.zip) = 119acf339d18b8b23c6142a72c9d8e09edf385c20a811a458bc0b63472c6a682
+SIZE (stockfish-231-linux.zip) = 852252
SHA256 (sf-211-book.zip) = fc4b2964128278dcf076b1601a5fb7a6cc88d87d9f617d32fa82aeb05cfdff74
SIZE (sf-211-book.zip) = 8831695
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list