- Fix build with clang [1]

- Improve options description [1]
- Update maintainer email [1]
- Support STAGEDIR
- Convert to new LIB_DEPENDS syntax
- Convert to options helpers when possible

PR:	ports/184290 (based on) [1]
Submitted by:	Benjamin Lutz <mail@maxlor.com> (maintainer) [1]
This commit is contained in:
Alex Kozlov 2013-11-30 07:51:09 +00:00
parent eb6c9a7189
commit 3899c62461
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335266
3 changed files with 57 additions and 58 deletions

View file

@ -9,72 +9,57 @@ MASTER_SITES= SF/sc2/UQM/${PORTVERSION:R}
DISTFILES= ${PORTNAME}-${PORTVERSION}-source.tgz ${PORTNAME}-${DATAVERSION}-content.uqm
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-source.tgz
MAINTAINER= benlutz@datacomm.ch
MAINTAINER= mail@maxlor.com
COMMENT= Port of the original Star Control 2 for 3DO consoles
LICENSE= GPLv2
LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis \
mikmod:${PORTSDIR}/audio/libmikmod
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
libmikmod.so:${PORTSDIR}/audio/libmikmod \
libpth.so:${PORTSDIR}/devel/pth
USES= gmake pkgconfig
USE_SDL= image sdl
NO_INSTALL_MANPAGES= yes
DATAVERSION= 0.7.0
OPTIONS_DEFINE= VOICE MUSIC OPENAL DOCS
MUSIC_DESC= Music add-on
VOICE_DESC= Voice add-on
OPTIONS_GROUP= REMIXES
MUSIC_DESC= 3DO music add-on (18 MiB)
VOICE_DESC= Speech add-on (109 MiB)
OPTIONS_GROUP= SOUNDTRACK_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
OPTIONS_GROUP_SOUNDTRACK_REMIXES= REMIX1 REMIX2 REMIX3 REMIX4
REMIX1_DESC= "Super Meelee!" (47 MiB)
REMIX2_DESC= "Neutral Aliens, Don't Shoot!" (57 MiB)
REMIX3_DESC= "Ur-Quan Hierarchy" (38 MiB)
REMIX4_DESC= "The New Alliance of Free Stars" (82 MiB)
OPTIONS_SUB= yes
VOICE_DISTFILES= ${PORTNAME}-${DATAVERSION}-voice.uqm
MUSIC_DISTFILES= ${PORTNAME}-${DATAVERSION}-3domusic.uqm
OPENAL_USE= OPENAL=al
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MVOICE}
DISTFILES+= ${PORTNAME}-${DATAVERSION}-voice.uqm
PLIST_SUB+= VOICEADDON=""
.else
PLIST_SUB+= VOICEADDON="@comment "
.endif
.if ${PORT_OPTIONS:MMUSIC}
DISTFILES+= ${PORTNAME}-${DATAVERSION}-3domusic.uqm
PLIST_SUB+= MUSICADDON=""
.else
PLIST_SUB+= MUSICADDON="@comment "
.endif
.if ${PORT_OPTIONS:MOPENAL}
USE_OPENAL= al
.endif
.for i in ${REMIX_PACKS}
. if ${PORT_OPTIONS:MREMIXPACK${i}}
. if ${PORT_OPTIONS:MREMIX${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/addons ${WRKSRC}/content/packages
${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-content.uqm ${WRKSRC}/content/packages/
.ifdef(WITH_VOICE)
${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-voice.uqm ${WRKSRC}/content/addons/
@${MKDIR} ${WRKSRC}/content/addons ${WRKSRC}/content/packages
@${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-content.uqm ${WRKSRC}/content/packages/
.if ${PORT_OPTIONS:MVOICE}
@${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-voice.uqm ${WRKSRC}/content/addons/
.endif
.ifdef(WITH_MUSIC)
${CP} ${DISTDIR}/${PORTNAME}-${DATAVERSION}-3domusic.uqm ${WRKSRC}/content/addons/
.if ${PORT_OPTIONS:MMUSIC}
@${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/
. if ${PORT_OPTIONS:MREMIX${i}}
@${CP} ${DISTDIR}/${PORTNAME}-remix-disc${i}.uqm ${WRKSRC}/content/addons/
. endif
.endfor
@ -88,7 +73,7 @@ do-configure:
.endif
@${ECHO_CMD} CHOICE_mikmod_VALUE=\'external\' >> ${WRKSRC}/config.state
@${ECHO_CMD} CHOICE_ovcodec_VALUE=\'standard\' >> ${WRKSRC}/config.state
.ifdef(NO_INET6)
.if ${PORT_OPTIONS:MINET6}
@${ECHO_CMD} CHOICE_netplay_VALUE=\'full\' >> ${WRKSRC}/config.state
.else
@${ECHO_CMD} CHOICE_netplay_VALUE=\'ipv4\' >> ${WRKSRC}/config.state
@ -101,23 +86,21 @@ do-configure:
@${ECHO_CMD} CHOICE_accel_VALUE=\'plainc\' >> ${WRKSRC}/config.state
.endif
@${ECHO_CMD} CHOICE_threadlib_VALUE=\'sdl\' >> ${WRKSRC}/config.state
@${ECHO_CMD} INPUT_install_prefix_VALUE=\'${PREFIX}\' >> ${WRKSRC}/config.state
@${ECHO_CMD} INPUT_install_prefix_VALUE=\'${STAGEDIR}${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
@(cd ${WRKSRC} && ${SETENV} LOCALBASE=${LOCALBASE} PREFIX=${PREFIX} ./build.sh uqm config)
do-build:
cd ${WRKSRC} && ./build.sh uqm
@(cd ${WRKSRC} && ./build.sh uqm)
do-install:
cd ${WRKSRC} && ./build.sh uqm install
@(cd ${WRKSRC} && ./build.sh uqm install)
post-install:
${STRIP_CMD} ${PREFIX}/lib/uqm/uqm
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/users/manual.txt ${DOCSDIR}
.endif
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/uqm/uqm
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/users/manual.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -0,0 +1,16 @@
--- build/unix/config_proginfo_build.orig 2011-05-20 21:25:22.000000000 +0200
+++ build/unix/config_proginfo_build 2013-11-25 19:19:42.000000000 +0100
@@ -166,10 +166,10 @@
### gcc ###
-PROG_gcc_NAME="GNU C compiler"
-PROG_gcc_FILE="gcc"
+PROG_gcc_NAME="C compiler"
+PROG_gcc_FILE="cc"
PROG_gcc_ACTION=""
-PROG_gcc_VERSION='$(gcc --version)'
+PROG_gcc_VERSION='$(cc --version)'
### sed ###

View file

@ -2,12 +2,12 @@ bin/uqm
lib/uqm/uqm
%%DATADIR%%/content/packages/uqm-0.7.0-content.uqm
%%DATADIR%%/content/version
%%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
%%VOICE%%%%DATADIR%%/content/addons/uqm-0.7.0-voice.uqm
%%MUSIC%%%%DATADIR%%/content/addons/uqm-0.7.0-3domusic.uqm
%%REMIX1%%%%DATADIR%%/content/addons/uqm-remix-disc1.uqm
%%REMIX2%%%%DATADIR%%/content/addons/uqm-remix-disc2.uqm
%%REMIX3%%%%DATADIR%%/content/addons/uqm-remix-disc3.uqm
%%REMIX4%%%%DATADIR%%/content/addons/uqm-remix-disc4.uqm
@dirrm %%DATADIR%%/content/packages
@dirrm %%DATADIR%%/content/addons
@dirrm %%DATADIR%%/content