diff options
author | Alex Kozlov <ak@FreeBSD.org> | 2013-04-18 07:55:27 +0000 |
---|---|---|
committer | Alex Kozlov <ak@FreeBSD.org> | 2013-04-18 07:55:27 +0000 |
commit | 958adf68c7547b2c380b8fa327e87d0379454b4a (patch) | |
tree | 7f85cf1db4f6bdcc84375b7f6e4f21f142950f10 /games | |
parent | ee9623eb2b198f528979864356604581bbbebcc7 (diff) | |
download | ports-958adf68c7547b2c380b8fa327e87d0379454b4a.tar.gz ports-958adf68c7547b2c380b8fa327e87d0379454b4a.zip |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/uqm/Makefile | 62 | ||||
-rw-r--r-- | games/uqm/distinfo | 8 | ||||
-rw-r--r-- | games/uqm/pkg-plist | 9 |
3 files changed, 57 insertions, 22 deletions
diff --git a/games/uqm/Makefile b/games/uqm/Makefile index f08377b516be..c279066038ad 100644 --- a/games/uqm/Makefile +++ b/games/uqm/Makefile @@ -3,6 +3,7 @@ PORTNAME= uqm PORTVERSION= 0.7.0 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/sc2/UQM/${PORTVERSION:R} DISTFILES= ${PORTNAME}-${PORTVERSION}-source.tgz ${PORTNAME}-${DATAVERSION}-content.uqm @@ -24,6 +25,12 @@ DATAVERSION= 0.7.0 OPTIONS_DEFINE= VOICE MUSIC OPENAL DOCS MUSIC_DESC= Music add-on VOICE_DESC= Voice add-on +OPTIONS_GROUP= REMIXES +REMIX_PACKS= 1 2 3 4 +.for i in ${REMIX_PACKS} +OPTIONS_GROUP_REMIXES+=REMIXPACK${i} +REMIXPACK${i}_DESC= UQM Remix Pack ${i} add-on +.endfor .include <bsd.port.options.mk> @@ -45,43 +52,58 @@ PLIST_SUB+= MUSICADDON="@comment " USE_OPENAL= al .endif +.for i in ${REMIX_PACKS} +. if ${PORT_OPTIONS:MREMIXPACK${i}} +MASTER_SITES+= SF/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%20${i}:remixpack${i} +DISTFILES+= ${PORTNAME}-remix-disc${i}.uqm:remixpack${i} +PLIST_SUB+= REMIXPACK${i}ADDON="" +. else +PLIST_SUB+= REMIXPACK${i}ADDON="@comment " +. endif +.endfor + post-extract: - ${MKDIR} ${WRKSRC}/content/packages + ${MKDIR} ${WRKSRC}/content/addons ${WRKSRC}/content/packages ${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-content.uqm ${WRKSRC}/content/packages/ .ifdef(WITH_VOICE) - ${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-voice.uqm ${WRKSRC}/content/packages/ + ${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-voice.uqm ${WRKSRC}/content/addons/ .endif .ifdef(WITH_MUSIC) - ${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-3domusic.uqm ${WRKSRC}/content/packages/ + ${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-3domusic.uqm ${WRKSRC}/content/addons/ .endif +.for i in ${REMIX_PACKS} +. if ${PORT_OPTIONS:MREMIXPACK${i}} + ${CP} ${DISTDIR}/${PORTNAME}-remix-disc${i}.uqm ${WRKSRC}/content/addons/ +. endif +.endfor do-configure: - @${ECHO_MSG} CHOICE_debug_VALUE=\'nodebug\' > ${WRKSRC}/config.state - @${ECHO_MSG} CHOICE_graphics_VALUE=\'opengl\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_debug_VALUE=\'nodebug\' > ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_graphics_VALUE=\'opengl\' >> ${WRKSRC}/config.state .if ${PORT_OPTIONS:MOPENAL} - @${ECHO_MSG} CHOICE_sound_VALUE=\'openal\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_sound_VALUE=\'openal\' >> ${WRKSRC}/config.state .else - @${ECHO_MSG} CHOICE_sound_VALUE=\'mixsdl\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_sound_VALUE=\'mixsdl\' >> ${WRKSRC}/config.state .endif - @${ECHO_MSG} CHOICE_mikmod_VALUE=\'external\' >> ${WRKSRC}/config.state - @${ECHO_MSG} CHOICE_ovcodec_VALUE=\'standard\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_mikmod_VALUE=\'external\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_ovcodec_VALUE=\'standard\' >> ${WRKSRC}/config.state .ifdef(NO_INET6) - @${ECHO_MSG} CHOICE_netplay_VALUE=\'full\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_netplay_VALUE=\'full\' >> ${WRKSRC}/config.state .else - @${ECHO_MSG} CHOICE_netplay_VALUE=\'ipv4\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_netplay_VALUE=\'ipv4\' >> ${WRKSRC}/config.state .endif - @${ECHO_MSG} CHOICE_joystick_VALUE=\'enabled\' >> ${WRKSRC}/config.state - @${ECHO_MSG} CHOICE_ioformat_VALUE=\'stdio_zip\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_joystick_VALUE=\'enabled\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_ioformat_VALUE=\'stdio_zip\' >> ${WRKSRC}/config.state .if ${ARCH} == "i386" - @${ECHO_MSG} CHOICE_accel_VALUE=\'asm\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_accel_VALUE=\'asm\' >> ${WRKSRC}/config.state .else - @${ECHO_MSG} CHOICE_accel_VALUE=\'plainc\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_accel_VALUE=\'plainc\' >> ${WRKSRC}/config.state .endif - @${ECHO_MSG} CHOICE_threadlib_VALUE=\'sdl\' >> ${WRKSRC}/config.state - @${ECHO_MSG} INPUT_install_prefix_VALUE=\'${PREFIX}\' >> ${WRKSRC}/config.state - @${ECHO_MSG} INPUT_install_bindir_VALUE=\''$$prefix/bin'\' >> ${WRKSRC}/config.state - @${ECHO_MSG} INPUT_install_libdir_VALUE=\''$$prefix/lib'\' >> ${WRKSRC}/config.state - @${ECHO_MSG} INPUT_install_sharedir_VALUE=\''$$prefix/share'\' >> ${WRKSRC}/config.state + @${ECHO_CMD} CHOICE_threadlib_VALUE=\'sdl\' >> ${WRKSRC}/config.state + @${ECHO_CMD} INPUT_install_prefix_VALUE=\'${PREFIX}\' >> ${WRKSRC}/config.state + @${ECHO_CMD} INPUT_install_bindir_VALUE=\''$$prefix/bin'\' >> ${WRKSRC}/config.state + @${ECHO_CMD} INPUT_install_libdir_VALUE=\''$$prefix/lib'\' >> ${WRKSRC}/config.state + @${ECHO_CMD} INPUT_install_sharedir_VALUE=\''$$prefix/share'\' >> ${WRKSRC}/config.state cd ${WRKSRC} && ${SETENV} LOCALBASE=${LOCALBASE} PREFIX=${PREFIX} ./build.sh uqm config do-build: diff --git a/games/uqm/distinfo b/games/uqm/distinfo index 2c730cc68b44..4b97280aeeb1 100644 --- a/games/uqm/distinfo +++ b/games/uqm/distinfo @@ -6,3 +6,11 @@ SHA256 (uqm-0.7.0-voice.uqm) = bcccf801b4ba37594ff6217b292744ea586ee2d447e927804 SIZE (uqm-0.7.0-voice.uqm) = 115143439 SHA256 (uqm-0.7.0-3domusic.uqm) = c57085e64dad4bddf8a679a9aa2adf63f2156d5f6cbabe63af80519033dbcb82 SIZE (uqm-0.7.0-3domusic.uqm) = 18980671 +SHA256 (uqm-remix-disc1.uqm) = b697694745d939311e8ebffdd5edf692e010c25d7966e1481074940a4d0487e8 +SIZE (uqm-remix-disc1.uqm) = 50188876 +SHA256 (uqm-remix-disc2.uqm) = 7fbb4744102e31273e4459b01a156da052ec537c128fe91793643e348bc1bade +SIZE (uqm-remix-disc2.uqm) = 60282662 +SHA256 (uqm-remix-disc3.uqm) = e6d89f8f66cf1df1cb278fca1e92261b1776ee670dff26132e33f14dbd31e91d +SIZE (uqm-remix-disc3.uqm) = 39924875 +SHA256 (uqm-remix-disc4.uqm) = a4c8197712a5b72a81c7ef7a2a33ea7d3ac90ab063c929dd68e7328a559a86d0 +SIZE (uqm-remix-disc4.uqm) = 86545760 diff --git a/games/uqm/pkg-plist b/games/uqm/pkg-plist index 0b3419da58fd..b3f8bf395e7e 100644 --- a/games/uqm/pkg-plist +++ b/games/uqm/pkg-plist @@ -2,9 +2,14 @@ bin/uqm lib/uqm/uqm %%DATADIR%%/content/packages/uqm-0.7.0-content.uqm %%DATADIR%%/content/version -%%VOICEADDON%%%%DATADIR%%/content/packages/uqm-0.7.0-voice.uqm -%%MUSICADDON%%%%DATADIR%%/content/packages/uqm-0.7.0-3domusic.uqm +%%VOICEADDON%%%%DATADIR%%/content/addons/uqm-0.7.0-voice.uqm +%%MUSICADDON%%%%DATADIR%%/content/addons/uqm-0.7.0-3domusic.uqm +%%REMIXPACK1ADDON%%%%DATADIR%%/content/addons/uqm-remix-disc1.uqm +%%REMIXPACK2ADDON%%%%DATADIR%%/content/addons/uqm-remix-disc2.uqm +%%REMIXPACK3ADDON%%%%DATADIR%%/content/addons/uqm-remix-disc3.uqm +%%REMIXPACK4ADDON%%%%DATADIR%%/content/addons/uqm-remix-disc4.uqm @dirrm %%DATADIR%%/content/packages +@dirrm %%DATADIR%%/content/addons @dirrm %%DATADIR%%/content @dirrm %%DATADIR%% @dirrm lib/uqm |