diff --git a/games/7kaa/Makefile b/games/7kaa/Makefile index 8a4731261c84..b9882d8292c8 100644 --- a/games/7kaa/Makefile +++ b/games/7kaa/Makefile @@ -13,18 +13,20 @@ COMMENT= Seven Kingdoms: Ancient Adversaries LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libenet.so:net/enet \ - libcurl.so:ftp/curl - BROKEN_aarch64= fails to compile: OBULLET.cpp:41:9: constant expression evaluates to -1 which cannot be narrowed to type 'char' BROKEN_armv6= fails to compile: OBULLET.cpp:41:9: constant expression evaluates to -1 which cannot be narrowed to type 'char' BROKEN_armv7= fails to compile: OBULLET.cpp:41:9: constant expression evaluates to -1 which cannot be narrowed to type 'char' +LIB_DEPENDS= libenet.so:net/enet \ + libcurl.so:ftp/curl + USES= compiler:c++11-lib gmake localbase openal:al pkgconfig tar:xz GNU_CONFIGURE= yes LLD_UNSAFE= yes CONFIGURE_ARGS= --disable-nls # no translations ATM USE_SDL= sdl2 +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing PLIST_FILES= bin/${PORTNAME} \ share/pixmaps/${PORTNAME}.ico 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}" \ 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 diff --git a/games/exult/Makefile b/games/exult/Makefile index c8b04d8ab77f..53a3f15eb2a0 100644 --- a/games/exult/Makefile +++ b/games/exult/Makefile @@ -12,13 +12,13 @@ COMMENT= Ultima VII engine LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libvorbis.so:audio/libvorbis \ - libpng.so:graphics/png - BROKEN_armv6= fails to compile: constant expression evaluates to -1 which cannot be narrowed to type char BROKEN_armv7= fails to compile: constant expression evaluates to -1 which cannot be narrowed to type char BROKEN_aarch64= fails to compile: constant expression evaluates to -1 which cannot be narrowed to type char +LIB_DEPENDS= libvorbis.so:audio/libvorbis \ + libpng.so:graphics/png + USE_GITHUB= yes GH_TAGNAME= b15afba @@ -27,6 +27,7 @@ USE_XORG= xext GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-alsa \ --with-icondir=${PREFIX}/share/pixmaps +CFLAGS+= -Wno-c++11-narrowing SUB_FILES= pkg-message diff --git a/games/ivan/Makefile b/games/ivan/Makefile index 880e79c73e7f..2d81a044ca6e 100644 --- a/games/ivan/Makefile +++ b/games/ivan/Makefile @@ -16,11 +16,12 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_armv6= fails to compile: use of overloaded operator '<<' is ambiguous BROKEN_armv7= fails to compile: use of overloaded operator '<<' is ambiguous -USES= gmake +USES= compiler gmake USE_SDL= sdl GNU_CONFIGURE= yes -CXXFLAGS+= -Wno-c++11-narrowing +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing CONFIGURE_ARGS= --localstatedir=/var/games diff --git a/games/kartofel/Makefile b/games/kartofel/Makefile index 5de6a9ebcaf0..405956f82f22 100644 --- a/games/kartofel/Makefile +++ b/games/kartofel/Makefile @@ -13,12 +13,13 @@ COMMENT= Connect the dots in order without crossing over yourself LIB_DEPENDS= libcurl.so:ftp/curl -USES= gmake +USES= compiler gmake USE_SDL= sdl gfx mixer image ttf ALL_TARGET= default -CXXFLAGS+= -Wno-c++11-narrowing +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing DATA_DIRS= sounds fonts music images levels diff --git a/games/legesmotus/Makefile b/games/legesmotus/Makefile index cabac7223fa4..1be946671e95 100644 --- a/games/legesmotus/Makefile +++ b/games/legesmotus/Makefile @@ -18,10 +18,11 @@ HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix="${PREFIX}" \ --mandir="${PREFIX}/man" \ --datadir="${DATADIR}" -USES= gmake +USES= compiler gmake MAKE_ENV= XDIR=${LOCALBASE} -CXXFLAGS+= -Wno-c++11-narrowing +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing PORTDATA= * diff --git a/games/stormbaancoureur/Makefile b/games/stormbaancoureur/Makefile index 2a1062258a08..f7eebc924ac5 100644 --- a/games/stormbaancoureur/Makefile +++ b/games/stormbaancoureur/Makefile @@ -16,11 +16,13 @@ LICENSE= GPLv3 BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib \ ${LOCALBASE}/lib/libode.a:devel/ode +USES= compiler USE_GL= gl glu glut MAKE_ENV= DATADIR="${DATADIR}" -CXXFLAGS+= -Wno-c++11-narrowing +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing BUILD_WRKSRC= ${WRKSRC}/src-stormbaancoureur INSTALL_WRKSRC= ${WRKSRC}/src-stormbaancoureur diff --git a/graphics/glosm/Makefile b/graphics/glosm/Makefile index ff6aea0c9363..5bd294687070 100644 --- a/graphics/glosm/Makefile +++ b/graphics/glosm/Makefile @@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libpng.so:graphics/png \ libexpat.so:textproc/expat2 -USES= tar:bzip2 cmake +USES= cmake compiler tar:bzip2 USE_GL= gl USE_XORG= x11 USE_SDL= sdl @@ -24,7 +24,8 @@ USE_GITHUB= yes GH_ACCOUNT= AMDmi3 TEST_TARGET= test -CXXFLAGS+= -Wno-c++11-narrowing +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing PORTDOCS= README ChangeLog