From 4c99c9408d0302eb0b3682747a41cc0a6def2f43 Mon Sep 17 00:00:00 2001 From: danfe 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 - -.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 +.include -- cgit