Lines 7-28
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= wesnoth |
8 |
PORTNAME= wesnoth |
9 |
PORTVERSION= 1.6.4 |
9 |
PORTVERSION= 1.6.4 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= games |
11 |
CATEGORIES= games |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.6/${PORTNAME}-${PORTVERSION} \ |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.6/${PORTNAME}-${PORTVERSION} \ |
13 |
http://www.wesnoth.org/files/ |
13 |
http://www.wesnoth.org/files/ |
14 |
|
14 |
|
15 |
|
|
|
16 |
MAINTAINER= philip@FreeBSD.org |
15 |
MAINTAINER= philip@FreeBSD.org |
17 |
COMMENT= A fantasy turn-based strategy game |
16 |
COMMENT= A fantasy turn-based strategy game |
18 |
|
17 |
|
19 |
LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost-libs \ |
18 |
LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost-libs |
20 |
freetype.9:${PORTSDIR}/print/freetype2 |
|
|
21 |
|
19 |
|
22 |
CONFLICTS= wesnoth-1.5* wesnoth-1.7* |
20 |
CONFLICTS= wesnoth-devel-1.* |
23 |
|
21 |
|
24 |
USE_SDL= image mixer net ttf |
22 |
USE_SDL= image mixer net ttf |
25 |
USE_GNOME= gnometarget pango |
23 |
USE_GNOME= desktopfileutils gnometarget pango |
26 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
27 |
MAKE_JOBS_SAFE= yes |
25 |
MAKE_JOBS_SAFE= yes |
28 |
WANT_GNOME= yes |
26 |
WANT_GNOME= yes |
Lines 31-47
USE_AUTOTOOLS= aclocal:110 autoheader:26
Link Here
|
31 |
ACLOCAL_ARGS= -Im4 |
29 |
ACLOCAL_ARGS= -Im4 |
32 |
AUTOMAKE_ARGS= --add-missing --copy |
30 |
AUTOMAKE_ARGS= --add-missing --copy |
33 |
CONFIGURE_ARGS= --localstatedir=/var \ |
31 |
CONFIGURE_ARGS= --localstatedir=/var \ |
|
|
32 |
--with-icondir=${PREFIX}/share/pixmaps \ |
34 |
--with-libiconv-prefix=${LOCALBASE} \ |
33 |
--with-libiconv-prefix=${LOCALBASE} \ |
35 |
--with-libintl-prefix=${LOCALBASE} \ |
34 |
--with-libintl-prefix=${LOCALBASE} \ |
36 |
--with-localedir=${PREFIX}/share/locale |
35 |
--with-localedir=${PREFIX}/share/locale |
37 |
|
36 |
|
|
|
37 |
MANLANG_GAME= gl sk |
38 |
MANLANG= "" cs de en_GB es fi fr hu it lt pl sr sr@latin sv tr \ |
38 |
MANLANG= "" cs de en_GB es fi fr hu it lt pl sr sr@latin sv tr \ |
39 |
zh_CN zh_TW |
39 |
zh_CN zh_TW |
40 |
|
40 |
|
41 |
MAN6= wesnoth.6 |
41 |
MAN6= wesnoth.6 |
42 |
MAN6_GL= wesnoth.6 |
|
|
43 |
MAN6_RU= wesnoth.6 |
44 |
MAN6_SK= wesnoth.6 |
45 |
|
42 |
|
46 |
OPTIONS= CAMPAIGN "Enable campaign server" On \ |
43 |
OPTIONS= CAMPAIGN "Enable campaign server" On \ |
47 |
EDITOR "Enable map editor" On \ |
44 |
EDITOR "Enable map editor" On \ |
Lines 52-57
OPTIONS= CAMPAIGN "Enable campaign serve
Link Here
|
52 |
|
49 |
|
53 |
.include <bsd.port.pre.mk> |
50 |
.include <bsd.port.pre.mk> |
54 |
|
51 |
|
|
|
52 |
# workaround: compress and add to plist disobedient man pages |
53 |
.for manlang in ${MANLANG_GAME} |
54 |
MAN6_${manlang:U}= wesnoth.6 |
55 |
|
56 |
.if defined(NOMANCOMPRESS) |
57 |
PLIST_FILES+= man/${manlang}/man6/wesnoth.6 |
58 |
.else |
59 |
PLIST_FILES+= man/${manlang}/man6/wesnoth.6.gz |
60 |
.endif |
61 |
.endfor |
62 |
|
55 |
.if defined(WITH_DEBUG) |
63 |
.if defined(WITH_DEBUG) |
56 |
CONFIGURE_ARGS+= --enable-debug |
64 |
CONFIGURE_ARGS+= --enable-debug |
57 |
.endif |
65 |
.endif |
Lines 103-110
PLIST_SUB+= TOOLS=""
Link Here
|
103 |
BROKEN= you need NLS support for `campaignd' or `wesnothd' or tools to link against gettext |
111 |
BROKEN= you need NLS support for `campaignd' or `wesnothd' or tools to link against gettext |
104 |
.endif |
112 |
.endif |
105 |
|
113 |
|
106 |
post-configure: |
114 |
post-install: .SILENT |
107 |
@${REINPLACE_CMD} -e 's|[$$][{]datarootdir[}]/icons|${LOCALBASE}/share/pixmaps|' \ |
115 |
-update-desktop-database |
108 |
${WRKSRC}/icons/Makefile |
116 |
|
|
|
117 |
.if !defined(NOMANCOMPRESS) |
118 |
. for manlang in ${MANLANG_GAME} |
119 |
${GZIP_CMD} ${PREFIX}/man/${manlang}/man6/wesnoth.6 |
120 |
. endfor |
121 |
.endif |
109 |
|
122 |
|
110 |
.include <bsd.port.post.mk> |
123 |
.include <bsd.port.post.mk> |