summaryrefslogtreecommitdiff
path: root/games/corsix-th/Makefile
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2016-05-30 20:57:13 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2016-05-30 20:57:13 +0000
commit0576645e5098de22a5dfd5e5eb8eb371ddd996d2 (patch)
treee067eed3c7bb0ff6e75119100db3a718e61dd1a8 /games/corsix-th/Makefile
parentdevel/simple_components: Upgrade version 4.12 => 4.13 (diff)
- Update to 0.60
- Add workaround for what appears to be a gcc bug on 9.x. - Enable again MOVIES option by default, it does not crash anymore.
Notes
Notes: svn path=/head/; revision=416180
Diffstat (limited to 'games/corsix-th/Makefile')
-rw-r--r--games/corsix-th/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/games/corsix-th/Makefile b/games/corsix-th/Makefile
index 20e06c6c4db2..7c5cac399559 100644
--- a/games/corsix-th/Makefile
+++ b/games/corsix-th/Makefile
@@ -2,9 +2,8 @@
# $FreeBSD$
PORTNAME= corsixth
-PORTVERSION= 0.50
+PORTVERSION= 0.60
DISTVERSIONPREFIX= v
-PORTREVISION= 1
CATEGORIES= games
MAINTAINER= madpilot@FreeBSD.org
@@ -16,7 +15,7 @@ LIB_DEPENDS= libfreetype.so:print/freetype2
RUN_DEPENDS= ${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem \
${LUA_MODLIBDIR}/lpeg.so:devel/lua-lpeg
-USES= cmake compiler:c++11-lang dos2unix iconv lua pkgconfig
+USES= cmake compiler:c++11-lib dos2unix iconv lua pkgconfig
USE_SDL= mixer2
DOS2UNIX_FILES= CMake/FindFFmpeg.cmake \
CorsixTH/CMakeLists.txt \
@@ -29,13 +28,19 @@ GH_ACCOUNT= CorsixTH
GH_PROJECT= CorsixTH
OPTIONS_DEFINE= MOVIES
-#OPTIONS_DEFAULT= MOVIES
+OPTIONS_DEFAULT= MOVIES
MOVIES_DESC= Play in-game movies
MOVIES_CMAKE_ON= -DWITH_MOVIES=ON
MOVIES_CMAKE_OFF= -DWITH_MOVIES=OFF
MOVIES_LIB_DEPENDS= libswresample.so:multimedia/ffmpeg
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1000024 && ${CHOSEN_COMPILER_TYPE} == gcc
+CXXFLAGS+= -D_GLIBCXX_USE_C99
+.endif
+
post-patch:
# Allow the game to find its resources without wrapper scripts
@${REINPLACE_CMD} -e \
@@ -49,4 +54,4 @@ do-install:
cd ${WRKSRC}/CorsixTH && ${COPYTREE_SHARE} "Bitmap Levels Lua" \
${STAGEDIR}${DATADIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>