aboutsummaryrefslogtreecommitdiffstats
path: root/games/apricots/Makefile
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2018-09-18 16:47:31 +0800
committerlinimon <linimon@FreeBSD.org>2018-09-18 16:47:31 +0800
commite826b5e74616d9321d2c4f291f0f8de42e189852 (patch)
tree2e7efe898622c1415ef112d3cb11991db31f4790 /games/apricots/Makefile
parent665a3a277dc8d6ff3335acef18c7f2d2dacb45fe (diff)
downloadfreebsd-ports-gnome-e826b5e74616d9321d2c4f291f0f8de42e189852.tar.gz
freebsd-ports-gnome-e826b5e74616d9321d2c4f291f0f8de42e189852.tar.zst
freebsd-ports-gnome-e826b5e74616d9321d2c4f291f0f8de42e189852.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)
Diffstat (limited to 'games/apricots/Makefile')
-rw-r--r--games/apricots/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/apricots/Makefile b/games/apricots/Makefile
index 469c768c0987..a55f39fbb8e0 100644
--- a/games/apricots/Makefile
+++ b/games/apricots/Makefile
@@ -11,8 +11,8 @@ MASTER_SITES= http://www.fishies.org.uk/ \
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Fly a little plane around and shoot things and drop bombs
+USES= compiler dos2unix
USE_SDL= sdl
-USES= dos2unix
DOS2UNIX_GLOB= *.cpp
SUB_FILES= ${PORTNAME}
@@ -22,7 +22,8 @@ PORTDOCS= *
CPPFLAGS+= -DAP_PATH="\"${DATADIR}/\""
LLD_UNSAFE= yes
-CXXFLAGS+= -Wno-c++11-narrowing
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang= -Wno-c++11-narrowing
DESKTOP_ENTRIES="Apricots" \
"${COMMENT}" \