aboutsummaryrefslogtreecommitdiff
path: root/games/stonesoup/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-05-26 16:35:41 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-05-26 16:35:41 +0000
commit95870264a95e112dd40286515a64b619d7529491 (patch)
tree277cab1bf254bbfbbfda57f13c7a0d31c773978e /games/stonesoup/Makefile
parent4bd81d3e5d1ad7bffc4e5a4dd4d595e82872004f (diff)
downloadports-95870264a95e112dd40286515a64b619d7529491.tar.gz
ports-95870264a95e112dd40286515a64b619d7529491.zip
Notes
Diffstat (limited to 'games/stonesoup/Makefile')
-rw-r--r--games/stonesoup/Makefile40
1 files changed, 23 insertions, 17 deletions
diff --git a/games/stonesoup/Makefile b/games/stonesoup/Makefile
index c356e2c78903..fa89c3b9ab4f 100644
--- a/games/stonesoup/Makefile
+++ b/games/stonesoup/Makefile
@@ -2,22 +2,25 @@
# $FreeBSD$
PORTNAME= stonesoup
-PORTVERSION= 0.15.2
-PORTREVISION= 1
+PORTVERSION= 0.16.1
CATEGORIES= games
MASTER_SITES= SF/crawl-ref/Stone%20Soup/${PORTVERSION}
+MASTER_SITES= http://crawl.develz.org/release/
DISTNAME= stone_soup-${PORTVERSION}-nodeps
MAINTAINER= tobias.rehbein@web.de
COMMENT= Dungeon Crawl Stone Soup - a fun, free rogue-like game
LICENSE= GPLv2
-LICENSE_FILE= ${WRKDIR}/stone_soup-${PORTVERSION}/licence.txt
+LICENSE_FILE= ${WRKSRC}/../licence.txt
USE_SQLITE= yes
-USES= bison compiler gmake lua:51 perl5 pkgconfig shebangfix tar:xz
+USES= bison compiler:c++11-lib gmake lua:51 perl5 pkgconfig \
+ shebangfix tar:xz
+
USE_PERL5= build
-SHEBANG_FILES= util/gen-mi-enum
+SHEBANG_FILES= util/gen-mi-enum \
+ util/good-depfile
SAVEDIR= \~/.stonesoup
WRKSRC= ${WRKDIR}/stone_soup-${PORTVERSION}/source/
@@ -25,10 +28,12 @@ WRKSRC= ${WRKDIR}/stone_soup-${PORTVERSION}/source/
SUB_FILES= README.FreeBSD
PLIST_SUB= SAVEDIR="${SAVEDIR}"
-OPTIONS_DEFINE= SOUND WIZARD LUA_BINDINGS DOCS EXAMPLES
+# WIZARD is currently broken upstream, remove until fixed
+##OPTIONS_DEFINE= SOUND WIZARD LUA_BINDINGS DOCS EXAMPLES
+OPTIONS_DEFINE= SOUND LUA_BINDINGS DOCS EXAMPLES
SOUND_DESC= Sound support
-WIZARD_DESC= Wizard mode
+##WIZARD_DESC= Wizard mode
LUA_BINDINGS_DESC= Bindings for LUA user scripts
MAKE_ARGS= prefix=${PREFIX} \
@@ -39,8 +44,7 @@ MAKE_ARGS= prefix=${PREFIX} \
NO_AUTO_OPT=YesPlease \
NO_OPTIMIZE=YesPlease \
SQLITE_INCLUDE_DIR=${LOCALBASE}/include \
- SQLITE_LIB=-lsqlite3 \
- LDFLAGS="-L${LOCALBASE}/lib"
+ SQLITE_LIB=-lsqlite3
.include <bsd.port.options.mk>
@@ -48,13 +52,14 @@ MAKE_ARGS= prefix=${PREFIX} \
MAKE_ARGS+= V=yes
.endif
-.if empty(PORT_OPTIONS:MWIZARD)
-MAKE_ARGS+= NOWIZARD=y
-.endif
+##.if empty(PORT_OPTIONS:MWIZARD)
+##MAKE_ARGS+= NOWIZARD=y
+##.endif
.if ${PORT_OPTIONS:MSDL}
CONFLICTS+= ${PORTNAME}-[0-9]*
-MAKE_ARGS+= TILES=y
+MAKE_ARGS+= TILES=y \
+ GL_INCLUDE="-I ${LOCALBASE}/include/GL"
PLIST_SUB+= SDL=""
PKGNAMESUFFIX= -sdl
BUILD_DEPENDS+= fc-list:${PORTSDIR}/x11-fonts/fontconfig \
@@ -62,7 +67,8 @@ BUILD_DEPENDS+= fc-list:${PORTSDIR}/x11-fonts/fontconfig \
RUN_DEPENDS+= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu
LIB_DEPENDS+= libpng.so:${PORTSDIR}/graphics/png \
libfreetype.so:${PORTSDIR}/print/freetype2
-USE_SDL= sdl image
+USE_SDL= sdl2 image2
+USE_GL= yes
.else
USES+= ncurses
CONFLICTS+= ${PORTNAME}-sdl-[0-9]*
@@ -79,12 +85,12 @@ MAKE_ARGS+= NO_LUA_BINDINGS=yes
.include <bsd.port.pre.mk>
-.if ${COMPILER_TYPE} == clang
-CFLAGS+= -std=c++0x
+.if ${COMPILER_TYPE} != clang
+CFLAGS+= -D_GLIBCXX_USE_C99
.endif
post-patch:
- @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile
+# @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile
.if ${PORT_OPTIONS:MSOUND}
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/AppHdr.h
@${REINPLACE_CMD} -e "s,%%SOUND%%,," ${WRKSRC}/AppHdr.h