# $NetBSD: Makefile.common,v 1.9 2021/09/04 09:21:29 nia Exp $ # used by games/stone-soup/Makefile # used by games/stone-soup-sdl/Makefile DISTNAME= stone_soup-0.27.1-nodeps PKGNAME= ${DISTNAME:S/_/-/:S/-nodeps//1} CATEGORIES= games MASTER_SITES= ${MASTER_SITE_GITHUB:=crawl/} GITHUB_PROJECT= crawl GITHUB_RELEASE= ${PKGVERSION_NOREV} EXTRACT_SUFX= .tar.xz HOMEPAGE= https://crawl.develz.org/ LICENSE= gnu-gpl-v2 DISTINFO_FILE= ${.CURDIR}/../../games/stone-soup/distinfo PATCHDIR= ${.CURDIR}/../../games/stone-soup/patches WRKSRC= ${WRKDIR}/stone_soup-${PKGVERSION_NOREV} BUILD_DIRS= source USE_TOOLS+= pkg-config gmake perl USE_LANGUAGES= c c++ USE_LIBTOOL= yes CXXFLAGS+= -DCURSES_INCLUDE_FILE='' # C++11 GCC_REQD+= 4.8 MAKE_FLAGS+= prefix=${PREFIX} MAKE_FLAGS+= SAVEDIR='~/.crawl' MAKE_FLAGS+= V=y MAKE_FLAGS+= DATADIR=${PREFIX}/share/stone-soup MAKE_FLAGS+= NO_AUTO_OPT=YesPlease MAKE_FLAGS+= FORCE_CXX="${CXX} ${CXXFLAGS} ${LDFLAGS}" REPLACE_PERL+= source/util/*.pl REPLACE_PERL+= source/util/mac-crawl-build-update-cdo REPLACE_PERL+= source/util/gen-mi-enum REPLACE_PERL+= source/util/gather* REPLACE_PERL+= source/util/db_lint REPLACE_PERL+= source/util/checkwhite REPLACE_PERL+= source/util/good-depfile TOOL_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml REPLACE_PYTHON+= sources/util/species-gen.py REPLACE_PYTHON+= sources/util/txc REPLACE_PYTHON+= sources/webserver/server.py REPLACE_PYTHON+= sources/webserver/ws_handler.py LUA_VERSIONS_ACCEPTED= 51 CHECK_PORTABILITY_SKIP+= source/contrib/sdl2/build-scripts/androidbuildlibs.sh CHECK_PORTABILITY_SKIP+= source/contrib/sdl2/build-scripts/iosbuild.sh CHECK_PORTABILITY_SKIP+= source/contrib/sdl2-image/external/tiff-4.0.3/configure CHECK_PORTABILITY_SKIP+= */Xcode/*.sh .include "../../databases/sqlite3/buildlink3.mk" # FIXME: Compatibility issue with NetBSD curses # https://github.com/crawl/crawl/issues/1661 .include "../../devel/ncursesw/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../lang/lua/buildlink3.mk" .include "../../lang/python/tool.mk" .include "../../mk/pthread.buildlink3.mk"