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