Hi ports --

Attached is an update to Stockfish.
Release notes are here: https://github.com/official-stockfish/Stockfish/commit/c3483fa9a7d7c0ffa9fcc32b467ca844cfb63790
Sadly, no more real upstream tarballs. Have to use GH_* variables.

OK?

~Brian

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/stockfish/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile	12 Jul 2019 20:46:25 -0000	1.7
+++ Makefile	23 Jan 2020 23:11:18 -0000
@@ -1,12 +1,13 @@
 # $OpenBSD: Makefile,v 1.7 2019/07/12 20:46:25 sthen Exp $
 
-V =		10
 COMMENT =	open source chess engine
-DISTNAME =	stockfish-${V}-src
-PKGNAME =	stockfish-${V}
-EXTRACT_SUFX =	.zip
+PKGNAME =	stockfish-${GH_TAGNAME:S/^sf_//}
 CATEGORIES =	games
 
+GH_ACCOUNT =	official-stockfish
+GH_PROJECT =	Stockfish
+GH_TAGNAME =	sf_11
+
 HOMEPAGE =	https://stockfishchess.org/
 MAINTAINER =	Brian Callahan <bcal...@openbsd.org>
 
@@ -15,8 +16,6 @@ PERMIT_PACKAGE =	Yes
 
 WANTLIB += ${COMPILER_LIBCXX} c m
 
-MASTER_SITES =	https://stockfish.s3.amazonaws.com/
-
 # C++11
 COMPILER =	base-clang ports-gcc
 
@@ -43,7 +42,7 @@ MAKE_ENV =	ARCH=general-32
 
 NO_TEST =	Yes
 
-WRKDIST =	${WRKDIR}/src
+WRKSRC =	${WRKDIST}/src
 
 pre-configure:
 	sed -i 's,-O3,${CXXFLAGS},g' ${WRKSRC}/Makefile
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/stockfish/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo	30 Nov 2018 19:54:29 -0000	1.3
+++ distinfo	23 Jan 2020 23:11:18 -0000
@@ -1,2 +1,2 @@
-SHA256 (stockfish-10-src.zip) = Kb0B50BwmKqehRuC9upL8rRtJukHWkiiacseQMWCoHM=
-SIZE (stockfish-10-src.zip) = 174377
+SHA256 (Stockfish-sf_11.tar.gz) = gCJhzGAbZ77QDA730h4hJZWWMPCFKgbbn8m9dPRAsZk=
+SIZE (Stockfish-sf_11.tar.gz) = 145868
Index: patches/patch-Makefile
===================================================================
RCS file: patches/patch-Makefile
diff -N patches/patch-Makefile
--- patches/patch-Makefile	30 Nov 2018 19:54:29 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,27 +0,0 @@
-$OpenBSD: patch-Makefile,v 1.2 2018/11/30 19:54:29 bcallah Exp $
-
-Don't hardcode PREFIX, CC, or CXX.
-
-Index: Makefile
---- Makefile.orig
-+++ 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
-@@ -154,8 +154,8 @@ ifeq ($(COMP),)
- endif
- 
- ifeq ($(COMP),gcc)
--	comp=gcc
--	CXX=g++
-+	comp=${CC}
-+	CXX?=g++
- 	CXXFLAGS += -pedantic -Wextra -Wshadow
- 
- 	ifeq ($(ARCH),armv7)
Index: patches/patch-src_Makefile
===================================================================
RCS file: patches/patch-src_Makefile
diff -N patches/patch-src_Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Makefile	23 Jan 2020 23:11:18 -0000
@@ -0,0 +1,27 @@
+$OpenBSD$
+
+Don't hardcode PREFIX, CC, or CXX.
+
+Index: src/Makefile
+--- src/Makefile.orig
++++ src/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
+@@ -156,8 +156,8 @@ ifeq ($(COMP),)
+ endif
+ 
+ ifeq ($(COMP),gcc)
+-	comp=gcc
+-	CXX=g++
++	comp=${CC}
++	CXX?=g++
+ 	CXXFLAGS += -pedantic -Wextra -Wshadow
+ 
+ 	ifeq ($(ARCH),armv7)

Reply via email to