Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2013 17:37:14 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r327425 - head/games/stockfish
Message-ID:  <201309161737.r8GHbE1g005544@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309161737.r8GHbE1g005544>