Date: Sun, 13 Dec 2020 18:49:04 +0000 (UTC) From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= <fernape@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r557997 - head/games/stockfish Message-ID: <202012131849.0BDIn4WU007547@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk> @@ -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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012131849.0BDIn4WU007547>