Lines 2-13
Link Here
|
2 |
# $FreeBSD: head/games/asc/Makefile 336255 2013-12-12 11:14:49Z bapt $ |
2 |
# $FreeBSD: head/games/asc/Makefile 336255 2013-12-12 11:14:49Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= asc |
4 |
PORTNAME= asc |
5 |
PORTVERSION= 2.5.0.0 |
5 |
PORTVERSION= 2.6.0.0 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= games |
6 |
CATEGORIES= games |
8 |
MASTER_SITES= SF/${PORTNAME}-hq/ASC%20Source/${PORTVERSION:R} \ |
7 |
MASTER_SITES= SF/${PORTNAME}-hq/ASC%20Source/${PORTVERSION:R} \ |
9 |
http://www.asc-hq.org/music/ |
8 |
http://www.asc-hq.org/music/:music |
10 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ASC_MUSICS} |
9 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ASC_MUSICS:S/$/:music/} |
11 |
DIST_SUBDIR= ${PORTNAME} |
10 |
DIST_SUBDIR= ${PORTNAME} |
12 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
11 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
13 |
|
12 |
|
Lines 27-62
Link Here
|
27 |
OPTIONS_DEFINE= MUSIC XVID |
26 |
OPTIONS_DEFINE= MUSIC XVID |
28 |
MUSIC_DESC= Install extra music files |
27 |
MUSIC_DESC= Install extra music files |
29 |
|
28 |
|
30 |
USES= perl5 pkgconfig |
|
|
31 |
USE_BZIP2= yes |
29 |
USE_BZIP2= yes |
|
|
30 |
USES= gmake perl5 pkgconfig |
32 |
USE_SDL= image mixer sound sdl |
31 |
USE_SDL= image mixer sound sdl |
33 |
USE_WX= 2.4+ |
32 |
USE_WX= 2.4+ |
34 |
WX_CONF_ARGS= absolute |
33 |
WX_CONF_ARGS= absolute |
35 |
USE_LUA= 5.1 |
34 |
USE_LUA= 5.1 |
36 |
LUA_COMPS= lua |
35 |
LUA_COMPS= lua |
37 |
USE_PERL5= build |
36 |
USE_PERL5= build |
38 |
USE_GMAKE= yes |
|
|
39 |
GNU_CONFIGURE= yes |
37 |
GNU_CONFIGURE= yes |
40 |
|
38 |
|
41 |
MAN6= asc.6 asc_demount.6 asc_mapedit.6 asc_mount.6 \ |
|
|
42 |
asc_weaponguide.6 |
43 |
PLIST_FILES= bin/asc bin/asc_demount bin/asc_mapedit bin/asc_mount \ |
44 |
bin/asc_weaponguide \ |
45 |
%%DATADIR%%/asc2_dlg.zip %%DATADIR%%/main.ascdat |
46 |
PLIST_DIRS= ${ASC_MUSICDIR} %%DATADIR%% |
47 |
|
48 |
CFLAGS+= -D_UNICODE_BROKEN_ |
39 |
CFLAGS+= -D_UNICODE_BROKEN_ |
49 |
CPPFLAGS+= -I${LOCALBASE}/include |
40 |
CPPFLAGS+= -I${LOCALBASE}/include |
50 |
LDFLAGS+= -L${LOCALBASE}/lib |
41 |
LDFLAGS+= -L${LOCALBASE}/lib |
51 |
|
42 |
|
52 |
NO_STAGE= yes |
43 |
PLIST_FILES= bin/asc \ |
|
|
44 |
bin/asc_demount \ |
45 |
bin/asc_mapedit \ |
46 |
bin/asc_mount \ |
47 |
bin/asc_weaponguide \ |
48 |
man/man6/asc.6.gz \ |
49 |
man/man6/asc_demount.6.gz \ |
50 |
man/man6/asc_mapedit.6.gz \ |
51 |
man/man6/asc_mount.6.gz \ |
52 |
man/man6/asc_weaponguide.6.gz \ |
53 |
share/appdata/asc.appdata.xml \ |
54 |
%%DATADIR%%/asc2_dlg.zip \ |
55 |
%%DATADIR%%/main.ascdat |
56 |
PLIST_DIRS= ${ASC_MUSICDIR} \ |
57 |
%%DATADIR%% |
58 |
PLIST_DIRSTRY= share/appdata |
59 |
|
60 |
DESKTOP_ENTRIES="Advanced Strategic Command" "Turn based strategic game" "" \ |
61 |
"${PORTNAME}" "" "" |
62 |
|
53 |
.include <bsd.port.options.mk> |
63 |
.include <bsd.port.options.mk> |
54 |
|
64 |
|
55 |
.if ${PORT_OPTIONS:MMUSIC} |
65 |
.if ${PORT_OPTIONS:MMUSIC} |
56 |
ASC_MUSICS= frontiers.ogg time_to_strike.ogg machine_wars.ogg |
66 |
ASC_MUSICS= frontiers.ogg time_to_strike.ogg machine_wars.ogg |
57 |
ASC_MUSICDIR= %%DATADIR%%/music |
67 |
ASC_MUSICDIR= %%DATADIR%%/music |
58 |
.for file in ${ASC_MUSICS} |
68 |
.for i in ${ASC_MUSICS} |
59 |
PLIST_FILES+= ${ASC_MUSICDIR}/${file} |
69 |
PLIST_FILES+= ${ASC_MUSICDIR}/${i} |
60 |
.endfor |
70 |
.endfor |
61 |
.else |
71 |
.else |
62 |
.undef ASC_MUSICS |
72 |
.undef ASC_MUSICS |
Lines 71-79
Link Here
|
71 |
|
81 |
|
72 |
post-extract: |
82 |
post-extract: |
73 |
.if ${PORT_OPTIONS:MMUSIC} |
83 |
.if ${PORT_OPTIONS:MMUSIC} |
74 |
.for file in ${ASC_MUSICS} |
84 |
.for i in ${ASC_MUSICS} |
75 |
@${TAR} -C ${DISTDIR}/${DIST_SUBDIR} -cf - ${file} | \ |
85 |
@(cd ${DISTDIR}/${DIST_SUBDIR} && ${PAX} -rw ${i} ${WRKSRC}/data/music) |
76 |
${TAR} -C ${WRKSRC}/data/music --unlink -xf - |
|
|
77 |
.endfor |
86 |
.endfor |
78 |
.endif |
87 |
.endif |
79 |
|
88 |
|
Lines 85-92
Link Here
|
85 |
's|/games/|/|g ; \ |
94 |
's|/games/|/|g ; \ |
86 |
s|lua >=|lua-5.1 >=|g ; \ |
95 |
s|lua >=|lua-5.1 >=|g ; \ |
87 |
/if test/s|==|=|g' ${WRKSRC}/configure |
96 |
/if test/s|==|=|g' ${WRKSRC}/configure |
88 |
|
97 |
@${REINPLACE_CMD} -e \ |
89 |
post-install: |
98 |
's|? 0 :|? (void)0 :|' ${WRKSRC}/source/errors.h |
90 |
@${CAT} ${PKGMESSAGE} |
|
|
91 |
|
99 |
|
92 |
.include <bsd.port.mk> |
100 |
.include <bsd.port.mk> |