blob: 7d89f336a19ef1f9cc2388c7b446ccb45d5ac33f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# $NetBSD: Makefile,v 1.65 2011/04/22 13:43:39 obache Exp $
DISTNAME= wesnoth-1.8.5
PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wesnoth/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.wesnoth.org/
COMMENT= Fantasy turn-based strategy game
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
PKG_DESTDIR_SUPPORT= user-destdir
#USE_CMAKE= yes
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
USE_TOOLS+= aclocal autoconf autoheader automake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs}
UNLIMIT_RESOURCES+= datasize
REPLACE_PERL+= utils/wesnothd.pl
USE_TOOLS+= perl:run msgfmt
SUBST_CLASSES+= python
SUBST_STAGE.python= post-build
SUBST_FILES.python+= data/tools/expand-terrain-macros.py
SUBST_FILES.python+= data/tools/scoutDefault.py
SUBST_FILES.python+= data/tools/wesnoth/wescamp.py
SUBST_FILES.python+= data/tools/wesnoth/wmldata.py
SUBST_FILES.python+= data/tools/wesnoth/wmlparser.py
SUBST_FILES.python+= utils/ai_test/ai_test.py
SUBST_FILES.python+= utils/mediawiki.py
SUBST_FILES.python+= utils/pofix.py
SUBST_FILES.python+= utils/test_libsvn.py
SUBST_FILES.python+= utils/unused_functions.py
SUBST_FILES.python+= utils/wiki_grabber.py
SUBST_MESSAGE.python= Fixing path to python.
# Best we can do without pulling in a python dependency.
SUBST_SED.python+= -e 's,WPY,${PREFIX}/bin/python2.6,'
SUBST_SED.python+= -e 's,/bin/env.*python,${PREFIX}/bin/python2.6,'
SUBST_SED.python+= -e 's,/usr/bin/python,${PREFIX}/bin/python2.6,'
REPLACE_RUBY= data/tools/terrain2wiki.rb
.include "../../lang/ruby/replace.mk"
REPLACE_SH+= data/tools/castle-cutter/mk-castle.sh
REPLACE_SH+= data/tools/castle-cutter/mk-all-castles.sh
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M4.*)
USE_TOOLS+= gmake
.endif
pre-configure:
set -e; cd ${WRKSRC}; \
aclocal -I m4; autoheader; automake -a --foreign -i; autoconf
BUILDLINK_API_DEPENDS.SDL_mixer+= SDL_mixer>=1.2.5nb3
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../converters/fribidi/buildlink3.mk"
BUILDLINK_API_DEPENDS.SDL+= SDL>=1.2.7
.include "../../devel/SDL/buildlink3.mk"
BUILDLINK_API_DEPENDS.SDL_ttf+= SDL_ttf>=2.0.8
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
BUILDLINK_API_DEPENDS.pango+= pango>=1.14.8
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../net/SDL_net/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|