Index: head/games/stockfish/Makefile =================================================================== --- head/games/stockfish/Makefile (revision 488018) +++ head/games/stockfish/Makefile (revision 488019) @@ -1,71 +1,72 @@ # Created by: Gautam Mani # $FreeBSD$ PORTNAME= stockfish -DISTVERSION= 9 -PORTREVISION= 1 +DISTVERSION= 10 DISTVERSIONSUFFIX= -src CATEGORIES= games MASTER_SITES= http://stockfish.s3.amazonaws.com/ MAINTAINER= execve@gmail.com COMMENT= Open source chess engine LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/../Copying.txt NOT_FOR_ARCHS= sparc64 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 USES= compiler:c++11-lang gmake zip NO_WRKSUBDIR= yes WRKSRC_SUBDIR= src MYARCH= ${ARCH} MYCC= ${CHOSEN_COMPILER_TYPE} TGTBLD= build + +LDFLAGS+= -fuse-ld=lld PLIST_FILES= bin/stockfish PORTDOCS= Readme.md OPTIONS_DEFINE= DOCS POPCNT POPCNT_DESC= Use the POPCNT instruction .include .if ${PORT_OPTIONS:MPOPCNT} && ${ARCH} != amd64 BROKEN= POPCNT 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} MYARCH= x86-64-modern . else MYARCH= x86-64 . endif .elif ${ARCH} == powerpc MYARCH= ppc-32 .elif ${ARCH} == powerpc64 MYARCH= ppc-64 .endif ALL_TARGET= ${TGTBLD} ARCH=${MYARCH} COMP=${MYCC} post-patch: @${REINPLACE_CMD} -e "s/^PREFIX =/PREFIX ?=/" ${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 Index: head/games/stockfish/distinfo =================================================================== --- head/games/stockfish/distinfo (revision 488018) +++ head/games/stockfish/distinfo (revision 488019) @@ -1,3 +1,3 @@ -TIMESTAMP = 1519331941 -SHA256 (stockfish-9-src.zip) = ba2e72d6973479c8c839c7f4a095d121829ebe8df39b71ebf291c84e5cb3e36e -SIZE (stockfish-9-src.zip) = 171925 +TIMESTAMP = 1545156168 +SHA256 (stockfish-10-src.zip) = 29bd01e7407098aa9e851b82f6ea4bf2b46d26e9075a48a269cb1e40c582a073 +SIZE (stockfish-10-src.zip) = 174377 Index: head/games/stockfish/files/patch-Makefile =================================================================== --- head/games/stockfish/files/patch-Makefile (revision 488018) +++ head/games/stockfish/files/patch-Makefile (revision 488019) @@ -1,15 +1,21 @@ ---- Makefile.orig 2018-02-22 21:13:38 UTC +--- Makefile.orig 2018-11-29 14:45:26 UTC +++ Makefile -@@ -205,10 +205,12 @@ ifeq ($(COMP),clang) - CXX=clang++ - CXXFLAGS += -pedantic -Wextra -Wshadow - ifneq ($(KERNEL),Darwin) -+ifneq ($(KERNEL),FreeBSD) - ifneq ($(KERNEL),OpenBSD) - LDFLAGS += -latomic +@@ -29,7 +29,7 @@ EXE = stockfish endif - endif -+endif - ifeq ($(ARCH),armv7) - ifeq ($(OS),Android) + ### 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 +