svn commit: r327425 - head/games/stockfish
Guido Falsi
madpilot at FreeBSD.org
Mon Sep 16 17:37:15 UTC 2013
Author: madpilot
Date: Mon Sep 16 17:37:14 2013
New Revision: 327425
URL: http://svnweb.freebsd.org/changeset/ports/327425
Log:
- Fix build with clang
- Make it respect PREFIX
- While here, USES=gmake
PR: ports/181616
Submitted by: Me
Approved by: Maintainer timeout
Modified:
head/games/stockfish/Makefile
Modified: head/games/stockfish/Makefile
==============================================================================
--- head/games/stockfish/Makefile Mon Sep 16 17:29:09 2013 (r327424)
+++ head/games/stockfish/Makefile Mon Sep 16 17:37:14 2013 (r327425)
@@ -19,7 +19,7 @@ LICENSE= GPLv3
USE_ZIP= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
-USE_GMAKE= yes
+USES= gmake
MYARCH= ${ARCH}
BOOKDIR= .
PORTDOCS= Readme.txt polyglot.ini
@@ -69,6 +69,13 @@ ALL_TARGET= ${TGTBLD} ARCH=${MYARCH} COM
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
+.if exists(/usr/bin/clang) && ${OSVERSION} > 1000024
+MYCC= clang
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e "s/^PREFIX =/PREFIX ?=/" ${WRKSRC}/Makefile
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/stockfish ${PREFIX}/bin/stockfish
More information about the svn-ports-all
mailing list