From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Oct 12 12:40:09 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F7F9106566C for ; Wed, 12 Oct 2011 12:40:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D60088FC14 for ; Wed, 12 Oct 2011 12:40:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9CCe853059491 for ; Wed, 12 Oct 2011 12:40:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9CCe8VP059490; Wed, 12 Oct 2011 12:40:08 GMT (envelope-from gnats) Resent-Date: Wed, 12 Oct 2011 12:40:08 GMT Resent-Message-Id: <201110121240.p9CCe8VP059490@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gautam Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0901106564A for ; Wed, 12 Oct 2011 12:35:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C5ADB8FC1C for ; Wed, 12 Oct 2011 12:35:13 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9CCZDSH067229 for ; Wed, 12 Oct 2011 12:35:13 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p9CCZDat067189; Wed, 12 Oct 2011 12:35:13 GMT (envelope-from nobody) Message-Id: <201110121235.p9CCZDat067189@red.freebsd.org> Date: Wed, 12 Oct 2011 12:35:13 GMT From: Gautam To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/161516: [maintainer-update] games/stockfish: Update X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2011 12:40:09 -0000 >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@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@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 + +.if defined(WITH_PROFILE_BUILD) +TGTBLD= profile-build +.endif + +.if defined(WITH_POPCNT_PROFILE_BUILD) +TGTBLD= popcnt-profile-build +.endif + .include # 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 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%% +@dirrm share/stockfish >Release-Note: >Audit-Trail: >Unformatted: