Date: Fri, 10 Oct 2003 20:14:56 +0200 From: Benjamin Lutz <benlutz@datacomm.ch> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/57851: Update port: games/uqm Message-ID: <20031010201456.0452b596.benlutz@datacomm.ch> Resent-Message-ID: <200310101820.h9AIKBFW007635@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 57851 >Category: ports >Synopsis: Update port: games/uqm >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Oct 10 11:20:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Benjamin Lutz >Release: FreeBSD 5.1-RELEASE-p10 i386 >Organization: >Environment: System: FreeBSD merlin 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #8: Wed Oct 8 04:38:33 CEST 2003 maxlor@merlin:/usr/src/sys/i386/compile/MERLIN i386 >Description: * Fix Typo and spacing in Makefile * Mark the port i386 only. If someone manages to compile it on another platform, please let me know. * Remove dependency on SDL_mixer, as this library is no longer actually used by Ur-Quan Masters * Add switches for installing the voice and 3domusic add-on packages * Modify wrapper script so to automatically take advantage of these add-on packages >How-To-Repeat: >Fix: ----- Makefile.patch start ----- --- Makefile.orig Fri Oct 10 16:10:14 2003 +++ Makefile Fri Oct 10 19:51:37 2003 @@ -1,30 +1,72 @@ # Ports collection makefile for: uqm -# Date created: 14 September 2003 -# Whom: asami +# Date created: 14 September 2003 +# Whom: benlutz@datacomm.ch # # $FreeBSD: ports/games/uqm/Makefile,v 1.2 2003/09/28 13:52:51 edwin Exp $ # +# Ur-Quan Masters offers add-on packages that enhance the game. These are +# optional. The following add-ons exist at the moment: +# +# Voice add-on (110 MB). Enable this with -DVOICEADDON +# +# 3DO Music add-on (18 MB). Enable this with -DMUSICADDON +# -PORTNAME= uqm -PORTVERSION= 0.3 -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 - -MAINTAINER= benlutz@datacomm.ch -COMMENT= A port of the original Star Control 2 for 3DO consoles - -LIB_DEPENDS= SDL_image:${PORTSDIR}/graphics/sdl_image \ - SDL_mixer:${PORTSDIR}/audio/sdl_mixer \ - vorbis:${PORTSDIR}/audio/libvorbis \ - ogg:${PORTSDIR}/audio/libogg - -USE_XLIB= yes -USE_GMAKE= yes -USE_SDL= yes -NO_INSTALL_MANPAGES=yes +PORTNAME= uqm +PORTVERSION= 0.3 +PORTREVISION= 1 +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 + +MAINTAINER= benlutz@datacomm.ch +COMMENT= A port of the original Star Control 2 for 3DO consoles + +ONLY_FOR_ARCHS= i386 + +LIB_DEPENDS= SDL_image:${PORTSDIR}/graphics/sdl_image \ + vorbis:${PORTSDIR}/audio/libvorbis \ + ogg:${PORTSDIR}/audio/libogg + +USE_XLIB= yes +USE_GMAKE= yes +USE_SDL= yes +USE_REINPLACE= yes +NO_INSTALL_MANPAGES= yes + +.ifdef(VOICEADDON) +DISTFILES+= ${PORTNAME}-${PORTVERSION}-voice.zip +PLIST_SUB+= VOICEADDON="" +.else +PLIST_SUB+= VOICEADDON="@comment " +.endif + +.ifdef(MUSICADDON) +DISTFILES+= ${PORTNAME}-${PORTVERSION}-3domusic.zip +PLIST_SUB+= MUSICADDON="" +.else +PLIST_SUB+= MUSICADDON="@comment " +.endif + +pre-everything:: +.ifdef(!VOICEADDON || !MUSICADDON) + @${ECHO_MSG} "" + @${ECHO_MSG} "You may specify the following options:" +.endif +.ifdef(!VOICEADDON) + @${ECHO_MSG} "" + @${ECHO_MSG} "-DVOICEADDON" + @${ECHO_MSG} " Installs the voice add-on (110MB)." +.endif +.ifdef(!MUSICADDON) + @${ECHO_MSG} "" + @${ECHO_MSG} "-DMUSICADDON" + @${ECHO_MSG} " Installs the music add-on (18MB) containing the original" + @${ECHO_MSG} " 3do music files. Note that there is music without this" + @${ECHO_MSG} " add-on, just not as much." +.endif post-extract: ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-content.zip ${WRKSRC}/content/packages/ @@ -37,6 +79,16 @@ 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 ---- Makefile.patch end ---- ----- distinfo.patch start ----- --- distinfo.orig Fri Oct 10 16:26:26 2003 +++ distinfo Fri Oct 10 17:04:26 2003 @@ -1,2 +1,4 @@ MD5 (uqm-0.3-source.tgz) = 6abcdc3caf7efd3bd978332743ee7568 MD5 (uqm-0.3-content.zip) = b17bb7b54df03b2d0ae3a23b91382b27 +MD5 (uqm-0.3-voice.zip) = 9a44f0037d05c453b9e570b88b12595f +MD5 (uqm-0.3-3domusic.zip) = 9073251b0d96393441f0b40016010576 ---- distinfo.patch end ---- ----- pkg-plist.patch start ----- --- pkg-plist.orig Fri Oct 10 17:27:04 2003 +++ pkg-plist Fri Oct 10 19:39:03 2003 @@ -2,6 +2,10 @@ lib/uqm/uqm share/uqm/content/packages/uqm-0.3-content.zip share/uqm/content/version +%%VOICEADDON%%share/uqm/content/packages/addons/voice/uqm-0.3-voice.zip +%%MUSICADDON%%share/uqm/content/packages/addons/3domusic/uqm-0.3-3domusic.zip +%%VOICEADDON%%@dirrm share/uqm/content/packages/addons/voice +%%MUSICADDON%%@dirrm share/uqm/content/packages/addons/3domusic @dirrm share/uqm/content/packages/addons @dirrm share/uqm/content/packages @dirrm share/uqm/content ---- pkg-plist.patch end ---- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031010201456.0452b596.benlutz>