From cc2b3f217a5138201eb65ec8dc1411de3c1262ec Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev <danfe@FreeBSD.org> Date: Wed, 6 Oct 2004 05:10:30 +0000 Subject: Sanitize C++ code a bit, and unbreak with recent GCC. Reported by: kris Approved by: portmgr (krion), fjoe (mentor, implicit) --- games/trophy/Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'games') diff --git a/games/trophy/Makefile b/games/trophy/Makefile index b1cc5fd8802e..f1562baa72d6 100644 --- a/games/trophy/Makefile +++ b/games/trophy/Makefile @@ -20,19 +20,16 @@ LIB_DEPENDS= clanCore.2:${PORTSDIR}/devel/clanlib USE_X_PREFIX= yes USE_GMAKE= yes +USE_REINPLACE= yes BUILD_WRKSRC= ${WRKSRC}/trophy MAKE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \ PTHREAD_LIBS=${PTHREAD_LIBS} -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - post-extract: @${FIND} ${BUILD_WRKSRC}/resources -name .cvsignore -exec ${RM} -f {} \; + @${REINPLACE_CMD} -e 's/std::sqrt/sqrt/' ${BUILD_WRKSRC}/caimagemanipulation.cpp \ + ${BUILD_WRKSRC}/catrophy.cpp ${BUILD_WRKSRC}/camath.cpp do-install: ${MKDIR} ${PREFIX}/bin @@ -51,4 +48,4 @@ do-install: ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0