diff options
author | danilo <danilo@FreeBSD.org> | 2014-01-20 03:24:56 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2014-01-20 03:24:56 +0800 |
commit | bd5612fd2aca94e34f0db8397e4803987d692a12 (patch) | |
tree | 351367364182dcec9404e653e6322f4eed6975f2 /games/asc/Makefile | |
parent | dba08e9e2480d71563f7465b319debbe06d48e24 (diff) | |
download | freebsd-ports-gnome-bd5612fd2aca94e34f0db8397e4803987d692a12.tar.gz freebsd-ports-gnome-bd5612fd2aca94e34f0db8397e4803987d692a12.tar.zst freebsd-ports-gnome-bd5612fd2aca94e34f0db8397e4803987d692a12.zip |
- Update from 2.5.0.0 to 2.6.0.0
- Convert USE_GMAKE to USES
- Add a desktop entry
- Add stage support
PR: ports/185511
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'games/asc/Makefile')
-rw-r--r-- | games/asc/Makefile | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/games/asc/Makefile b/games/asc/Makefile index 9fb66c9a98f5..3a0101a760a2 100644 --- a/games/asc/Makefile +++ b/games/asc/Makefile @@ -2,12 +2,11 @@ # $FreeBSD$ PORTNAME= asc -PORTVERSION= 2.5.0.0 -PORTREVISION= 2 +PORTVERSION= 2.6.0.0 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}-hq/ASC%20Source/${PORTVERSION:R} \ - http://www.asc-hq.org/music/ -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ASC_MUSICS} + http://www.asc-hq.org/music/:music +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ASC_MUSICS:S/$/:music/} DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -27,36 +26,47 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} OPTIONS_DEFINE= MUSIC XVID MUSIC_DESC= Install extra music files -USES= perl5 pkgconfig USE_BZIP2= yes +USES= gmake perl5 pkgconfig USE_SDL= image mixer sound sdl USE_WX= 2.4+ WX_CONF_ARGS= absolute USE_LUA= 5.1 LUA_COMPS= lua USE_PERL5= build -USE_GMAKE= yes GNU_CONFIGURE= yes -MAN6= asc.6 asc_demount.6 asc_mapedit.6 asc_mount.6 \ - asc_weaponguide.6 -PLIST_FILES= bin/asc bin/asc_demount bin/asc_mapedit bin/asc_mount \ - bin/asc_weaponguide \ - %%DATADIR%%/asc2_dlg.zip %%DATADIR%%/main.ascdat -PLIST_DIRS= ${ASC_MUSICDIR} %%DATADIR%% - CFLAGS+= -D_UNICODE_BROKEN_ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -NO_STAGE= yes +PLIST_FILES= bin/asc \ + bin/asc_demount \ + bin/asc_mapedit \ + bin/asc_mount \ + bin/asc_weaponguide \ + man/man6/asc.6.gz \ + man/man6/asc_demount.6.gz \ + man/man6/asc_mapedit.6.gz \ + man/man6/asc_mount.6.gz \ + man/man6/asc_weaponguide.6.gz \ + share/appdata/asc.appdata.xml \ + %%DATADIR%%/asc2_dlg.zip \ + %%DATADIR%%/main.ascdat +PLIST_DIRS= ${ASC_MUSICDIR} \ + %%DATADIR%% +PLIST_DIRSTRY= share/appdata + +DESKTOP_ENTRIES="Advanced Strategic Command" "Turn based strategic game" "" \ + "${PORTNAME}" "" "" + .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MMUSIC} ASC_MUSICS= frontiers.ogg time_to_strike.ogg machine_wars.ogg ASC_MUSICDIR= %%DATADIR%%/music -.for file in ${ASC_MUSICS} -PLIST_FILES+= ${ASC_MUSICDIR}/${file} +.for i in ${ASC_MUSICS} +PLIST_FILES+= ${ASC_MUSICDIR}/${i} .endfor .else .undef ASC_MUSICS @@ -71,9 +81,8 @@ CONFIGURE_ENV+= ac_cv_lib_xvidcore_xvid_encore=no post-extract: .if ${PORT_OPTIONS:MMUSIC} -.for file in ${ASC_MUSICS} - @${TAR} -C ${DISTDIR}/${DIST_SUBDIR} -cf - ${file} | \ - ${TAR} -C ${WRKSRC}/data/music --unlink -xf - +.for i in ${ASC_MUSICS} + @(cd ${DISTDIR}/${DIST_SUBDIR} && ${PAX} -rw ${i} ${WRKSRC}/data/music) .endfor .endif @@ -85,8 +94,7 @@ post-patch: 's|/games/|/|g ; \ s|lua >=|lua-5.1 >=|g ; \ /if test/s|==|=|g' ${WRKSRC}/configure - -post-install: - @${CAT} ${PKGMESSAGE} + @${REINPLACE_CMD} -e \ + 's|? 0 :|? (void)0 :|' ${WRKSRC}/source/errors.h .include <bsd.port.mk> |