svn commit: r329937 - head/games/0ad
Guido Falsi
madpilot at FreeBSD.org
Wed Oct 9 23:11:23 UTC 2013
Author: madpilot
Date: Wed Oct 9 23:11:23 2013
New Revision: 329937
URL: http://svnweb.freebsd.org/changeset/ports/329937
Log:
- Convert to USES=compiler
Modified:
head/games/0ad/Makefile
Modified: head/games/0ad/Makefile
==============================================================================
--- head/games/0ad/Makefile Wed Oct 9 23:05:54 2013 (r329936)
+++ head/games/0ad/Makefile Wed Oct 9 23:11:23 2013 (r329937)
@@ -24,7 +24,7 @@ LIB_DEPENDS= libboost_thread.so:${PORTSD
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-alpha
BUILD_WRKSRC= ${WRKSRC}/build/workspaces/gcc
MAKE_ARGS= config=release
-USES= gmake pkgconfig
+USES= compiler:c++11-lang gmake pkgconfig
USE_XZ= yes
USE_SDL= sdl
USE_GNOME= libxml2 gtk20
@@ -42,27 +42,10 @@ MANUAL_PACKAGE_BUILD= yes # huge
PORTDATA= *
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-# Taken from Mk/bsd.gnustep.mk
-.if exists(${DESTDIR}/usr/bin/clang)
-__CLANG!= ${DESTDIR}/usr/bin/clang --version | head -1 | \
- ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
-.else
-__CLANG= 0
-.endif
-
-.if ${__CLANG} < 33 && ${OSVERSION} > 900014
-BUILD_DEPENDS+= ${LOCALBASE}/bin/clang33:${PORTSDIR}/lang/clang33
-CPP= ${LOCALBASE}/bin/clang-cpp33
-CC= ${LOCALBASE}/bin/clang33
-CXX= ${LOCALBASE}/bin/clang++33
-.elif ${OSVERSION} < 900014
-USE_GCC= yes
-.else
-CPP= /usr/bin/clang-cpp
-CC= /usr/bin/clang
-CXX= /usr/bin/clang++
+.if ${OSVERSION} < 900014
+FAVORITE_COMPILER= gcc
.endif
post-patch:
@@ -87,4 +70,4 @@ do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/binaries/data && ${COPYTREE_SHARE} "config mods tests tools" ${STAGEDIR}${DATADIR})
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-head
mailing list