ports/175905: [patch] games/rocksndiamonds: drop explicit smpeg dependency
Jan Beich
jbeich at tormail.org
Wed Feb 6 22:50:01 UTC 2013
>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:
More information about the freebsd-ports-bugs
mailing list