From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 14 08:40:02 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 622C48AF for ; Sun, 14 Oct 2012 08:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 3906E8FC14 for ; Sun, 14 Oct 2012 08:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9E8e2jR059483 for ; Sun, 14 Oct 2012 08:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9E8e2KK059482; Sun, 14 Oct 2012 08:40:02 GMT (envelope-from gnats) Resent-Date: Sun, 14 Oct 2012 08:40:02 GMT Resent-Message-Id: <201210140840.q9E8e2KK059482@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 Mani Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C79D3884 for ; Sun, 14 Oct 2012 08:36:16 +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 8C7738FC08 for ; Sun, 14 Oct 2012 08:36:16 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9E8aGMh076481 for ; Sun, 14 Oct 2012 08:36:16 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q9E8aGxg076480; Sun, 14 Oct 2012 08:36:16 GMT (envelope-from nobody) Message-Id: <201210140836.q9E8aGxg076480@red.freebsd.org> Date: Sun, 14 Oct 2012 08:36:16 GMT From: Gautam Mani To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/172686: [MAINT UPD] Update games/stockfish to to 2.3.1 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2012 08:40:02 -0000 >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@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 # -# $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@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 @@ -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 # 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: