ports/116161: [patch] Add WITH_PULSE option to musicpd

Romain Tartiere romain at blogreen.org
Thu Sep 6 19:00:09 UTC 2007


>Number:         116161
>Category:       ports
>Synopsis:       [patch] Add WITH_PULSE option to musicpd
>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:   Thu Sep 06 19:00:08 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Romain Tartiere
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD marvin.blogreen.org 6.2-STABLE FreeBSD 6.2-STABLE #5: Fri Aug 3 14:19:08 CEST 2007 root at marvin.blogreen.org:/usr/obj/usr/src/sys/MARVIN i386


	
>Description:
The musicpd port unconditionally build musicpd without PulseAudio output
support. The following patch add an option to allow the user to choose if he
wants pulse support or not when compiling.
>How-To-Repeat:

>Fix:

--- Makefile.diff begins here ---
--- Makefile.orig	2007-08-24 20:59:10.000000000 +0200
+++ Makefile	2007-09-06 16:22:45.000000000 +0200
@@ -7,6 +7,7 @@
 
 PORTNAME=	musicpd
 PORTVERSION=	0.13.0
+PORTREVISION=	1
 CATEGORIES=	audio ipv6
 MASTER_SITES=	http://musicpd.org/uploads/files/
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -31,11 +32,11 @@
 		ICONV "Support for international characters" on \
 	        ID3TAG "Support for id3v1 tag encoding" off \
 		IPV6 "Support for IPV6" on \
-		AO "Support for libao" off
+		AO "Support for libao" off \
+		PULSE "Support for PulseAudio" off
 
 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS=	--disable-pulse \
-		--disable-shout
+CONFIGURE_ARGS= --disable-shout
 
 .include <bsd.port.pre.mk>
 
@@ -96,6 +97,12 @@
 LIB_DEPENDS+=	ao.3:${PORTSDIR}/audio/libao
 .endif
 
+.ifdef(WITHOUT_PULSE)
+CONFIGURE_ARGS+=--disable-pulse
+.else
+LIB_DEPENDS+=   pulse.0:${PORTSDIR}/audio/pulseaudio
+.endif
+
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 
--- Makefile.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list