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

(-)games/asc/Makefile (-31 / +62 lines)
Lines 6-63 Link Here
6
#
6
#
7
7
8
PORTNAME=	asc
8
PORTNAME=	asc
9
PORTVERSION=	1.16.4.0
9
PORTVERSION=	2.4.0.0
10
PORTREVISION=	6
11
CATEGORIES=	games
10
CATEGORIES=	games
12
MASTER_SITES=	SF/${PORTNAME}-hq/ASC%20Source/1.16.4
11
MASTER_SITES=	SF/${PORTNAME}-hq/ASC%20Source/${PORTVERSION:R} \
13
DISTNAME=	${PORTNAME}-source-${PORTVERSION}
12
		http://www.asc-hq.org/music/
13
DIST_SUBDIR=	${PORTNAME}
14
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${ASC_MUSICS}
15
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
14
16
15
MAINTAINER=	ports@FreeBSD.org
17
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A turn based, multiplayer strategic game with very nice graphics
18
COMMENT=	A turn based, multiplayer strategic game with very nice graphics
17
19
18
LIB_DEPENDS=	paragui.4:${PORTSDIR}/x11-toolkits/paragui \
20
BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip \
19
		sigc-1.2.5:${PORTSDIR}/devel/libsigc++12
21
		${LOCALBASE}/lib/libloki.so:${PORTSDIR}/devel/loki
22
LIB_DEPENDS=	vorbis.4:${PORTSDIR}/audio/libvorbis \
23
		boost_regex.4:${PORTSDIR}/devel/boost-libs \
24
		sigc-1.2.5:${PORTSDIR}/devel/libsigc++12 \
25
		expat.6:${PORTSDIR}/textproc/expat2
26
RUN_DEPENDS:=	${BUILD_DEPENDS}
20
27
21
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
28
OPTIONS=	MUSIC "Install extra music files" off \
29
		XVID "Enable Xvid support" off
22
30
23
USE_SDL=	image mm mixer sdl
24
USE_BZIP2=	yes
31
USE_BZIP2=	yes
25
USE_GMAKE=	yes
32
USE_SDL=	image mixer sound sdl
33
USE_WX=		2.4+
34
WX_CONF_ARGS=	absolute
35
USE_LUA=	5.1
36
LUA_COMPS=	lua
26
USE_PERL5_BUILD=yes
37
USE_PERL5_BUILD=yes
38
USE_GMAKE=	yes
27
GNU_CONFIGURE=	yes
39
GNU_CONFIGURE=	yes
28
CONFIGURE_ENV=	CPPFLAGS="`${SDL_CONFIG} --cflags`" \
40
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
29
		CXXFLAGS="-D_UNICODE_BROKEN_" \
30
		LIBS="`${SDL_CONFIG} --libs` -lm"
31
32
CONFIGURE_ARGS=	--disable-paraguitest	\
33
		--prefix=${PREFIX}
34
35
OPTIONS=	MUSIC "Install extra music files" off
36
41
37
MAN6=		asc.6 asc_demount.6 asc_mount.6 asc_mapedit.6 asc_makegfx.6 asc_weaponguide.6
42
MAN6=		asc.6 asc_demount.6 asc_mapedit.6 asc_mount.6 \
43
		asc_weaponguide.6
44
PLIST_FILES=	bin/asc bin/asc_demount bin/asc_mapedit bin/asc_mount \
45
		bin/asc_weaponguide \
46
		%%DATADIR%%/asc2_dlg.zip %%DATADIR%%/main.ascdat
47
PLIST_DIRS=	${ASC_MUSICDIR} %%DATADIR%%
48
49
CFLAGS+=	-D_UNICODE_BROKEN_
50
CPPFLAGS=	-I${LOCALBASE}/include
51
LDFLAGS=	-L${LOCALBASE}/lib
38
52
39
.include <bsd.port.pre.mk>
53
.include <bsd.port.pre.mk>
40
54
41
.if defined(WITH_MUSIC)
55
.if defined(WITH_MUSIC)
42
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} frontiers.mp3 time_to_strike.mp3 machine_wars.mp3
56
ASC_MUSICS=	frontiers.ogg time_to_strike.ogg machine_wars.ogg
43
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
57
ASC_MUSICDIR=	%%DATADIR%%/music
44
PLIST_SUB+=	MUSIC:=""
58
.for file in ${ASC_MUSICS}
59
PLIST_FILES+=	${ASC_MUSICDIR}/${file}
60
.endfor
61
.else
62
.undef ASC_MUSICS
63
.undef ASC_MUSICDIR
64
.endif
65
66
.if defined(WITH_XVID)
67
LIB_DEPENDS+=	xvidcore.4:${PORTSDIR}/multimedia/xvid
45
.else
68
.else
46
PLIST_SUB+=	MUSIC:="@comment "
69
CONFIGURE_ENV+=	ac_cv_lib_xvidcore_xvid_encore=no
47
.endif
70
.endif
48
71
49
pre-configure:
72
post-extract:
50
.if defined(WITH_MUSIC)
73
.if defined(WITH_MUSIC)
51
	${CP}  ${DISTDIR}/frontiers.mp3 ${WRKSRC}/data/music
74
.for file in ${ASC_MUSICS}
52
	${CP}  ${DISTDIR}/time_to_strike.mp3 ${WRKSRC}/data/music
75
	@${TAR} -C ${DISTDIR}/${DIST_SUBDIR} -cf - ${file} | \
53
	${CP}  ${DISTDIR}/machine_wars.mp3 ${WRKSRC}/data/music
76
		${TAR} -C ${WRKSRC}/data/music --unlink -xf -
77
.endfor
54
.endif
78
.endif
55
79
56
pre-build:
80
post-patch:
57
	@${FIND} ${WRKSRC}/source -name \*.cpp | ${XARGS} ${REINPLACE_CMD} \
81
	@${FIND} ${WRKSRC} -name "*.cpp" -print0 | ${XARGS} -0 \
58
		-e 's|<malloc.h>|<stdlib.h>|'
82
		${REINPLACE_CMD} -e \
59
	@${FIND} ${WRKSRC}/source -name \*.h | ${XARGS} ${REINPLACE_CMD} \
83
		's|<malloc\.h>|<stdlib.h>|g'
60
		-e 's|<malloc.h>|<stdlib.h>|'
84
	@${FIND} ${WRKSRC} -name "Makefile.in" -print0 | ${XARGS} -0 \
85
		${REINPLACE_CMD} -e \
86
		's|/games/|/|g ; \
87
		 s|$$(srcdir)/asc_makegfx.6||g'
88
	@${REINPLACE_CMD} -e \
89
		's|/games/|/|g ; \
90
		 s|lua >=|lua-5.1 >=|g ; \
91
		 /if test/s|==|=|g' ${WRKSRC}/configure
61
92
62
post-install:
93
post-install:
63
	@${CAT} ${PKGMESSAGE}
94
	@${CAT} ${PKGMESSAGE}
(-)games/asc/distinfo (-12 / +12 lines)
Lines 1-12 Link Here
1
MD5 (asc-source-1.16.4.0.tar.bz2) = 9d0f7ff5c33271e096753ef07d768798
1
MD5 (asc/asc-2.4.0.0.tar.bz2) = 8c18a7cf84cb53b04527d864301d405d
2
SHA256 (asc-source-1.16.4.0.tar.bz2) = 9c69f1197117116a22612a6823c34ad5d30d7fc634ee35f9a6d10395aa272264
2
SHA256 (asc/asc-2.4.0.0.tar.bz2) = 100e0eb26abeec101209f7e40c15286c4ee87f47aa6df9b5f13352fd080d01e4
3
SIZE (asc-source-1.16.4.0.tar.bz2) = 11730677
3
SIZE (asc/asc-2.4.0.0.tar.bz2) = 38154743
4
MD5 (frontiers.mp3) = 560f5783836b309906e57e77417f3864
4
MD5 (asc/frontiers.ogg) = c27415246734d59e27e6a786ee4820d2
5
SHA256 (frontiers.mp3) = a0b1f65897eb122c1748ba08d5a376029750a1b035bf0202ebbeb9fd0176fd28
5
SHA256 (asc/frontiers.ogg) = eabc9b07d1db07626fa817a30dad23b11aada059e32c08914d2d0cf1d58c7fff
6
SIZE (frontiers.mp3) = 4407769
6
SIZE (asc/frontiers.ogg) = 4691844
7
MD5 (time_to_strike.mp3) = f0ab3c633f51430af0445ecaa02e3197
7
MD5 (asc/time_to_strike.ogg) = 0f4de5275ab649f4426d110840e3e1ea
8
SHA256 (time_to_strike.mp3) = a330211d1a8ce1ab6ea19cc4a02e207a8cd4cede4f3946f9a0012c7d0523de54
8
SHA256 (asc/time_to_strike.ogg) = 0334a027b8a45a5df88e1e3e7db9cace2def02396fbcc794d157289e41c9ad05
9
SIZE (time_to_strike.mp3) = 3242969
9
SIZE (asc/time_to_strike.ogg) = 3830679
10
MD5 (machine_wars.mp3) = c383139928613c7b081835c3d4a28fa8
10
MD5 (asc/machine_wars.ogg) = b4421ddd67a9e44d90a49a1d8bdf44c3
11
SHA256 (machine_wars.mp3) = e7b0337656a1dd9c4809bb9a620a015c1bc3898d7dde6ba2e2a0e7c0ce12313b
11
SHA256 (asc/machine_wars.ogg) = bd7f330c06090d98e5ba0dac5a691af1804ba383b783b7b2f960bc2e53400a77
12
SIZE (machine_wars.mp3) = 2905989
12
SIZE (asc/machine_wars.ogg) = 3138308
(-)games/asc/pkg-plist (-19 lines)
Lines 1-19 Link Here
1
bin/asc
2
bin/asc_demount
3
bin/asc_makegfx
4
bin/asc_mapedit
5
bin/asc_mount
6
bin/asc_weaponguide
7
share/games/asc/asc_dlg.zip
8
share/games/asc/buildings.con
9
share/games/asc/main.con
10
share/games/asc/mk1.con
11
share/games/asc/trrobj.con
12
share/games/asc/trrobj2.con
13
share/games/asc/units-mk3.con
14
%%MUSIC:%%share/games/asc/music/frontiers.mp3
15
%%MUSIC:%%share/games/asc/music/time_to_strike.mp3
16
%%MUSIC:%%share/games/asc/music/machine_wars.mp3
17
%%MUSIC:%%@dirrm share/games/asc/music
18
@dirrm share/games/asc
19
@dirrmtry share/games

Return to bug 150675