ports/82671: Update port: audio/sdl_mixer

KATO Tsuguru tkato432 at yahoo.com
Sun Jun 26 17:10:15 UTC 2005


>Number:         82671
>Category:       ports
>Synopsis:       Update port: audio/sdl_mixer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 26 17:10:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Support OPTIONS
- Add audio/libmikmod to default LIB_DEPENDS

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/audio/sdl_mixer/Makefile audio/sdl_mixer/Makefile
--- /usr/ports/audio/sdl_mixer/Makefile	Tue Apr 26 23:05:31 2005
+++ audio/sdl_mixer/Makefile	Sun Jun 26 21:09:01 2005
@@ -7,6 +7,7 @@
 
 PORTNAME=	sdl_mixer
 PORTVERSION=	1.2.6
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	http://www.libsdl.org/projects/SDL_mixer/release/
 DISTNAME=	SDL_mixer-${PORTVERSION}
@@ -14,11 +15,8 @@
 MAINTAINER=	krion at FreeBSD.org
 COMMENT=	A sample multi-channel audio mixer library
 
-LIB_DEPENDS=	vorbis.3:${PORTSDIR}/audio/libvorbis \
-		smpeg.1:${PORTSDIR}/multimedia/smpeg
 
 USE_SDL=	sdl
-USE_REINPLACE=	yes
 USE_GMAKE=	yes
 USE_LIBTOOL_VER=15
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@@ -26,9 +24,28 @@
 		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
 INSTALLS_SHLIB=	yes
 
-post-configure:
-	@${REINPLACE_CMD} -e \
-		's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \
-			${WRKSRC}/libtool
+OPTIONS=	MIKMOD "Enable MOD music via libMikMod" on \
+		VORBIS "Enable Ogg Vorbis music" on \
+		SMPEG "Enable MP3 music via SMPEG" on
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_MIKMOD)
+CONFIGURE_ARGS+=	--disable-music-libmikmod
+.else
+LIB_DEPENDS=	mikmod.2:${PORTSDIR}/audio/libmikmod
+.endif
+
+.if defined(WITHOUT_VORBIS)
+CONFIGURE_ARGS+=	--disable-music-ogg
+.else
+LIB_DEPENDS+=	vorbis.3:${PORTSDIR}/audio/libvorbis
+.endif
+
+.if defined(WITHOUT_SMPEG)
+CONFIGURE_ARGS+=	--disable-music-mp3
+.else
+LIB_DEPENDS+= smpeg.1:${PORTSDIR}/multimedia/smpeg
+.endif
+
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list