summaryrefslogtreecommitdiffstats
path: root/audio/pulseaudio/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/pulseaudio/Makefile')
-rw-r--r--audio/pulseaudio/Makefile58
1 files changed, 27 insertions, 31 deletions
diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile
index ac309a161..73a426bfe 100644
--- a/audio/pulseaudio/Makefile
+++ b/audio/pulseaudio/Makefile
@@ -3,27 +3,26 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/audio/pulseaudio/Makefile,v 1.23 2011/10/22 22:05:06 kwm Exp $
+# $MCom: ports/audio/pulseaudio/Makefile,v 1.24 2011/10/23 11:33:24 kwm Exp $
#
# !!!NOTE!!! Any PORTVERSION update to this port must be accompanied by
-# PORTREVISION bumps to audio/gnome-media, sysutils/gnome-settings-daemon,
-# audio/gstreamer-plugins-pulse and empathy3.
+# PORTREVISION bumps of depending ports.
#
PORTNAME= pulseaudio
-PORTVERSION= 1.1
+PORTVERSION= 2.0
CATEGORIES= audio
MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/
MAINTAINER= gnome@FreeBSD.org
COMMENT= Sound server for UNIX
-LIB_DEPENDS= samplerate.1:${PORTSDIR}/audio/libsamplerate \
- speexdsp.1:${PORTSDIR}/audio/speex \
- json.0:${PORTSDIR}/devel/json-c \
- dbus-1.3:${PORTSDIR}/devel/dbus \
+LIB_DEPENDS= samplerate:${PORTSDIR}/audio/libsamplerate \
+ speexdsp:${PORTSDIR}/audio/speex \
+ json:${PORTSDIR}/devel/json-c \
+ dbus-1:${PORTSDIR}/devel/dbus \
execinfo:${PORTSDIR}/devel/libexecinfo \
- ck-connector.0:${PORTSDIR}/sysutils/consolekit
+ ck-connector:${PORTSDIR}/sysutils/consolekit
USE_XZ= yes
USE_GNOME= gnomehack glib20 intltool ltverhack gnomehier
@@ -40,8 +39,8 @@ CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
OPENSSL_LIBS="-lcrypto -lssl" \
LIBS="-lm -lintl" \
ac_cv_header_linux_input_h=""
-CPPFLAGS= -I${LOCALBASE}/include
-LDFLAGS= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --localstatedir=/var \
--with-database=simple \
@@ -50,18 +49,13 @@ CONFIGURE_ARGS= --localstatedir=/var \
--disable-gtk2 \
--disable-lirc # untested
-
#FIXME --with-database=auto|tdb|gdbm|simple
USERS= pulse
GROUPS= pulse pulse-access pulse-rt
-OPTIONS= JACK "JACK audio support" Off \
- AVAHI "Enable Avahi mDNS support" On \
- HAL "Enable HAL support" On \
- GCONF "Enable GConf support" On \
- ALSA "Enable alsa support" Off \
- SIMD "Enable autodetection of SIMD (MMX, SSE2, VMX)" on
+OPTIONS_DEFINE= JACK AVAHI HAL GCONF ALSA SIMD
+OPTIONS_DEFAULT=AVAHI HAL GCONF SIMD
PULSE_VERSION= ${PORTVERSION}
PLIST_SUB= PULSE_VERSION=${PULSE_VERSION}
@@ -69,35 +63,37 @@ PLIST_SUB= PULSE_VERSION=${PULSE_VERSION}
MAN1= esdcompat.1 pacat.1 pacmd.1 pactl.1 padsp.1 \
paplay.1 pasuspender.1 pax11publish.1 pulseaudio.1 \
start-pulseaudio-kde.1 start-pulseaudio-x11.1
-MAN5= default.pa.5 pulse-client.conf.5 pulse-daemon.conf.5
+MAN5= default.pa.5 pulse-cli-syntax.5 pulse-client.conf.5 \
+ pulse-daemon.conf.5
.include <bsd.port.pre.mk>
-.if defined(WITH_JACK)
-LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
+.if ${PORT_OPTIONS:MJACK}
+LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack
PLIST_SUB+= JACK=""
.else
PLIST_SUB+= JACK="@comment "
CONFIGURE_ARGS+=--disable-jack
.endif
-.if !defined(WITHOUT_AVAHI)
-LIB_DEPENDS+= avahi-client.3:${PORTSDIR}/net/avahi-app
+.if ${PORT_OPTIONS:MAVAHI}
+LIB_DEPENDS+= avahi-client:${PORTSDIR}/net/avahi-app
PLIST_SUB+= AVAHI=""
.else
CONFIGURE_ARGS+=--disable-avahi
PLIST_SUB+= AVAHI="@comment "
.endif
-.if !defined(WITHOUT_HAL)
-LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
+.if ${PORT_OPTIONS:MHAL}
+LIB_DEPENDS+= hal:${PORTSDIR}/sysutils/hal
+CONFIGURE_ARGS+=--enable-hal
PLIST_SUB+= HAL=""
.else
CONFIGURE_ARGS+=--disable-hal
PLIST_SUB+= HAL="@comment "
.endif
-.if !defined(WITHOUT_GCONF)
+.if ${PORT_OPTIONS:MGCONF}
USE_GNOME+= gconf2
PLIST_SUB+= GCONF=""
.else
@@ -105,23 +101,23 @@ CONFIGURE_ARGS+=--disable-gconf
PLIST_SUB+= GCONF="@comment "
.endif
-.if defined(WITH_ALSA)
-LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
+.if ${PORT_OPTIONS:MALSA}
+LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
PLIST_SUB+= ALSA=""
.else
CONFIGURE_ARGS+=--disable-alsa
PLIST_SUB+= ALSA="@comment "
.endif
-.if defined(WITH_SIMD)
-LIB_DEPENDS+= orc-0.4.0:${PORTSDIR}/devel/orc
+.if ${PORT_OPTIONS:MSIMD}
+LIB_DEPENDS+= orc-0.4:${PORTSDIR}/devel/orc
CONFIGURE_ARGS+=--enable-orc
.else
CONFIGURE_ARGS+=--disable-orc
.endif
# OSVERSION wasn't bumped after the MFC. So we need to use the next bump.
-# Sadly for 7-stable the OSVERSION wasn't bumped after 7.4-R
+# Sadly for 7-stable the OSVERSION wasn't bumped after 7.4-R
.if ((${OSVERSION} >= 800000) && (${OSVERSION} < 802504)) || \
((${OSVERSION} >= 900000) && (${OSVERSION} < 900037))
EXTRA_PATCHES+= ${FILESDIR}/extra-src_modules_oss_module-oss.c