Index: Makefile
===================================================================
RCS file: /cvs/ports/games/stockfish/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- Makefile 6 Apr 2020 20:24:53 -0000 1.9
+++ Makefile 11 Sep 2020 21:40:15 -0000
@@ -1,13 +1,10 @@
# $OpenBSD: Makefile,v 1.9 2020/04/06 20:24:53 cwen Exp $
+V = 12
COMMENT = open source chess engine
-PKGNAME = stockfish-${GH_TAGNAME:S/^sf_//}
+PKGNAME = stockfish-${V}
CATEGORIES = games
-GH_ACCOUNT = official-stockfish
-GH_PROJECT = Stockfish
-GH_TAGNAME = sf_11
-
HOMEPAGE = https://stockfishchess.org/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
@@ -16,7 +13,14 @@ PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} c m
-# C++11
+# XXX: Ports does not permit GH_* and MASTER_SITES together.
+MASTER_SITES0 = https://github.com/official-stockfish/Stockfish/archive/
+MASTER_SITES1 = https://tests.stockfishchess.org/api/nn/
+DISTFILES = sf_${V}.tar.gz:0 \
+ nn-82215d0fd0df.nnue:1
+EXTRACT_ONLY = sf_${V}.tar.gz
+
+# C++17
COMPILER = base-clang ports-gcc
USE_GMAKE = Yes
@@ -41,7 +45,11 @@ MAKE_ENV = ARCH=general-32
NO_TEST = Yes
+WRKDIST = ${WRKDIR}/Stockfish-sf_${V}
WRKSRC = ${WRKDIST}/src
+
+post-extract:
+ cp ${DISTDIR}/nn-82215d0fd0df.nnue ${WRKSRC}
pre-configure:
sed -i 's,-O3,${CXXFLAGS},g' ${WRKSRC}/Makefile
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/stockfish/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo 8 Feb 2020 04:35:56 -0000 1.4
+++ distinfo 11 Sep 2020 21:40:15 -0000
@@ -1,2 +1,4 @@
-SHA256 (Stockfish-sf_11.tar.gz) = gCJhzGAbZ77QDA730h4hJZWWMPCFKgbbn8m9dPRAsZk=
-SIZE (Stockfish-sf_11.tar.gz) = 145868
+SHA256 (nn-82215d0fd0df.nnue) = giFdD9DfPN4X/EesAkxbVzaCPsOQIAq91wXERmDGnuQ=
+SHA256 (sf_12.tar.gz) = 0ewR0cuN/FszvNbsie0Lr7OVHMFpCFFEiiaWyqICKJk=
+SIZE (nn-82215d0fd0df.nnue) = 21022697
+SIZE (sf_12.tar.gz) = 176430
Index: patches/patch-src_Makefile
===================================================================
RCS file: /cvs/ports/games/stockfish/patches/patch-src_Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 patch-src_Makefile
--- patches/patch-src_Makefile 8 Feb 2020 04:35:56 -0000 1.3
+++ patches/patch-src_Makefile 11 Sep 2020 21:40:15 -0000
@@ -14,7 +14,7 @@ Index: src/Makefile
BINDIR = $(PREFIX)/bin
### Built-in benchmark for pgo-builds
-@@ -156,8 +156,8 @@ ifeq ($(COMP),)
+@@ -305,8 +305,8 @@ ifeq ($(COMP),)
endif
ifeq ($(COMP),gcc)
@@ -24,4 +24,4 @@ Index: src/Makefile
+ CXX?=g++
CXXFLAGS += -pedantic -Wextra -Wshadow
- ifeq ($(ARCH),armv7)
+ ifeq ($(arch),$(filter $(arch),armv7 armv8))
Hi ports --
Attached is an update to Stockfish.
Release notes: https://github.com/official-stockfish/Stockfish/releases/tag/sf_12
Stockfish has moved to a new neural-net based evaluator. However, the
neural net support code is not available with the tarball. So we have
to the do the same trick as with RStudio, since GH_* and MASTER_SITES
can't live together in one port.
I am able to have SCID play a stockfish vs. stockfish game.
I am not sure how performant stockfish 12 will be on !amd64. Testing
would be appreciated on other platforms.
OK?
~Brian
No comments:
Post a Comment