Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Feb 2013 10:39:43 +1200
From:      Jan Beich <jbeich@tormail.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/175905: [patch] games/rocksndiamonds: drop explicit smpeg dependency
Message-ID:  <1U3Dgk-000Dex-HI@internal.tormail.org>
Resent-Message-ID: <201302062250.r16Mo19d033131@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175905
>Category:       ports
>Synopsis:       [patch] games/rocksndiamonds: drop explicit smpeg dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 06 22:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
The game plays music via sdl_mixer and most its music isn't in .mp3, anyway.
>How-To-Repeat:
$ fgrep -ir smpeg $(make -V WRKSRC)
./src/Makefile:SDL_LIBS = -lSDL_image -lSDL_mixer -lSDL_net -lsmpeg
./src/Makefile:SDL_LIBS = -lSDL_image -lSDL_mixer -lSDL_net -lsmpeg
./ChangeLog:    * added support for MP3 music for SDL version through SMPEG library
>Fix:
--- no_smpeg.diff begins here ---
Index: games/rocksndiamonds/Makefile
===================================================================
--- games/rocksndiamonds/Makefile	(revision 310604)
+++ games/rocksndiamonds/Makefile	(working copy)
@@ -31,7 +31,6 @@ COMMENT=	Colorful Boulderdash'n'Emerald Mine'n'Sok
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	smpeg:${PORTSDIR}/multimedia/smpeg
 EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
 
 USE_ICONV=	yes
@@ -86,6 +85,7 @@ post-extract-script:
 
 post-patch:
 	@${REINPLACE_CMD} \
+		-e '/^SDL/s/-lsmpeg//' \
 		-e 's|sdl-config|$${SDL_CONFIG}|g' ${WRKSRC}/src/Makefile
 	@${REINPLACE_CMD} \
 		-e 's|machine/soundcard.h|sys/soundcard.h|' ${WRKSRC}/src/libgame/sound.c
--- no_smpeg.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1U3Dgk-000Dex-HI>