From owner-svn-ports-head@freebsd.org Sun Dec 13 18:49:04 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E15DF4C053C; Sun, 13 Dec 2020 18:49:04 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CvD8062WTz4kYg; Sun, 13 Dec 2020 18:49:04 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C211014807; Sun, 13 Dec 2020 18:49:04 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BDIn4KQ007548; Sun, 13 Dec 2020 18:49:04 GMT (envelope-from fernape@FreeBSD.org) Received: (from fernape@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BDIn4WU007547; Sun, 13 Dec 2020 18:49:04 GMT (envelope-from fernape@FreeBSD.org) Message-Id: <202012131849.0BDIn4WU007547@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fernape set sender to fernape@FreeBSD.org using -f From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= Date: Sun, 13 Dec 2020 18:49:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r557997 - head/games/stockfish X-SVN-Group: ports-head X-SVN-Commit-Author: fernape X-SVN-Commit-Paths: head/games/stockfish X-SVN-Commit-Revision: 557997 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2020 18:49:04 -0000 Author: fernape Date: Sun Dec 13 18:49:04 2020 New Revision: 557997 URL: https://svnweb.freebsd.org/changeset/ports/557997 Log: games/stockfish: Update to 12 ChangeLog: https://blog.stockfishchess.org/post/628172810852925440/stockfish-12 PR: 251253 Submitted by: m.ne@gmx.net Approved by: execve@gmail.com (maintainer) Modified: head/games/stockfish/Makefile head/games/stockfish/distinfo Modified: head/games/stockfish/Makefile ============================================================================== --- head/games/stockfish/Makefile Sun Dec 13 16:07:41 2020 (r557996) +++ head/games/stockfish/Makefile Sun Dec 13 18:49:04 2020 (r557997) @@ -3,8 +3,11 @@ PORTNAME= stockfish DISTVERSIONPREFIX= sf_ -DISTVERSION= 11 +DISTVERSION= 12 CATEGORIES= games +MASTER_SITES= https://tests.stockfishchess.org/api/nn/:nnue +DISTFILES= nn-${_NNUE_VER}.nnue:nnue +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= execve@gmail.com COMMENT= Open source chess engine @@ -18,23 +21,31 @@ BROKEN_armv7= Fails to configure: config-sanity: Error BROKEN_mips64= Fails to build: cannot detect architecture NOT_FOR_ARCHS= sparc64 -USES= compiler:c++11-lang gmake +USES= compiler:c++11-lang gmake perl5 USE_GITHUB= yes GH_ACCOUNT= official-stockfish GH_PROJECT= Stockfish +USE_PERL5= build +LDFLAGS+= -fuse-ld=lld + +_NNUE_VER= 82215d0fd0df + WRKSRC_SUBDIR= src MYARCH= ${ARCH} MYCC= ${CHOSEN_COMPILER_TYPE} TGTBLD= build -LDFLAGS+= -fuse-ld=lld - PLIST_FILES= bin/stockfish -PORTDOCS= Readme.md +PORTDOCS= README.md -OPTIONS_DEFINE= DOCS POPCNT +#POPCNT AVX2 BMI2 +OPTIONS_DEFINE= DOCS +OPTIONS_RADIO= MACHDEP +OPTIONS_RADIO_MACHDEP= POPCNT AVX2 BMI2 +AVX2_DESC= Use the AVX2 instruction set +BMI2_DESC= Use the BMI2 instruction set POPCNT_DESC= Use the POPCNT instruction .include @@ -43,11 +54,23 @@ POPCNT_DESC= Use the POPCNT instruction BROKEN= POPCNT compiles only on amd64 .endif +.if ${PORT_OPTIONS:MAVX2} && ${ARCH} != amd64 +BROKEN= AVX compiles only on amd64 +.endif + +.if ${PORT_OPTIONS:MBMI2} && ${ARCH} != amd64 +BROKEN= BMI compiles only on amd64 +.endif + # workaround the ARCH usage in the stockfish Makefile .if ${ARCH} == "i386" MYARCH= x86-32 .elif ${ARCH} == "amd64" -. if ${PORT_OPTIONS:MPOPCNT} +. if ${PORT_OPTIONS:MBMI2} +MYARCH= x86-64-bmi2 +. elif ${PORT_OPTIONS:MAVX2} +MYARCH= x86-64-avx2 +. elif ${PORT_OPTIONS:MPOPCNT} MYARCH= x86-64-modern . else MYARCH= x86-64 @@ -61,6 +84,7 @@ MYARCH= ppc-64 ALL_TARGET= ${TGTBLD} ARCH=${MYARCH} COMP=${MYCC} post-patch: + @${CP} ${_DISTDIR}/nn-${_NNUE_VER}.nnue ${WRKSRC}/. @${REINPLACE_CMD} -e "s/^PREFIX =/PREFIX ?=/" ${WRKSRC}/Makefile @${REINPLACE_CMD} -e "s/CXX=g++/CXX=g++${GCC_DEFAULT}/" \ ${WRKSRC}/Makefile @@ -70,6 +94,6 @@ do-install: do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/../Readme.md ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/../README.md ${STAGEDIR}${DOCSDIR} .include Modified: head/games/stockfish/distinfo ============================================================================== --- head/games/stockfish/distinfo Sun Dec 13 16:07:41 2020 (r557996) +++ head/games/stockfish/distinfo Sun Dec 13 18:49:04 2020 (r557997) @@ -1,3 +1,5 @@ -TIMESTAMP = 1579984671 -SHA256 (official-stockfish-Stockfish-sf_11_GH0.tar.gz) = 802261cc601b67bed00c0ef7d21e2125959630f0852a06db9fc9bd74f440b199 -SIZE (official-stockfish-Stockfish-sf_11_GH0.tar.gz) = 145868 +TIMESTAMP = 1605746232 +SHA256 (nn-82215d0fd0df.nnue) = 82215d0fd0df3cde17fc47ac024c5b5736823ec390200abdd705c44660c69ee4 +SIZE (nn-82215d0fd0df.nnue) = 21022697 +SHA256 (official-stockfish-Stockfish-sf_12_GH0.tar.gz) = d1ec11d1cb8dfc5b33bcd6ec89ed0bafb3951cc1690851448a2696caa2022899 +SIZE (official-stockfish-Stockfish-sf_12_GH0.tar.gz) = 176430