pkgsrc/games/cataclysm-dda/Makefile.common
nia 300bc1550f Add games/cataclysm-dda.
Based partially on work by Yorick Hardy in pkgsrc-wip.

Cataclysm: Dark Days Ahead is a turn-based survival game set in a
post-apocalyptic world.

Struggle to survive in a harsh, persistent, procedurally generated world.

Scavenge the remnants of a dead civilization for food, equipment, or, if
you are 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...
2019-08-07 18:05:25 +00:00

47 lines
1.1 KiB
Text

# $NetBSD: Makefile.common,v 1.1 2019/08/07 18:05:25 nia Exp $
# used by games/cataclysm-dda/Makefile
# used by games/cataclysm-dda-sdl/Makefile
DISTNAME= cataclysm-dda-0.D
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=CleverRaven/}
GITHUB_PROJECT= Cataclysm-DDA
GITHUB_TAG= 0.D
HOMEPAGE= https://cataclysmdda.org/
LICENSE= cc-by-sa-v3.0
USE_LANGUAGES= c c++11
USE_TOOLS+= gmake msgfmt pkg-config
USE_TOOLS+= pax
# C++11
GCC_REQD+= 4.8
DISTINFO_FILE= ${.CURDIR}/../../games/cataclysm-dda/distinfo
CFLAGS+= -DCATA_NO_CPP11_STRING_CONVERSIONS
CXXFLAGS+= -DCATA_NO_CPP11_STRING_CONVERSIONS
LDFLAGS+= ${BUILDLINK_LDADD.gettext}
REPLACE_SH+= lang/compile_mo.sh
MAKE_FLAGS+= ASTYLE=0
MAKE_FLAGS+= DYNAMIC_LINKING=1
MAKE_FLAGS+= LANGUAGES=all
MAKE_FLAGS+= RELEASE=1
MAKE_FLAGS+= RUNTESTS=0
MAKE_FLAGS+= USE_XDG_DIR=1
BUILDLINK_TRANSFORM+= rm:-Werror
LUA_VERSIONS_INCOMPATIBLE= 51
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= share/cataclysm-dda
INSTALLATION_DIRS+= share/cataclysm-dda/lua
INSTALLATION_DIRS+= share/locale
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"