- Fix build on HEAD (unknown clang option -fwhole-program)

This commit is contained in:
Dmitry Marakasov 2014-03-30 18:36:46 +00:00
parent 0c7a73bea1
commit f77a612f66
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349665

View File

@ -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 <bsd.port.pre.mk>
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 <bsd.port.mk>
.include <bsd.port.post.mk>