aboutsummaryrefslogtreecommitdiffstats
path: root/games/uqm/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-07-07 01:26:51 +0800
committerpav <pav@FreeBSD.org>2005-07-07 01:26:51 +0800
commit7ca5f9a2c00423d98d0925da14e9db932988def3 (patch)
tree71fad753da8063a9313e900307f9866bcf43418a /games/uqm/Makefile
parent0d4543f149fa866f784a8af26766649e7523d71e (diff)
downloadfreebsd-ports-gnome-7ca5f9a2c00423d98d0925da14e9db932988def3.tar.gz
freebsd-ports-gnome-7ca5f9a2c00423d98d0925da14e9db932988def3.tar.zst
freebsd-ports-gnome-7ca5f9a2c00423d98d0925da14e9db932988def3.zip
- Update to 0.4.0
- No longer builds on FreeBSD 4.X PR: ports/83043 Submitted by: Benjamin Lutz <benlutz@datacomm.ch> (maintainer)
Diffstat (limited to 'games/uqm/Makefile')
-rw-r--r--games/uqm/Makefile50
1 files changed, 30 insertions, 20 deletions
diff --git a/games/uqm/Makefile b/games/uqm/Makefile
index bd29aaa6f893..c659ae03e34d 100644
--- a/games/uqm/Makefile
+++ b/games/uqm/Makefile
@@ -13,19 +13,16 @@
#
PORTNAME= uqm
-PORTVERSION= 0.3
-PORTREVISION= 4
+PORTVERSION= 0.4.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sc2
-DISTFILES= ${PORTNAME}-${PORTVERSION}-source.tgz ${PORTNAME}-${PORTVERSION}-content.zip
-EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-source.tgz
+DISTFILES= ${PORTNAME}-${PORTVERSION}-source.tar.gz ${PORTNAME}-${PORTVERSION}-content.uqm
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-source.tar.gz
MAINTAINER= benlutz@datacomm.ch
COMMENT= A port of the original Star Control 2 for 3DO consoles
-ONLY_FOR_ARCHS= i386
-
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis
USE_XLIB= yes
@@ -34,20 +31,28 @@ USE_SDL= image sdl
USE_REINPLACE= yes
NO_INSTALL_MANPAGES= yes
+ONLY_FOR_ARCHS= i386
+
.ifdef(VOICEADDON)
-DISTFILES+= ${PORTNAME}-${PORTVERSION}-voice.zip
+DISTFILES+= ${PORTNAME}-${PORTVERSION}-voice.uqm
PLIST_SUB+= VOICEADDON=""
.else
PLIST_SUB+= VOICEADDON="@comment "
.endif
.ifdef(MUSICADDON)
-DISTFILES+= ${PORTNAME}-${PORTVERSION}-3domusic.zip
+DISTFILES+= ${PORTNAME}-${PORTVERSION}-3domusic.uqm
PLIST_SUB+= MUSICADDON=""
.else
PLIST_SUB+= MUSICADDON="@comment "
.endif
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+BROKEN= "does not compile"
+.endif
+
pre-everything::
.ifdef(!VOICEADDON || !MUSICADDON)
@${ECHO_MSG} ""
@@ -67,9 +72,24 @@ pre-everything::
.endif
post-extract:
- ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-content.zip ${WRKSRC}/content/packages/
+ ${MKDIR} ${WRKSRC}/content/packages
+ ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-content.uqm ${WRKSRC}/content/packages/
+.ifdef(VOICEADDON)
+ ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-voice.uqm ${WRKSRC}/content/packages/
+.endif
+.ifdef(MUSICADDON)
+ ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-3domusic.uqm ${WRKSRC}/content/packages/
+.endif
do-configure:
+ @${ECHO_MSG} CHOICE_debug_VALUE=\'nodebug\' > ${WRKSRC}/config.state
+ @${ECHO_MSG} CHOICE_graphics_VALUE=\'opengl\' >> ${WRKSRC}/config.state
+ @${ECHO_MSG} CHOICE_sound_VALUE=\'mixsdl\' >> ${WRKSRC}/config.state
+ @${ECHO_MSG} CHOICE_ioformat_VALUE=\'stdio_zip\' >> ${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
cd ${WRKSRC} && ${SETENV} LOCALBASE=${LOCALBASE} PREFIX=${PREFIX} ./build.sh uqm config
do-build:
@@ -77,16 +97,6 @@ do-build:
do-install:
cd ${WRKSRC} && ./build.sh uqm install
-.ifdef(VOICEADDON)
- ${MKDIR} ${PREFIX}/share/uqm/content/packages/addons/voice
- ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-voice.zip ${PREFIX}/share/uqm/content/packages/addons/voice
- ${REINPLACE_CMD} -e "s/\"$$\@\"/--addon voice \"$$\@\"/" ${PREFIX}/bin/uqm
-.endif
-.ifdef(MUSICADDON)
- ${MKDIR} ${PREFIX}/share/uqm/content/packages/addons/3domusic
- ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-3domusic.zip ${PREFIX}/share/uqm/content/packages/addons/3domusic
- ${REINPLACE_CMD} -e "s/\"$$\@\"/--addon 3domusic \"$$\@\"/" ${PREFIX}/bin/uqm
-.endif
post-install:
${STRIP_CMD} ${PREFIX}/lib/uqm/uqm
@@ -95,4 +105,4 @@ post-install:
${INSTALL_MAN} ${WRKSRC}/doc/users/manual.txt ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>