This patch updates stockfish from 10 to 11. I tested it for three games on amd64 only.
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 7 Feb 2020 09:49:21 -0000 @@ -1,8 +1,8 @@ # $OpenBSD: Makefile,v 1.7 2019/07/12 20:46:25 sthen Exp $ -V = 10 +V = 11 COMMENT = open source chess engine -DISTNAME = stockfish-${V}-src +DISTNAME = sf_${V} PKGNAME = stockfish-${V} EXTRACT_SUFX = .zip CATEGORIES = games @@ -15,7 +15,7 @@ PERMIT_PACKAGE = Yes WANTLIB += ${COMPILER_LIBCXX} c m -MASTER_SITES = https://stockfish.s3.amazonaws.com/ +MASTER_SITES = https://github.com/official-stockfish/Stockfish/archive/ # C++11 COMPILER = base-clang ports-gcc @@ -43,9 +43,9 @@ MAKE_ENV = ARCH=general-32 NO_TEST = Yes -WRKDIST = ${WRKDIR}/src +WRKDIST = ${WRKDIR}/Stockfish-${DISTNAME}/src pre-configure: - sed -i 's,-O3,${CXXFLAGS},g' ${WRKSRC}/Makefile + sed -i 's,-O3,${CXXFLAGS},g' ${WRKDIST}/Makefile .include <bsd.port.mk> 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 7 Feb 2020 09:49:21 -0000 @@ -1,2 +1,2 @@ -SHA256 (stockfish-10-src.zip) = Kb0B50BwmKqehRuC9upL8rRtJukHWkiiacseQMWCoHM= -SIZE (stockfish-10-src.zip) = 174377 +SHA256 (sf_11.zip) = 1ghZaqX5uwaSJFrxAdK+Wi7CWmMriMQCr3PgeWFwVLU= +SIZE (sf_11.zip) = 179371