aboutsummaryrefslogtreecommitdiff
path: root/games/stuntrally
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2019-05-29 07:33:24 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2019-05-29 07:33:24 +0000
commit041bfc707bb9bbb8a6065127a82599bae01b202c (patch)
tree759f7689a743ef7df605e9e5acb2a9d8d357f006 /games/stuntrally
parent96ef1dc6feca1039e93d0f9c46b9a82129e038fe (diff)
downloadports-041bfc707bb9bbb8a6065127a82599bae01b202c.tar.gz
ports-041bfc707bb9bbb8a6065127a82599bae01b202c.zip
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
Notes
Notes: svn path=/head/; revision=502933
Diffstat (limited to 'games/stuntrally')
-rw-r--r--games/stuntrally/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/games/stuntrally/Makefile b/games/stuntrally/Makefile
index 0cc76f19ff31..b0550aa82ce7 100644
--- a/games/stuntrally/Makefile
+++ b/games/stuntrally/Makefile
@@ -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>