From f77a612f6675965fab468735d4f23a293c2547c1 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sun, 30 Mar 2014 18:36:46 +0000 Subject: [PATCH] - Fix build on HEAD (unknown clang option -fwhole-program) --- games/flare-engine/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/games/flare-engine/Makefile b/games/flare-engine/Makefile index 9ba7980d6fbe..4b0406727d46 100644 --- a/games/flare-engine/Makefile +++ b/games/flare-engine/Makefile @@ -14,7 +14,7 @@ COMMENT= Free Libre Action Roleplaying Engine LICENSE= GPLv3 -USES= cmake +USES= cmake compiler:env USE_SDL= sdl mixer image ttf CMAKE_BUILD_TYPE= #empty @@ -26,8 +26,16 @@ PORTDATA= * PLIST_FILES= bin/${PORTNAME} \ man/man1/flare.1.gz +.include + +post-patch: +.if ${COMPILER_TYPE} == "clang" + @${REINPLACE_CMD} -e 's|-fwhole-program||' ${WRKSRC}/CMakeLists.txt +.endif + post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/flare ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.engine ${STAGEDIR}${DOCSDIR}/ -.include +.include