ports/148271: [patch] audio/xmp: prevent unconditional linking against ALSA

Anonymous swell.k at gmail.com
Thu Jul 1 06:30:10 UTC 2010


>Number:         148271
>Category:       ports
>Synopsis:       [patch] audio/xmp: prevent unconditional linking against ALSA
>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:   Thu Jul 01 06:30:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
>How-To-Repeat:
1. install audio/alsa-lib
2. install audio/xmp
3. deinstall audio/alsa-lib
4. try to run xmp
>Fix:
--- a.diff begins here ---
Index: audio/xmp/Makefile
===================================================================
RCS file: /a/.cvsup/ports/audio/xmp/Makefile,v
retrieving revision 1.48
diff -u -p -r1.48 Makefile
--- audio/xmp/Makefile	31 May 2010 16:32:36 -0000	1.48
+++ audio/xmp/Makefile	1 Jul 2010 06:20:03 -0000
@@ -23,7 +23,8 @@ CONFIGURE_ARGS=	--sysconfdir=${PREFIX}/e
 
 MAN1=		xmp.1
 
-OPTIONS=	ARTS	"aRts output driver" off \
+OPTIONS=	ALSA	"ALSA output driver" off \
+		ARTS	"aRts output driver" off \
 		AUDACIOUS	"Audacious plugin" off \
 		BMP	"BeepMP plugin" off \
 		ESOUND	"EsounD output driver" off \
@@ -40,6 +41,14 @@ MAKE_JOBS_SAFE=	yes
 PORTDOCS=	*
 .endif
 
+.if defined(WITH_ALSA)
+LIB_DEPENDS+=	asound.2:${PORTSDIR}/audio/alsa-lib
+RUN_DEPENDS+=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
+CONFIGURE_ARGS+=	--enable-alsa
+.else
+CONFIGURE_ARGS+=	--disable-alsa
+.endif
+
 .if defined(WITH_ARTS)
 LIB_DEPENDS+=	artsc.0:${PORTSDIR}/audio/arts
 CONFIGURE_ARGS+=	--enable-arts
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list