aboutsummaryrefslogtreecommitdiffstats
path: root/audio/pulseaudio/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2007-04-30 08:20:33 +0800
committermarcus <marcus@FreeBSD.org>2007-04-30 08:20:33 +0800
commitba1fc5e5ec1d436af559df0aeca59dfa7908fc90 (patch)
treefac18c00121c6397a078aeaa9d102f9ba8834b47 /audio/pulseaudio/Makefile
parent97b0b3f24eeb729967170edc06147c08bc963aeb (diff)
downloadfreebsd-ports-gnome-ba1fc5e5ec1d436af559df0aeca59dfa7908fc90.tar.gz
freebsd-ports-gnome-ba1fc5e5ec1d436af559df0aeca59dfa7908fc90.tar.zst
freebsd-ports-gnome-ba1fc5e5ec1d436af559df0aeca59dfa7908fc90.zip
* Update to 0.9.5
* Respect PTHREAD_{CFLAGS,LIBS} * Make sure pulse-dependent applications are linked against PTHREAD_LIBS [1] * Add missing pulse and pulse-access user and groups Reported by: Romain Tartiere <romain@blogreen.org> [1]
Diffstat (limited to 'audio/pulseaudio/Makefile')
-rw-r--r--audio/pulseaudio/Makefile46
1 files changed, 34 insertions, 12 deletions
diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile
index d48ebeda61b3..88f1c212ec3e 100644
--- a/audio/pulseaudio/Makefile
+++ b/audio/pulseaudio/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= pulseaudio
-PORTVERSION= 0.9.4
+PORTVERSION= 0.9.5
CATEGORIES= audio
MASTER_SITES= http://0pointer.de/lennart/projects/${PORTNAME}/
@@ -19,41 +19,63 @@ LIB_DEPENDS= samplerate.1:${PORTSDIR}/audio/libsamplerate \
CONFLICTS= polypaudio-[1-9]*
-USE_GNOME= gnometarget gnomehack glib20
-WANT_GNOME= yes
+USE_GNOME= gnometarget gnomehack glib20 ltverhack
USE_XLIB= yes
USE_LDCONFIG= yes
-USE_AUTOTOOLS= libltdl:15
-GNU_CONFIGURE= yes
+USE_AUTOTOOLS= libtool:15 libltdl:15
USE_GMAKE= yes
USE_GETOPT_LONG=yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}" \
LIBS="-lm"
-CONFIGURE_ARGS+= --disable-lirc # untested
+CONFIGURE_ARGS= --localstatedir=/var \
+ --disable-lirc # untested
-OPTIONS= JACK "JACK audio support" Off
+OPTIONS= JACK "JACK audio support" Off \
+ AVAHI "Enable Avahi mDNS support" On \
+ HAL "Enable HAL support" On \
+ GCONF "Enable GConf support" On
+
+PULSE_VERSION= ${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
+PLIST_SUB= PULSE_VERSION=${PULSE_VERSION}
.include <bsd.port.pre.mk>
-.if defined(WITH_JACK) || exists(${LOCALBASE}/lib/libjack.la)
+.if defined(WITH_JACK)
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
PLIST_SUB+= JACK=""
.else
PLIST_SUB+= JACK="@comment "
+CONFIGURE_ARGS+=--disable-jack
.endif
-.if (exists(${LOCALBASE}/lib/libavahi-core.a) || defined(PACKAGE_BUILDING) \
- || defined(WITH_AVAHI)) && !defined(WITHOUT_AVAHI)
+.if !defined(WITHOUT_AVAHI)
LIB_DEPENDS+= avahi-core.5:${PORTSDIR}/net/avahi
-CONFIGURE_ARGS+= --enable-avahi
PLIST_SUB+= AVAHI=""
.else
-CONFIGURE_ARGS+= --disable-avahi
+CONFIGURE_ARGS+=--disable-avahi
PLIST_SUB+= AVAHI="@comment "
.endif
+.if !defined(WITHOUT_HAL)
+LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
+PLIST_SUB+= HAL=""
+.else
+CONFIGURE_ARGS+=--disable-hal
+PLIST_SUB+= HAL="@comment "
+.endif
+
+.if !defined(WITHOUT_GCONF)
+USE_GNOME+= gconf2
+PLIST_SUB+= GCONF=""
+.else
+CONFIGURE_ARGS+=--disable-gconf
+PLIST_SUB+= GCONF="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/src/daemon/default.pa.in