aboutsummaryrefslogtreecommitdiff
path: root/games/asc/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-10-31 13:14:09 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-10-31 13:14:09 +0000
commitf0083eeecb2266e5d90beeb370ca8948b40d9903 (patch)
treeb2a48c42892ec84e52f9bc3231aea5a0b7e12920 /games/asc/Makefile
parent2387281812bdbe70d53b320fb5aaa10ddc7acecc (diff)
downloadports-f0083eeecb2266e5d90beeb370ca8948b40d9903.tar.gz
ports-f0083eeecb2266e5d90beeb370ca8948b40d9903.zip
Notes
Diffstat (limited to 'games/asc/Makefile')
-rw-r--r--games/asc/Makefile36
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