Date: Sun, 30 Mar 2014 18:36:46 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349665 - head/games/flare-engine Message-ID: <201403301836.s2UIakHf016407@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Sun Mar 30 18:36:46 2014 New Revision: 349665 URL: http://svnweb.freebsd.org/changeset/ports/349665 QAT: https://qat.redports.org/buildarchive/r349665/ Log: - Fix build on HEAD (unknown clang option -fwhole-program) Modified: head/games/flare-engine/Makefile Modified: head/games/flare-engine/Makefile ============================================================================== --- head/games/flare-engine/Makefile Sun Mar 30 18:24:30 2014 (r349664) +++ head/games/flare-engine/Makefile Sun Mar 30 18:36:46 2014 (r349665) @@ -14,7 +14,7 @@ COMMENT= Free Libre Action Roleplaying E 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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403301836.s2UIakHf016407>