aboutsummaryrefslogtreecommitdiff
path: root/games/chapping
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2018-09-18 08:47:31 +0000
committerMark Linimon <linimon@FreeBSD.org>2018-09-18 08:47:31 +0000
commit03cf2e0916b5eadaaa5d50ad8034f0f648102053 (patch)
tree2e7efe898622c1415ef112d3cb11991db31f4790 /games/chapping
parent0d005beba9e28875a2ea08dc3dd55d446547630a (diff)
downloadports-03cf2e0916b5eadaaa5d50ad8034f0f648102053.tar.gz
ports-03cf2e0916b5eadaaa5d50ad8034f0f648102053.zip
Conditionalize the addition of -Wno-c++11-narrowing to fix clang6 errors
in CFLAGS to affect clang-based archs. Approved by: portmgr (tier-2 blanket)
Notes
Notes: svn path=/head/; revision=479998
Diffstat (limited to 'games/chapping')
-rw-r--r--games/chapping/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/chapping/Makefile b/games/chapping/Makefile
index 1e2ccb7d32d6..be9e9d9254b8 100644
--- a/games/chapping/Makefile
+++ b/games/chapping/Makefile
@@ -15,10 +15,11 @@ COMMENT= Turn based board football game
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= gmake tar:bzip2
+USES= compiler gmake tar:bzip2
USE_SDL= sdl image gfx ttf
-CXXFLAGS+= -Wno-c++11-narrowing
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang= -Wno-c++11-narrowing
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-source
ALL_TARGET= linux