diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2014-10-31 21:14:09 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2014-10-31 21:14:09 +0800 |
commit | 219444f77a618a904237b851942c7db58325de85 (patch) | |
tree | b2a48c42892ec84e52f9bc3231aea5a0b7e12920 | |
parent | 9090f9b70e8a841b8a8c6d70dba9fbd96e0ccb30 (diff) | |
download | freebsd-ports-gnome-219444f77a618a904237b851942c7db58325de85.tar.gz freebsd-ports-gnome-219444f77a618a904237b851942c7db58325de85.tar.zst freebsd-ports-gnome-219444f77a618a904237b851942c7db58325de85.zip |
- Clarify LICENSE
- Add LICENSE_FILE
- Simplify installation and plist
-rw-r--r-- | games/asc/Makefile | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/games/asc/Makefile b/games/asc/Makefile index 5153894f97d2..e933e86f51e2 100644 --- a/games/asc/Makefile +++ b/games/asc/Makefile @@ -14,15 +14,16 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Turn based, multiplayer strategic game with nice graphics -LICENSE= GPLv2 +LICENSE= GPLv2 # or later +LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \ - ${LOCALBASE}/lib/libloki.so:${PORTSDIR}/devel/loki +BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip +RUN_DEPENDS:= ${BUILD_DEPENDS} LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \ libboost_regex.so:${PORTSDIR}/devel/boost-libs \ libsigc-1.2.so:${PORTSDIR}/devel/libsigc++12 \ - libexpat.so:${PORTSDIR}/textproc/expat2 -RUN_DEPENDS:= ${BUILD_DEPENDS} + libexpat.so:${PORTSDIR}/textproc/expat2 \ + libloki.so:${PORTSDIR}/devel/loki OPTIONS_DEFINE= MUSIC XVID MUSIC_DESC= Install extra music files @@ -49,39 +50,26 @@ PLIST_FILES= bin/asc \ 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 + share/appdata/asc.appdata.xml +PORTDATA= * 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 i in ${ASC_MUSICS} -PLIST_FILES+= ${ASC_MUSICDIR}/${i} -.endfor -.else -.undef ASC_MUSICS -.undef ASC_MUSICDIR -.endif - .if ${PORT_OPTIONS:MXVID} LIB_DEPENDS+= libxvidcore.so:${PORTSDIR}/multimedia/xvid .else CONFIGURE_ENV+= ac_cv_lib_xvidcore_xvid_encore=no .endif -post-extract: .if ${PORT_OPTIONS:MMUSIC} +ASC_MUSICS= frontiers.ogg time_to_strike.ogg machine_wars.ogg + +post-extract: .for i in ${ASC_MUSICS} - @(cd ${DISTDIR}/${DIST_SUBDIR} && ${PAX} -rw ${i} ${WRKSRC}/data/music) + @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}/data/music .endfor .endif |