svn commit: r502933 - head/games/stuntrally
Piotr Kubaj
pkubaj at FreeBSD.org
Wed May 29 07:33:25 UTC 2019
Author: pkubaj
Date: Wed May 29 07:33:24 2019
New Revision: 502933
URL: https://svnweb.freebsd.org/changeset/ports/502933
Log:
games/stuntrally: fix build with GCC-based architectures
Add -Wno-narrowing to CXXFLAGS when using GCC to fix build error.
PR: 237777
Approved by: tcberner (mentor), amdmi3 (maintainer timeout)
Differential Revision: https://reviews.freebsd.org/D20441
Modified:
head/games/stuntrally/Makefile
Modified: head/games/stuntrally/Makefile
==============================================================================
--- head/games/stuntrally/Makefile Wed May 29 07:29:28 2019 (r502932)
+++ head/games/stuntrally/Makefile Wed May 29 07:33:24 2019 (r502933)
@@ -57,8 +57,14 @@ MASTER_SERVER_CMAKE_BOOL= BUILD_MASTER_SERVER
MASTER_SERVER_DESC= Build the master server
MASTER_SERVER_LIB_DEPENDS= libenet.so:net/enet
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+CXXFLAGS+= -Wno-narrowing
+.endif
+
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR}/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list