View | Details | Raw Unified | Return to bug 138518 | Differences between
and this patch

Collapse All | Expand All

(-)games/wesnoth/Makefile (-12 / +25 lines)
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>
(-)games/wesnoth/pkg-plist (-1 / +3 lines)
Lines 10-16 bin/wesnoth Link Here
10
share/applications/wesnoth.desktop
10
share/applications/wesnoth.desktop
11
%%EDITOR%%share/applications/wesnoth_editor.desktop
11
%%EDITOR%%share/applications/wesnoth_editor.desktop
12
share/pixmaps/wesnoth-icon.png
12
share/pixmaps/wesnoth-icon.png
13
share/pixmaps/wesnoth_editor-icon.png
13
%%EDITOR%%share/pixmaps/wesnoth_editor-icon.png
14
%%DOCSDIR%%/manual/CMakeLists.txt
14
%%DOCSDIR%%/manual/CMakeLists.txt
15
%%DOCSDIR%%/manual/images/de/game-screen-1.5.7.jpg
15
%%DOCSDIR%%/manual/images/de/game-screen-1.5.7.jpg
16
%%DOCSDIR%%/manual/images/de/main-menu-1.5.11.jpg
16
%%DOCSDIR%%/manual/images/de/main-menu-1.5.11.jpg
Lines 9763-9765 share/pixmaps/wesnoth_editor-icon.png Link Here
9763
%%NLS%%@dirrmtry share/locale/tl/LC_MESSAGES
9763
%%NLS%%@dirrmtry share/locale/tl/LC_MESSAGES
9764
%%NLS%%@dirrmtry share/locale/tl
9764
%%NLS%%@dirrmtry share/locale/tl
9765
%%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
9765
%%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
9766
@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
9767
@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true

Return to bug 138518