| @@ -1,73 +1,66 @@ | | | @@ -1,73 +1,66 @@ |
1 | # $NetBSD: Makefile.common,v 1.5 2020/12/09 12:28:39 nia Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.6 2020/12/30 12:24:27 nia Exp $ |
2 | # used by games/stone-soup/Makefile | | 2 | # used by games/stone-soup/Makefile |
3 | # used by games/stone-soup-sdl/Makefile | | 3 | # used by games/stone-soup-sdl/Makefile |
4 | | | 4 | |
5 | DISTNAME= stone_soup-0.25.1-nodeps | | 5 | DISTNAME= stone_soup-0.25.1-nodeps |
6 | PKGNAME= ${DISTNAME:S/_/-/:S/-nodeps//1} | | 6 | PKGNAME= ${DISTNAME:S/_/-/:S/-nodeps//1} |
7 | CATEGORIES= games | | 7 | CATEGORIES= games |
8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=crawl/} | | 8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=crawl/} |
9 | GITHUB_PROJECT= crawl | | 9 | GITHUB_PROJECT= crawl |
10 | GITHUB_RELEASE= 0.25.1 | | 10 | GITHUB_RELEASE= 0.25.1 |
11 | EXTRACT_SUFX= .tar.xz | | 11 | EXTRACT_SUFX= .tar.xz |
12 | | | 12 | |
13 | HOMEPAGE= https://crawl.develz.org/ | | 13 | HOMEPAGE= https://crawl.develz.org/ |
14 | LICENSE= gnu-gpl-v2 | | 14 | LICENSE= gnu-gpl-v2 |
15 | | | 15 | |
16 | DISTINFO_FILE= ${.CURDIR}/../../games/stone-soup/distinfo | | 16 | DISTINFO_FILE= ${.CURDIR}/../../games/stone-soup/distinfo |
17 | PATCHDIR= ${.CURDIR}/../../games/stone-soup/patches | | 17 | PATCHDIR= ${.CURDIR}/../../games/stone-soup/patches |
18 | | | 18 | |
19 | WRKSRC= ${WRKDIR}/stone_soup-${PKGVERSION_NOREV} | | 19 | WRKSRC= ${WRKDIR}/stone_soup-${PKGVERSION_NOREV} |
20 | BUILD_DIRS= source | | 20 | BUILD_DIRS= source |
21 | USE_TOOLS+= pkg-config gmake perl | | 21 | USE_TOOLS+= pkg-config gmake perl |
22 | USE_LANGUAGES= c c++ | | 22 | USE_LANGUAGES= c c++ |
23 | USE_LIBTOOL= yes | | 23 | USE_LIBTOOL= yes |
24 | | | 24 | |
25 | USE_CURSES= wide | | 25 | CXXFLAGS+= -DCURSES_INCLUDE_FILE='<ncursesw/ncurses.h>' |
26 | | | 26 | |
27 | # C++11 | | 27 | # C++11 |
28 | GCC_REQD+= 4.8 | | 28 | GCC_REQD+= 4.8 |
29 | | | 29 | |
30 | MAKE_FLAGS+= prefix=${PREFIX} | | 30 | MAKE_FLAGS+= prefix=${PREFIX} |
31 | MAKE_FLAGS+= SAVEDIR='~/.crawl' | | 31 | MAKE_FLAGS+= SAVEDIR='~/.crawl' |
32 | MAKE_FLAGS+= V=y | | 32 | MAKE_FLAGS+= V=y |
33 | MAKE_FLAGS+= DATADIR=${PREFIX}/share/stone-soup | | 33 | MAKE_FLAGS+= DATADIR=${PREFIX}/share/stone-soup |
34 | MAKE_FLAGS+= NO_AUTO_OPT=YesPlease | | 34 | MAKE_FLAGS+= NO_AUTO_OPT=YesPlease |
35 | MAKE_FLAGS+= FORCE_CXX="${CXX} ${CXXFLAGS} ${LDFLAGS}" | | 35 | MAKE_FLAGS+= FORCE_CXX="${CXX} ${CXXFLAGS} ${LDFLAGS}" |
36 | | | 36 | |
37 | .include "../../mk/curses.buildlink3.mk" | | | |
38 | .if !empty(CURSES_TYPE:Mncurses*) | | | |
39 | . if ${CURSES_TYPE} == "ncursesw" | | | |
40 | MAKE_FLAGS+= LIBNCURSES_IS_UNICODE=Yes | | | |
41 | . endif | | | |
42 | .else | | | |
43 | MAKE_FLAGS+= NO_NCURSES=YesPlease | | | |
44 | MAKE_FLAGS+= EXTRA_LIBS="-lcurses -pthread" | | | |
45 | .endif | | | |
46 | | | | |
47 | REPLACE_PERL+= source/util/*.pl | | 37 | REPLACE_PERL+= source/util/*.pl |
48 | REPLACE_PERL+= source/util/mac-crawl-build-update-cdo | | 38 | REPLACE_PERL+= source/util/mac-crawl-build-update-cdo |
49 | REPLACE_PERL+= source/util/gen-mi-enum | | 39 | REPLACE_PERL+= source/util/gen-mi-enum |
50 | REPLACE_PERL+= source/util/gather* | | 40 | REPLACE_PERL+= source/util/gather* |
51 | REPLACE_PERL+= source/util/db_lint | | 41 | REPLACE_PERL+= source/util/db_lint |
52 | REPLACE_PERL+= source/util/checkwhite | | 42 | REPLACE_PERL+= source/util/checkwhite |
53 | REPLACE_PERL+= source/util/good-depfile | | 43 | REPLACE_PERL+= source/util/good-depfile |
54 | | | 44 | |
55 | TOOL_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml | | 45 | TOOL_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml |
56 | | | 46 | |
57 | REPLACE_PYTHON+= sources/util/species-gen.py | | 47 | REPLACE_PYTHON+= sources/util/species-gen.py |
58 | REPLACE_PYTHON+= sources/util/txc | | 48 | REPLACE_PYTHON+= sources/util/txc |
59 | REPLACE_PYTHON+= sources/webserver/server.py | | 49 | REPLACE_PYTHON+= sources/webserver/server.py |
60 | REPLACE_PYTHON+= sources/webserver/ws_handler.py | | 50 | REPLACE_PYTHON+= sources/webserver/ws_handler.py |
61 | | | 51 | |
62 | LUA_VERSIONS_ACCEPTED= 51 | | 52 | LUA_VERSIONS_ACCEPTED= 51 |
63 | | | 53 | |
64 | CHECK_PORTABILITY_SKIP+= source/contrib/sdl2/build-scripts/androidbuildlibs.sh | | 54 | CHECK_PORTABILITY_SKIP+= source/contrib/sdl2/build-scripts/androidbuildlibs.sh |
65 | CHECK_PORTABILITY_SKIP+= source/contrib/sdl2/build-scripts/iosbuild.sh | | 55 | CHECK_PORTABILITY_SKIP+= source/contrib/sdl2/build-scripts/iosbuild.sh |
66 | CHECK_PORTABILITY_SKIP+= source/contrib/sdl2-image/external/tiff-4.0.3/configure | | 56 | CHECK_PORTABILITY_SKIP+= source/contrib/sdl2-image/external/tiff-4.0.3/configure |
67 | CHECK_PORTABILITY_SKIP+= */Xcode/*.sh | | 57 | CHECK_PORTABILITY_SKIP+= */Xcode/*.sh |
68 | | | 58 | |
69 | .include "../../databases/sqlite3/buildlink3.mk" | | 59 | .include "../../databases/sqlite3/buildlink3.mk" |
| | | 60 | # FIXME: Compatibility issue with NetBSD curses |
| | | 61 | # https://github.com/crawl/crawl/issues/1661 |
| | | 62 | .include "../../devel/ncursesw/buildlink3.mk" |
70 | .include "../../devel/zlib/buildlink3.mk" | | 63 | .include "../../devel/zlib/buildlink3.mk" |
71 | .include "../../lang/lua/buildlink3.mk" | | 64 | .include "../../lang/lua/buildlink3.mk" |
72 | .include "../../lang/python/tool.mk" | | 65 | .include "../../lang/python/tool.mk" |
73 | .include "../../mk/pthread.buildlink3.mk" | | 66 | .include "../../mk/pthread.buildlink3.mk" |