diff --git a/games/stockfish/Makefile b/games/stockfish/Makefile index 63b863de5cac..80eb8b7c44a0 100644 --- a/games/stockfish/Makefile +++ b/games/stockfish/Makefile @@ -1,99 +1,99 @@ # Created by: Gautam Mani PORTNAME= stockfish DISTVERSIONPREFIX= sf_ -DISTVERSION= 12 +DISTVERSION= 13 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 LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/../Copying.txt BROKEN_aarch64= Fails to build: cannot detect architecture BROKEN_armv6= Fails to configure: config-sanity: Error 1 BROKEN_armv7= Fails to configure: config-sanity: Error 1 BROKEN_mips64= Fails to build: cannot detect architecture BROKEN_riscv64= Fails to configure: config-sanity: Error 1 NOT_FOR_ARCHS= sparc64 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 +_NNUE_VER= 62ef826d1a6d WRKSRC_SUBDIR= src MYARCH= ${ARCH} MYCC= ${CHOSEN_COMPILER_TYPE} TGTBLD= build PLIST_FILES= bin/stockfish PORTDOCS= README.md #POPCNT AVX2 BMI2 OPTIONS_DEFINE= DOCS OPTIONS_RADIO= MACHDEP -OPTIONS_RADIO_MACHDEP= POPCNT AVX2 BMI2 +OPTIONS_RADIO_MACHDEP= AVX2 BMI2 POPCNT AVX2_DESC= Use the AVX2 instruction set BMI2_DESC= Use the BMI2 instruction set POPCNT_DESC= Use the POPCNT instruction .include .if ${PORT_OPTIONS:MPOPCNT} && ${ARCH} != amd64 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: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 . endif .elif ${ARCH} == powerpc MYARCH= ppc-32 .elif ${ARCH:Mpowerpc64*} MYARCH= ppc-64 .endif 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 do-install: ${INSTALL_PROGRAM} ${WRKSRC}/stockfish ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/../README.md ${STAGEDIR}${DOCSDIR} .include diff --git a/games/stockfish/distinfo b/games/stockfish/distinfo index 3db191a56447..1d1735ac861e 100644 --- a/games/stockfish/distinfo +++ b/games/stockfish/distinfo @@ -1,5 +1,5 @@ -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 +TIMESTAMP = 1618188927 +SHA256 (nn-62ef826d1a6d.nnue) = 62ef826d1a6d11b9e814188025aa02a60815c037292e0ef9bbb9bf4f724e5e63 +SIZE (nn-62ef826d1a6d.nnue) = 21022697 +SHA256 (official-stockfish-Stockfish-sf_13_GH0.tar.gz) = 15d14721b3be17c597535bdbb44fb951a1ee948312d90fbf55fa0e52b8b81d62 +SIZE (official-stockfish-Stockfish-sf_13_GH0.tar.gz) = 181226 diff --git a/games/stockfish/files/patch-Makefile b/games/stockfish/files/patch-Makefile deleted file mode 100644 index 6f772ec1fba8..000000000000 --- a/games/stockfish/files/patch-Makefile +++ /dev/null @@ -1,21 +0,0 @@ ---- Makefile.orig 2018-11-29 14:45:26 UTC -+++ Makefile -@@ -29,7 +29,7 @@ EXE = stockfish - endif - - ### Installation dir definitions --PREFIX = /usr/local -+PREFIX ?= /usr/local - BINDIR = $(PREFIX)/bin - - ### Built-in benchmark for pgo-builds -@@ -211,7 +211,9 @@ ifeq ($(COMP),clang) - - ifneq ($(KERNEL),Darwin) - ifneq ($(KERNEL),OpenBSD) -+ ifneq ($(KERNEL),FreeBSD) - LDFLAGS += -latomic -+ endif - endif - endif -