Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
# Created by: Vladimir Kondratiev <wulf@cicgroup.ru>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cataclysm-dda
|
2016-03-15 16:28:56 +01:00
|
|
|
PORTVERSION= 0.C
|
2015-01-23 20:31:26 +01:00
|
|
|
PORTEPOCH= 1
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
|
2015-03-05 14:49:48 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
COMMENT= Fork/variant of Cataclysm Roguelike by Whales
|
|
|
|
|
|
|
|
LICENSE= CCPL.BY-SA.30
|
|
|
|
LICENSE_NAME= Creative Commons Attribution-ShareAlike 3.0 Unported License
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
|
2016-03-15 16:28:56 +01:00
|
|
|
USES= alias compiler:c++11-lib execinfo gmake shebangfix
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
SHEBANG_FILES= lang/*.sh
|
|
|
|
bash_CMD= /bin/sh
|
|
|
|
|
2015-05-06 18:04:20 +02:00
|
|
|
USE_GITHUB= yes
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
GH_ACCOUNT= CleverRaven
|
|
|
|
GH_PROJECT= Cataclysm-DDA
|
2015-01-23 20:31:26 +01:00
|
|
|
|
2016-03-15 16:28:56 +01:00
|
|
|
MAKE_ARGS= CXX="${CXX}" LD="${CXX}" RELEASE=1
|
|
|
|
|
|
|
|
CPPFLAGS+= ${EXECINFO_CPPFLAGS}
|
|
|
|
LDFLAGS+= ${EXECINFO_LDFLAGS} -lexecinfo
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
|
2014-08-31 17:52:47 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2015-01-23 20:31:26 +01:00
|
|
|
OPTIONS_DEFINE= NLS DOCS LUA SOUND
|
2016-03-15 16:28:56 +01:00
|
|
|
OPTIONS_DEFAULT=NCURSES
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
OPTIONS_SINGLE= UI
|
|
|
|
OPTIONS_SINGLE_UI= NCURSES SDL
|
2016-03-15 16:28:56 +01:00
|
|
|
OPTIONS_SUB= yes
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
|
|
|
|
UI_DESC= User Interface
|
2015-01-23 20:31:26 +01:00
|
|
|
SOUND_DESC= Sound support (SDL UI only)
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
|
|
|
|
NCURSES_USES= ncurses
|
2016-03-15 16:28:56 +01:00
|
|
|
SDL_USE= SDL=image2,ttf2
|
2015-01-23 20:31:26 +01:00
|
|
|
SDL_USES= pkgconfig
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
SDL_MAKE_ARGS= TILES=1 TILESTARGET=cataclysm
|
2016-03-15 16:28:56 +01:00
|
|
|
SDL_RUN_DEPENDS=terminus-font>0:${PORTSDIR}/x11-fonts/terminus-font
|
|
|
|
SDL_CPPFLAGS= $$(sdl2-config --cflags)
|
|
|
|
SDL_LDFLAGS= $$(sdl2-config --libs)
|
|
|
|
SDL_DESKTOP_ENTRIES="Cataclysm-DDA" "" "" "cataclysm" "" ""
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
NLS_USES= gettext
|
2016-03-15 16:28:56 +01:00
|
|
|
NLS_LDFLAGS= -L${LOCALBASE}/lib -lintl
|
|
|
|
NLS_MAKE_ARGS_OFF=LOCALIZE=0
|
|
|
|
NLS_CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LUA_USES= lua pkgconfig
|
|
|
|
LUA_MAKE_ARGS= LUA=1 LUA_BINARY="${LUA_CMD}"
|
|
|
|
SOUND_MASTER_SITES= http://polehammer.com/azmodean/:sound
|
|
|
|
SOUND_DISTFILES= ${SOUND_FILES:S/$/:sound/}
|
|
|
|
SOUND_EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
SOUND_USE= SDL=mixer2
|
|
|
|
SOUND_MAKE_ARGS= SOUND=1
|
|
|
|
SOUND_IMPLIES= SDL
|
|
|
|
|
|
|
|
SOUND_FILES= cataclysmthemeREV6.ogg Dark_Days_Ahead_demo_2.ogg
|
2015-01-23 20:31:26 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2016-03-15 16:28:56 +01:00
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 36
|
2015-03-19 21:57:12 +01:00
|
|
|
CXXFLAGS+= -Wno-inconsistent-missing-override
|
|
|
|
.endif
|
|
|
|
|
2016-03-15 16:28:56 +01:00
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
|
|
CPPFLAGS+= -DCATA_NO_CPP11_STRING_CONVERSIONS
|
2015-01-23 20:31:26 +01:00
|
|
|
.endif
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
|
2015-01-23 20:31:26 +01:00
|
|
|
post-patch:
|
2016-03-15 16:28:56 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/CXXFLAGS/s|-O[0-3s]|| ; \
|
|
|
|
/LDFLAGS/s|-s$$|| ; \
|
|
|
|
s|$$(shell ncursesw5-config --cflags)|| ; \
|
|
|
|
s|$$(shell ncursesw5-config --libs)|-lncursesw -ltinfow| ; \
|
|
|
|
s|\($$(CXX)\) \($$(DEFINES)\)|\1 $$(CPPFLAGS) \2| ; \
|
|
|
|
s|\([[:blank:]]\)\($$(DATA_PREFIX)\)|\1$$(DESTDIR)\2| ; \
|
|
|
|
s|\([[:blank:]]\)\($$(BIN_PREFIX)\)|\1$$(DESTDIR)\2| ; \
|
|
|
|
s|--mode=|-m | ; \
|
|
|
|
s|--no-preserve=ownership|| ; \
|
|
|
|
s|-t || ; \
|
|
|
|
s|\([[:blank:]]\)\($$(LOCALE_DIR)\)|\1$$(DESTDIR)\2| ; \
|
|
|
|
s|\(=\)\($$(LOCALE_DIR)\)|\1$$(DESTDIR)\2|' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|/usr/local/share/fonts|${LOCALBASE}/share/fonts|' \
|
|
|
|
${WRKSRC}/src/sdltiles.cpp
|
|
|
|
|
|
|
|
post-patch-NLS-off:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/LOCALE_DIR/s|^|#|' \
|
|
|
|
${WRKSRC}/Makefile
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
|
2015-01-23 20:31:26 +01:00
|
|
|
post-install:
|
2016-03-15 16:28:56 +01:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cataclysm
|
|
|
|
# replace bundled windows version of terminus font with X-compatible one
|
|
|
|
${RM} ${STAGEDIR}${DATADIR}/font/terminus.fon
|
|
|
|
${LN} -sf ${PREFIX}/share/fonts/terminus/ter-u14n.pcf.gz \
|
|
|
|
${STAGEDIR}${DATADIR}/font/terminus.fon
|
|
|
|
|
|
|
|
post-install-SOUND-on:
|
2015-01-23 20:31:26 +01:00
|
|
|
cd ${WRKSRC}/data && ${COPYTREE_SHARE} sound ${STAGEDIR}${DATADIR}
|
2016-03-15 16:28:56 +01:00
|
|
|
cd ${DISTDIR} && ${INSTALL_DATA} ${SOUND_FILES} \
|
|
|
|
${STAGEDIR}${DATADIR}/sound
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2016-03-15 16:28:56 +01:00
|
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . \
|
|
|
|
${STAGEDIR}${DOCSDIR})
|
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
While some have described it as a "zombie game", there's far more to
Cataclysm than that. Struggle to survive in a harsh, persistant,
procedurally generated world. Scavenge the remnants of a dead civilization
for for food, equipment, or, if you're lucky, a vehicle with a full tank of
gas to get you the hell out of Dodge. Fight to defeat or escape from a wide
variety of powerful monstrosities, from zombies to giant insects to killer
robots and things far stranger and deadlier, and against the others like
yourself, that want what you have...
WWW: http://en.cataclysmdda.com/
PR: ports/183162
Submitted by: Vladimir Kondratiev <wulf@mail.mipt.ru>
2014-02-06 17:22:32 +01:00
|
|
|
|
2015-01-23 20:31:26 +01:00
|
|
|
.include <bsd.port.post.mk>
|