View | Details | Raw Unified | Return to bug 197496
Collapse All | Expand All

(-)games/wesnoth/Makefile (-116 / +26 lines)
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
(-)games/wesnoth/pkg-plist (-52 / +52 lines)
Lines 13-19 bin/wesnoth Link Here
13
%%TOOLS%%bin/schema_generator
13
%%TOOLS%%bin/schema_generator
14
%%TOOLS%%bin/schema_validator
14
%%TOOLS%%bin/schema_validator
15
%%TOOLS%%bin/wesmage
15
%%TOOLS%%bin/wesmage
16
%%TESTS%%bin/wesnoth_test
16
%%TEST%%bin/wesnoth_test
17
%%SERVER%%bin/wesnothd
17
%%SERVER%%bin/wesnothd
18
share/applications/wesnoth.desktop
18
share/applications/wesnoth.desktop
19
share/applications/wesnoth_editor.desktop
19
share/applications/wesnoth_editor.desktop
Lines 1615-1670 share/applications/wesnoth_editor.desktop Link Here
1615
%%NLS%%share/locale/zh_TW/LC_MESSAGES/wesnoth.mo
1615
%%NLS%%share/locale/zh_TW/LC_MESSAGES/wesnoth.mo
1616
share/pixmaps/wesnoth-icon.png
1616
share/pixmaps/wesnoth-icon.png
1617
share/pixmaps/wesnoth_editor-icon.png
1617
share/pixmaps/wesnoth_editor-icon.png
1618
man/cs/man6/wesnoth.6.gz
1618
%%NLS%%man/cs/man6/wesnoth.6.gz
1619
man/cs/man6/wesnothd.6.gz
1619
%%NLS%%%%SERVER%%man/cs/man6/wesnothd.6.gz
1620
man/de/man6/wesnoth.6.gz
1620
%%NLS%%man/de/man6/wesnoth.6.gz
1621
man/de/man6/wesnothd.6.gz
1621
%%NLS%%%%SERVER%%man/de/man6/wesnothd.6.gz
1622
man/en_GB/man6/wesnoth.6.gz
1622
%%NLS%%man/en_GB/man6/wesnoth.6.gz
1623
man/en_GB/man6/wesnothd.6.gz
1623
%%NLS%%%%SERVER%%man/en_GB/man6/wesnothd.6.gz
1624
man/es/man6/wesnoth.6.gz
1624
%%NLS%%man/es/man6/wesnoth.6.gz
1625
man/es/man6/wesnothd.6.gz
1625
%%NLS%%%%SERVER%%man/es/man6/wesnothd.6.gz
1626
man/et/man6/wesnoth.6.gz
1626
%%NLS%%man/et/man6/wesnoth.6.gz
1627
man/et/man6/wesnothd.6.gz
1627
%%NLS%%%%SERVER%%man/et/man6/wesnothd.6.gz
1628
man/fi/man6/wesnoth.6.gz
1628
%%NLS%%man/fi/man6/wesnoth.6.gz
1629
man/fi/man6/wesnothd.6.gz
1629
%%NLS%%%%SERVER%%man/fi/man6/wesnothd.6.gz
1630
man/fr/man6/wesnoth.6.gz
1630
%%NLS%%man/fr/man6/wesnoth.6.gz
1631
man/fr/man6/wesnothd.6.gz
1631
%%NLS%%%%SERVER%%man/fr/man6/wesnothd.6.gz
1632
man/gl/man6/wesnoth.6.gz
1632
%%NLS%%man/gl/man6/wesnoth.6.gz
1633
man/gl/man6/wesnothd.6.gz
1633
%%NLS%%%%SERVER%%man/gl/man6/wesnothd.6.gz
1634
man/hu/man6/wesnoth.6.gz
1634
%%NLS%%man/hu/man6/wesnoth.6.gz
1635
man/hu/man6/wesnothd.6.gz
1635
%%NLS%%%%SERVER%%man/hu/man6/wesnothd.6.gz
1636
man/id/man6/wesnoth.6.gz
1636
%%NLS%%man/id/man6/wesnoth.6.gz
1637
man/id/man6/wesnothd.6.gz
1637
%%NLS%%%%SERVER%%man/id/man6/wesnothd.6.gz
1638
man/it/man6/wesnoth.6.gz
1638
%%NLS%%man/it/man6/wesnoth.6.gz
1639
man/it/man6/wesnothd.6.gz
1639
%%NLS%%%%SERVER%%man/it/man6/wesnothd.6.gz
1640
man/ja/man6/wesnothd.6.gz
1640
%%NLS%%%%SERVER%%man/ja/man6/wesnothd.6.gz
1641
man/lt/man6/wesnoth.6.gz
1641
%%NLS%%man/lt/man6/wesnoth.6.gz
1642
man/lt/man6/wesnothd.6.gz
1642
%%NLS%%%%SERVER%%man/lt/man6/wesnothd.6.gz
1643
man/man6/wesnoth.6.gz
1643
man/man6/wesnoth.6.gz
1644
man/man6/wesnothd.6.gz
1644
%%SERVER%%man/man6/wesnothd.6.gz
1645
man/pl/man6/wesnoth.6.gz
1645
%%NLS%%man/pl/man6/wesnoth.6.gz
1646
man/pl/man6/wesnothd.6.gz
1646
%%NLS%%%%SERVER%%man/pl/man6/wesnothd.6.gz
1647
man/pt/man6/wesnoth.6.gz
1647
%%NLS%%man/pt/man6/wesnoth.6.gz
1648
man/pt/man6/wesnothd.6.gz
1648
%%NLS%%%%SERVER%%man/pt/man6/wesnothd.6.gz
1649
man/pt_BR/man6/wesnothd.6.gz
1649
%%NLS%%%%SERVER%%man/pt_BR/man6/wesnothd.6.gz
1650
man/ru/man6/wesnoth.6.gz
1650
%%NLS%%man/ru/man6/wesnoth.6.gz
1651
man/ru/man6/wesnothd.6.gz
1651
%%NLS%%%%SERVER%%man/ru/man6/wesnothd.6.gz
1652
man/sk/man6/wesnoth.6.gz
1652
%%NLS%%man/sk/man6/wesnoth.6.gz
1653
man/sk/man6/wesnothd.6.gz
1653
%%NLS%%%%SERVER%%man/sk/man6/wesnothd.6.gz
1654
man/sr/man6/wesnoth.6.gz
1654
%%NLS%%man/sr/man6/wesnoth.6.gz
1655
man/sr/man6/wesnothd.6.gz
1655
%%NLS%%%%SERVER%%man/sr/man6/wesnothd.6.gz
1656
man/sr@ijekavian/man6/wesnoth.6.gz
1656
%%NLS%%man/sr@ijekavian/man6/wesnoth.6.gz
1657
man/sr@ijekavian/man6/wesnothd.6.gz
1657
%%NLS%%%%SERVER%%man/sr@ijekavian/man6/wesnothd.6.gz
1658
man/sr@ijekavianlatin/man6/wesnoth.6.gz
1658
%%NLS%%man/sr@ijekavianlatin/man6/wesnoth.6.gz
1659
man/sr@ijekavianlatin/man6/wesnothd.6.gz
1659
%%NLS%%%%SERVER%%man/sr@ijekavianlatin/man6/wesnothd.6.gz
1660
man/sr@latin/man6/wesnoth.6.gz
1660
%%NLS%%man/sr@latin/man6/wesnoth.6.gz
1661
man/sr@latin/man6/wesnothd.6.gz
1661
%%NLS%%%%SERVER%%man/sr@latin/man6/wesnothd.6.gz
1662
man/tr/man6/wesnothd.6.gz
1662
%%NLS%%%%SERVER%%man/tr/man6/wesnothd.6.gz
1663
man/uk/man6/wesnoth.6.gz
1663
%%NLS%%man/uk/man6/wesnoth.6.gz
1664
man/uk/man6/wesnothd.6.gz
1664
%%NLS%%%%SERVER%%man/uk/man6/wesnothd.6.gz
1665
man/vi/man6/wesnoth.6.gz
1665
%%NLS%%man/vi/man6/wesnoth.6.gz
1666
man/vi/man6/wesnothd.6.gz
1666
%%NLS%%%%SERVER%%man/vi/man6/wesnothd.6.gz
1667
man/zh_CN/man6/wesnoth.6.gz
1667
%%NLS%%man/zh_CN/man6/wesnoth.6.gz
1668
man/zh_CN/man6/wesnothd.6.gz
1668
%%NLS%%%%SERVER%%man/zh_CN/man6/wesnothd.6.gz
1669
man/zh_TW/man6/wesnothd.6.gz
1669
%%NLS%%%%SERVER%%man/zh_TW/man6/wesnothd.6.gz
1670
%%SERVER%%@unexec rmdir /var/run/wesnothd 2>/dev/null || echo "If you are permanently removing this port, you should do a 'rm -rf /var/run/wesnothd' to remove it." | fmt
1670
%%SERVER%%@unexec rmdir /var/run/wesnothd 2>/dev/null || echo "If you are permanently removing this port, you should do a 'rm -rf /var/run/wesnothd' to remove it." | fmt

Return to bug 197496