Lines 5-11
PORTVERSION= 1.12.1
Link Here
|
5 |
CATEGORIES= games |
5 |
CATEGORIES= games |
6 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTNAME}-${PORTVERSION} \ |
6 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTNAME}-${PORTVERSION} \ |
7 |
http://files.wesnoth.org/ \ |
7 |
http://files.wesnoth.org/ \ |
8 |
http://ports.toco-domains.de |
8 |
http://ports.toco-domains.de/ |
9 |
|
9 |
|
10 |
MAINTAINER= ports@toco-domains.de |
10 |
MAINTAINER= ports@toco-domains.de |
11 |
COMMENT= Fantasy turn-based strategy game |
11 |
COMMENT= Fantasy turn-based strategy game |
Lines 14-165
LICENSE= GPLv2 GPLv3
Link Here
|
14 |
LICENSE_COMB= dual |
14 |
LICENSE_COMB= dual |
15 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
LICENSE_FILE= ${WRKSRC}/COPYING |
16 |
|
16 |
|
17 |
LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \ |
17 |
LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis \ |
18 |
libpng.so:${PORTSDIR}/graphics/png |
18 |
libboost_thread.so:${PORTSDIR}/devel/boost-libs \ |
|
|
19 |
libpng.so:${PORTSDIR}/graphics/png \ |
20 |
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig |
19 |
|
21 |
|
20 |
LDFLAGS+= -L${LOCALBASE}/lib -lboost_system |
22 |
LDFLAGS+= -L${LOCALBASE}/lib -lboost_system |
21 |
|
23 |
|
22 |
USE_SDL= image mixer net ttf |
24 |
USE_SDL= image mixer net ttf |
23 |
USE_GNOME= pango |
25 |
USE_GNOME= pango |
24 |
USES= cmake pkgconfig tar:bzip2 |
26 |
USES= cmake pkgconfig tar:bzip2 |
25 |
CMAKE_ARGS= -DMANDIR="man" |
27 |
CMAKE_ARGS= -DMANDIR="man" -DENABLE_STRICT_COMPILATION=off |
26 |
|
28 |
|
27 |
PORTDOCS= * |
29 |
PORTDOCS= * |
28 |
PORTDATA= * |
30 |
PORTDATA= * |
29 |
|
31 |
|
30 |
OPTIONS_DEFINE= ANA CAMPAIGN FRIBIDI LOWMEM NOTIFY OPENMP POOLALLOC PYTHON \ |
32 |
OPTIONS_DEFINE= ANA CAMPAIGN DOCS FRIBIDI LOWMEM NLS \ |
31 |
RAWSOCKETS SERVER TESTS TOOLS DOCS |
33 |
NOTIFY OPENMP RAWSOCKETS SERVER TEST TOOLS |
32 |
|
|
|
33 |
OPTIONS_DEFAULT= CAMPAIGN FRIBIDI NOTIFY SERVER TOOLS |
34 |
OPTIONS_DEFAULT= CAMPAIGN FRIBIDI NOTIFY SERVER TOOLS |
|
|
35 |
OPTIONS_SUB= yes |
34 |
|
36 |
|
35 |
ANA_DESC= Asynchronous Network API (WIP) |
37 |
ANA_DESC= Asynchronous Network API (WIP) |
|
|
38 |
ANA_CMAKE_ON= -DUSE_ANA_NETWORK=on |
36 |
CAMPAIGN_DESC= Campaign server |
39 |
CAMPAIGN_DESC= Campaign server |
|
|
40 |
CAMPAIGN_CMAKE_ON=-DENABLE_CAMPAIGN_SERVER=on |
41 |
DOCS_CMAKE_OFF= -DDOCDIR=none |
37 |
FRIBIDI_DESC= Bidirectional support |
42 |
FRIBIDI_DESC= Bidirectional support |
|
|
43 |
FRIBIDI_LIB_DEPENDS=libfribidi.so:${PORTSDIR}/converters/fribidi |
44 |
FRIBIDI_CMAKE_OFF=-DENABLE_FRIBIDI=off |
38 |
LOWMEM_DESC= Reduce memory usage (disables animations) |
45 |
LOWMEM_DESC= Reduce memory usage (disables animations) |
|
|
46 |
LOWMEM_CMAKE_ON=-DENABLE_LOW_MEM=on |
47 |
NLS_USES= gettext |
48 |
NLS_CMAKE_ON= -DLOCALEDIR=${PREFIX}/share/locale |
49 |
NLS_CMAKE_OFF= -DENABLE_NLS=off |
39 |
NOTIFY_DESC= Desktop notifications |
50 |
NOTIFY_DESC= Desktop notifications |
|
|
51 |
NOTIFY_LIB_DEPENDS=libdbus-1.so:${PORTSDIR}/devel/dbus |
52 |
NOTIFY_CMAKE_OFF=-DENABLE_NOTIFICATIONS=off |
40 |
OPENMP_DESC= OpenMP support |
53 |
OPENMP_DESC= OpenMP support |
41 |
POOLALLOC_DESC= Use wesnoth own memory allocator |
54 |
OPENMP_CMAKE_ON=-DENABLE_OMP=on |
42 |
PYTHON_DESC= Python developer tools |
|
|
43 |
RAWSOCKETS_DESC= Use raw receiving sockets in multiplayer |
55 |
RAWSOCKETS_DESC= Use raw receiving sockets in multiplayer |
|
|
56 |
RAWSOCKETS_CFLAGS=-DNETWORK_USE_RAW_SOCKETS |
44 |
SERVER_DESC= Server |
57 |
SERVER_DESC= Server |
45 |
TESTS_DESC= Unit tests |
58 |
SERVER_CMAKE_OFF=-DENABLE_SERVER=off |
|
|
59 |
TEST_CMAKE_ON= -DENABLE_TESTS=on |
46 |
TOOLS_DESC= Extra tools for artists and translators |
60 |
TOOLS_DESC= Extra tools for artists and translators |
|
|
61 |
TOOLS_CMAKE_ON= -DENABLE_TOOLS=on |
47 |
|
62 |
|
48 |
.include <bsd.port.options.mk> |
63 |
.include <bsd.port.options.mk> |
49 |
|
64 |
|
50 |
# disable strict compilation, because it will break the build |
|
|
51 |
CMAKE_ARGS+= -DENABLE_STRICT_COMPILATION=off |
52 |
|
53 |
.if ${PORT_OPTIONS:MANA} |
54 |
CMAKE_ARGS+= -DUSE_ANA_NETWORK=on |
55 |
PLIST_SUB+= ANA="" |
56 |
.else |
57 |
CMAKE_ARGS+= -DUSE_ANA_NETWORK=off |
58 |
PLIST_SUB+= ANA="@comment " |
59 |
.endif |
60 |
|
61 |
.if ${PORT_OPTIONS:MCAMPAIGN} |
62 |
CMAKE_ARGS+= -DENABLE_CAMPAIGN_SERVER=on |
63 |
PLIST_SUB+= CAMPAIGN="" |
64 |
.else |
65 |
CMAKE_ARGS+= -DENABLE_CAMPAIGN_SERVER=off |
66 |
PLIST_SUB+= CAMPAIGN="@comment " |
67 |
.endif |
68 |
|
69 |
.if ${PORT_OPTIONS:MFRIBIDI} |
70 |
CMAKE_ARGS+= -DENABLE_FRIBIDI=on |
71 |
LIB_DEPENDS+= libfribidi.so:${PORTSDIR}/converters/fribidi |
72 |
.else |
73 |
CMAKE_ARGS+= -DENABLE_FRIBIDI=off |
74 |
.endif |
75 |
|
76 |
.if ${PORT_OPTIONS:MLOWMEM} |
77 |
CMAKE_ARGS+= -DENABLE_LOW_MEM=on |
78 |
.else |
79 |
CMAKE_ARGS+= -DENABLE_LOW_MEM=off |
80 |
.endif |
81 |
|
82 |
.if ${PORT_OPTIONS:MNOTIFY} |
83 |
CMAKE_ARGS+= -DENABLE_NOTIFICATIONS=on |
84 |
LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus |
85 |
.else |
86 |
CMAKE_ARGS+= -DENABLE_NOTIFICATIONS=off |
87 |
.endif |
88 |
|
89 |
.if ${PORT_OPTIONS:MNLS} |
90 |
CMAKE_ARGS+= -DENABLE_NLS=on -DLOCALEDIR=${PREFIX}/share/locale |
91 |
USES+= gettext |
92 |
MANLANG= "" cs de en_GB es et fi fr gl hu id it lt pl ru sk \ |
93 |
sr sr@ijekavian sr@ijekavianlatin sr@latin tr uk vi zh_CN zh_TW |
94 |
.if ${PORT_OPTIONS:MSERVER} |
95 |
_MANPAGES+= ${PREFIX}/man/ja/man6/wesnothd.6 \ |
96 |
${PREFIX}/man/pt_BR/man6/wesnothd.6 \ |
97 |
${PREFIX}/man/tr/man6/wesnothd.6 |
98 |
.endif |
99 |
PLIST_SUB+= NLS="" |
100 |
.else |
101 |
CMAKE_ARGS+= -DENABLE_NLS=off |
102 |
PLIST_SUB+= NLS="@comment " |
103 |
.endif |
104 |
|
105 |
.if ${PORT_OPTIONS:MOPENMP} |
65 |
.if ${PORT_OPTIONS:MOPENMP} |
106 |
BROKEN= compilation fails with OpenMP |
66 |
BROKEN= compilation fails with OpenMP |
107 |
CMAKE_ARGS+= -DENABLE_OMP=on |
|
|
108 |
.else |
109 |
CMAKE_ARGS+= -DENABLE_OMP=off |
110 |
.endif |
111 |
|
112 |
.if ${PORT_OPTIONS:MPOOLALLOC} |
113 |
CMAKE_ARGS+= -DENABLE_POOL_ALLOC=on |
114 |
.else |
115 |
CMAKE_ARGS+= -DENABLE_POOL_ALLOC=off |
116 |
.endif |
117 |
|
118 |
.if ${PORT_OPTIONS:MPYTHON} |
119 |
USES+= python |
120 |
CONFIGURE_ENV+= PYTHON_PREFIX=${PREFIX} \ |
121 |
PYTHON_VERSION=${PYTHON_VERSION:S/python//} |
122 |
CONFIGURE_ARGS+=--enable-python-install |
123 |
PLIST_SUB+= PYTHON="" |
124 |
.else |
125 |
PLIST_SUB+= PYTHON="@comment " |
126 |
.endif |
127 |
|
128 |
.if ${PORT_OPTIONS:MRAWSOCKETS} |
129 |
CFLAGS+= -DNETWORK_USE_RAW_SOCKETS |
130 |
.endif |
67 |
.endif |
131 |
|
68 |
|
132 |
.if ${PORT_OPTIONS:MSERVER} |
69 |
.if ${PORT_OPTIONS:MTEST} |
133 |
CMAKE_ARGS+= -DENABLE_SERVER=on |
|
|
134 |
PLIST_SUB+= SERVER="" |
135 |
.else |
136 |
CMAKE_ARGS+= -DENABLE_SERVER=off |
137 |
PLIST_SUB+= SERVER="@comment " |
138 |
.endif |
139 |
|
140 |
.if ${PORT_OPTIONS:MTESTS} |
141 |
CMAKE_ARGS+= -DENABLE_TESTS=on |
142 |
PLIST_SUB+= TESTS="" |
143 |
BROKEN= compilations fails with enabled TEST option |
70 |
BROKEN= compilations fails with enabled TEST option |
144 |
.else |
|
|
145 |
CMAKE_ARGS+= -DENABLE_TESTS=off |
146 |
PLIST_SUB+= TESTS="@comment " |
147 |
.endif |
148 |
|
149 |
.if ${PORT_OPTIONS:MTOOLS} |
150 |
CMAKE_ARGS+= -DENABLE_TOOLS=on |
151 |
PLIST_SUB+= TOOLS="" |
152 |
.else |
153 |
CMAKE_ARGS+= -DENABLE_TOOLS=off |
154 |
PLIST_SUB+= TOOLS="@comment " |
155 |
.endif |
71 |
.endif |
156 |
|
72 |
|
157 |
.if empty(PORT_OPTIONS:MDOCS) |
|
|
158 |
CMAKE_ARGS+= -DDOCDIR=none |
159 |
.endif |
160 |
|
161 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
162 |
|
163 |
post-install: |
73 |
post-install: |
164 |
${FIND} ${STAGEDIR}${PREFIX}/man -type d -empty -delete |
74 |
${FIND} ${STAGEDIR}${PREFIX}/man -type d -empty -delete |
165 |
|
75 |
|