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

Collapse All | Expand All

(-)freeciv/Makefile (-5 / +22 lines)
Lines 7-22 Link Here
7
7
8
PORTNAME=	freeciv
8
PORTNAME=	freeciv
9
PORTVERSION=	2.0.8
9
PORTVERSION=	2.0.8
10
PORTREVISION=	3
10
PORTREVISION=	4
11
CATEGORIES=	games
11
CATEGORIES=	games
12
MASTER_SITES=	ftp://ftp.freeciv.org/pub/freeciv/stable/ SF
12
MASTER_SITES=	ftp://ftp.freeciv.org/pub/freeciv/stable/ SF \
13
		ftp://ftp.freeciv.org/freeciv/contrib/audio/soundsets/:freeciv_sounds
14
DISTFILES+=	${DISTNAME}.tar.bz2 stdsounds3.tar.gz:freeciv_sounds
13
15
14
MAINTAINER=	infofarmer@FreeBSD.org
16
MAINTAINER=	infofarmer@FreeBSD.org
15
COMMENT=	Free turn-based multiplayer strategy
17
COMMENT=	Free turn-based multiplayer strategy
16
18
17
USE_GCC=	3.4+
19
USE_GCC=	3.4+
18
USE_GETTEXT=	yes
20
USE_GETTEXT=	yes
19
USE_BZIP2=	yes
20
USE_PYTHON=	yes
21
USE_PYTHON=	yes
21
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
22
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
23
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
Lines 29-40 Link Here
29
		png.5:${PORTSDIR}/graphics/png
30
		png.5:${PORTSDIR}/graphics/png
30
USE_XPM=	yes
31
USE_XPM=	yes
31
WANT_GNOME=	yes
32
WANT_GNOME=	yes
32
CONFIGURE_ENV+=	SDL_CONFIG="${SDL_CONFIG}"
33
WANT_SDL=	mixer
33
PLIST_SUB+=	X11=""
34
PLIST_SUB+=	X11=""
34
.endif
35
.endif
35
36
36
.include <bsd.port.pre.mk>
37
.include <bsd.port.pre.mk>
37
38
39
.if !defined(WITHOUT_X11) && (defined(WITH_SDL) || ${HAVE_SDL:Mmixer}!="")
40
USE_SDL=	mixer
41
SOUND=		yes
42
PLIST_SUB+=	SOUND=""
43
.else
44
PLIST_SUB+=	SOUND="@comment "
45
.endif
46
38
.if 	!defined(WITH_GTK) && !defined(WITH_GTK12) && !defined(WITH_GTK2) && \
47
.if 	!defined(WITH_GTK) && !defined(WITH_GTK12) && !defined(WITH_GTK2) && \
39
	!defined(WITHOUT_GNOME) && !defined(WITHOUT_X11)
48
	!defined(WITHOUT_GNOME) && !defined(WITHOUT_X11)
40
AUTO_DEPENDS=	yes
49
AUTO_DEPENDS=	yes
Lines 84-91 Link Here
84
.endif
93
.endif
85
94
86
post-patch:
95
post-patch:
87
	@${REINPLACE_CMD} -Ee '${CFG_PATCH}' ${WRKSRC}/configure
96
	@${REINPLACE_CMD} -Ee '${CFG_PATCH}' -e 's/-lSDL_mixer  /${PTHREAD_LIBS} -lSDL_mixer /g' ${WRKSRC}/configure
88
	@${FIND} ${WRKSRC} -name Makefile.in | \
97
	@${FIND} ${WRKSRC} -name Makefile.in | \
89
		${XARGS} ${REINPLACE_CMD} -e 's/@program_transform_name@//'
98
		${XARGS} ${REINPLACE_CMD} -e 's/@program_transform_name@//'
99
100
post-install:
101
.ifdef SOUND
102
	${INSTALL_DATA} ${WRKDIR}/data/stdsounds.soundspec ${DATADIR}
103
	${MKDIR} ${DATADIR}/stdsounds
104
	@cd ${WRKDIR}/data/stdsounds && \
105
		${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/stdsounds/{}" \;
106
.endif
90
107
91
.include <bsd.port.post.mk>
108
.include <bsd.port.post.mk>
(-)freeciv/distinfo (+3 lines)
Lines 1-3 Link Here
1
MD5 (freeciv-2.0.8.tar.bz2) = 9ebd5899c2c78362e0e2c68791673a88
1
MD5 (freeciv-2.0.8.tar.bz2) = 9ebd5899c2c78362e0e2c68791673a88
2
SHA256 (freeciv-2.0.8.tar.bz2) = 85b396c86f977b85f03fa1309733d21f7cc953e005ff1475f9981b77fa9f28f3
2
SHA256 (freeciv-2.0.8.tar.bz2) = 85b396c86f977b85f03fa1309733d21f7cc953e005ff1475f9981b77fa9f28f3
3
SIZE (freeciv-2.0.8.tar.bz2) = 8535513
3
SIZE (freeciv-2.0.8.tar.bz2) = 8535513
4
MD5 (stdsounds3.tar.gz) = 77215914712f2f351092918f5e41e39e
5
SHA256 (stdsounds3.tar.gz) = a3cc2be93c006c3a9492349aa4552bf059e45efc94135f09241877c221ae1bfa
6
SIZE (stdsounds3.tar.gz) = 118278
(-)freeciv/pkg-plist (+18 lines)
Lines 297-302 Link Here
297
%%X11%%%%DATADIR%%/isophex/terrain2.spec
297
%%X11%%%%DATADIR%%/isophex/terrain2.spec
298
%%X11%%%%DATADIR%%/isophex/tiles.png
298
%%X11%%%%DATADIR%%/isophex/tiles.png
299
%%X11%%%%DATADIR%%/isophex/tiles.spec
299
%%X11%%%%DATADIR%%/isophex/tiles.spec
300
%%SOUND%%%%DATADIR%%/stdsounds.soundspec
301
%%SOUND%%%%DATADIR%%/stdsounds/LrgCan.ogg
302
%%SOUND%%%%DATADIR%%/stdsounds/LrgExpl.ogg
303
%%SOUND%%%%DATADIR%%/stdsounds/MedCan.ogg
304
%%SOUND%%%%DATADIR%%/stdsounds/MgBar1.ogg
305
%%SOUND%%%%DATADIR%%/stdsounds/MgBar2.ogg
306
%%SOUND%%%%DATADIR%%/stdsounds/MgHeavy.ogg
307
%%SOUND%%%%DATADIR%%/stdsounds/Mortar.ogg
308
%%SOUND%%%%DATADIR%%/stdsounds/SmlExpl.ogg
309
%%SOUND%%%%DATADIR%%/stdsounds/Splash.ogg
310
%%SOUND%%%%DATADIR%%/stdsounds/THover.ogg
311
%%SOUND%%%%DATADIR%%/stdsounds/Tread.ogg
312
%%SOUND%%%%DATADIR%%/stdsounds/foot3.ogg
313
%%SOUND%%%%DATADIR%%/stdsounds/inh2o.ogg
314
%%SOUND%%%%DATADIR%%/stdsounds/metbrk.ogg
315
%%SOUND%%%%DATADIR%%/stdsounds/wall01.ogg
316
%%SOUND%%%%DATADIR%%/stdsounds/woodbrk.ogg
300
share/locale/da/LC_MESSAGES/freeciv.mo
317
share/locale/da/LC_MESSAGES/freeciv.mo
301
share/locale/ca/LC_MESSAGES/freeciv.mo
318
share/locale/ca/LC_MESSAGES/freeciv.mo
302
share/locale/cs/LC_MESSAGES/freeciv.mo
319
share/locale/cs/LC_MESSAGES/freeciv.mo
Lines 323-328 Link Here
323
%%X11%%share/applications/freeciv.desktop
340
%%X11%%share/applications/freeciv.desktop
324
@dirrmtry share/locale/he_IL/LC_MESSAGES
341
@dirrmtry share/locale/he_IL/LC_MESSAGES
325
@dirrmtry share/locale/he_IL
342
@dirrmtry share/locale/he_IL
343
%%SOUND%%@dirrm %%DATADIR%%/stdsounds
326
%%X11%%@dirrm %%DATADIR%%/trident
344
%%X11%%@dirrm %%DATADIR%%/trident
327
@dirrm %%DATADIR%%/scenario
345
@dirrm %%DATADIR%%/scenario
328
@dirrm %%DATADIR%%/nation
346
@dirrm %%DATADIR%%/nation

Return to bug 106232