2013-03-10 18:55:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.43 2013/03/10 22:55:05 espie Exp $
|
2012-09-29 05:32:05 -04:00
|
|
|
|
|
|
|
# XXX
|
|
|
|
# fix autospawn lock (patch-src_daemon_main_c)
|
2013-01-05 13:06:31 -05:00
|
|
|
# util.c: implement pa_get_binary_name()
|
2012-09-29 05:32:05 -04:00
|
|
|
# sndio: what to do with (channel) map
|
|
|
|
# sndio: check sample format
|
|
|
|
# sndio: support for recording
|
|
|
|
# sndio: make module-detect properly detects the sndio module
|
2011-09-25 05:30:52 -04:00
|
|
|
|
2012-11-29 11:38:04 -05:00
|
|
|
# hppa/mips64 don't have native atomic operations.
|
2012-10-06 04:34:07 -04:00
|
|
|
# PA can use/detect libatomic_ops as a fallback
|
2012-10-15 04:49:10 -04:00
|
|
|
# but in that case linking fails.
|
2012-10-06 04:34:07 -04:00
|
|
|
BROKEN-hppa = lack of atomic ops
|
2012-11-29 11:38:04 -05:00
|
|
|
BROKEN-mips64 = lack of atomic ops
|
2012-10-06 04:34:07 -04:00
|
|
|
|
2011-09-25 05:30:52 -04:00
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= cross-platform networked sound server
|
|
|
|
|
2013-01-01 09:12:36 -05:00
|
|
|
VERSION= 3.0
|
2011-09-25 05:30:52 -04:00
|
|
|
DISTNAME= pulseaudio-${VERSION}
|
2013-01-01 09:12:36 -05:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
2013-01-26 10:53:20 -05:00
|
|
|
REVISION= 3
|
2011-09-25 06:20:37 -04:00
|
|
|
|
2013-01-01 09:12:36 -05:00
|
|
|
SHARED_LIBS += pulse 2.0 # .15.3
|
2011-10-01 04:37:30 -04:00
|
|
|
SHARED_LIBS += pulse-simple 0.0 # .0.3
|
|
|
|
SHARED_LIBS += pulse-mainloop-glib 0.0 # .0.4
|
2011-09-25 05:30:52 -04:00
|
|
|
|
2011-09-25 06:20:37 -04:00
|
|
|
CATEGORIES= audio
|
2011-09-25 05:43:36 -04:00
|
|
|
|
|
|
|
SUBST_VARS+= VERSION
|
|
|
|
|
2011-09-25 05:30:52 -04:00
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
|
|
|
HOMEPAGE= http://www.pulseaudio.org/
|
|
|
|
|
|
|
|
# LGPLv2.1
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2012-11-30 07:26:15 -05:00
|
|
|
WANTLIB += ICE SM X11 X11-xcb Xext Xi Xtst c crypto execinfo gdbm
|
|
|
|
WANTLIB += glib-2.0 json ltdl m pcre pthread sndfile sndio speexdsp
|
2013-01-26 10:53:20 -05:00
|
|
|
WANTLIB += ssl xcb FLAC ogg vorbis vorbisenc
|
2011-10-01 04:37:30 -04:00
|
|
|
|
2011-09-25 05:30:52 -04:00
|
|
|
MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/
|
|
|
|
TAR= ${LOCALBASE}/bin/gtar
|
|
|
|
|
2011-09-25 06:23:41 -04:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
textproc/intltool
|
2011-09-25 05:30:52 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2011-11-22 10:47:07 -05:00
|
|
|
# undefined reference to `lt__PROGRAM__LTX_preloaded_symbols'
|
2011-09-25 05:30:52 -04:00
|
|
|
USE_LIBTOOL= gnu
|
2011-09-25 06:20:37 -04:00
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2011-09-25 05:30:52 -04:00
|
|
|
|
2011-09-25 07:05:53 -04:00
|
|
|
BUILD_DEPENDS= archivers/gtar
|
2012-10-17 07:49:08 -04:00
|
|
|
|
2013-01-02 11:28:19 -05:00
|
|
|
# needed for tests
|
|
|
|
BUILD_DEPENDS += devel/check
|
|
|
|
|
2012-10-17 07:49:08 -04:00
|
|
|
LIB_DEPENDS= audio/libsndfile \
|
|
|
|
audio/speex \
|
2011-09-25 05:30:52 -04:00
|
|
|
databases/gdbm \
|
2011-10-01 04:37:30 -04:00
|
|
|
devel/glib2 \
|
2012-10-17 07:49:08 -04:00
|
|
|
devel/json-c \
|
|
|
|
devel/libexecinfo \
|
|
|
|
devel/libtool,-ltdl
|
2011-09-25 05:30:52 -04:00
|
|
|
|
2013-01-14 00:52:34 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2011-10-01 04:37:30 -04:00
|
|
|
|
|
|
|
# We only enable the strict minimum for basic volume control support.
|
2012-09-22 02:08:31 -04:00
|
|
|
# sndiod(1) is the default sound server on OpenBSD and pulseaudio is only
|
2011-10-01 04:37:30 -04:00
|
|
|
# needed for a couple of use cases (volume control, media-keys)
|
2011-09-25 07:05:53 -04:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2011-09-25 06:20:37 -04:00
|
|
|
--disable-static \
|
2011-09-25 05:30:52 -04:00
|
|
|
--disable-atomic-arm-linux-helpers \
|
2011-10-01 04:37:30 -04:00
|
|
|
--disable-default-build-tests \
|
2011-09-25 05:30:52 -04:00
|
|
|
--with-system-user=_pulse \
|
|
|
|
--with-system-group=_pulse \
|
|
|
|
--with-access-group=_pulse-access \
|
|
|
|
--with-database=gdbm \
|
2011-10-01 04:37:30 -04:00
|
|
|
--without-fftw \
|
|
|
|
--without-caps \
|
2012-09-29 05:32:05 -04:00
|
|
|
--disable-oss-output \
|
2012-01-23 09:39:39 -05:00
|
|
|
--disable-oss-wrapper \
|
2012-05-14 13:45:16 -04:00
|
|
|
--disable-adrian-aec \
|
2011-09-25 05:30:52 -04:00
|
|
|
--disable-alsa \
|
2011-09-25 07:05:53 -04:00
|
|
|
--disable-asyncns \
|
|
|
|
--disable-bluez \
|
2011-10-01 04:37:30 -04:00
|
|
|
--disable-dbus \
|
2012-05-14 13:45:16 -04:00
|
|
|
--disable-esound \
|
2011-09-25 07:05:53 -04:00
|
|
|
--disable-gtk2 \
|
2011-09-25 05:30:52 -04:00
|
|
|
--disable-jack \
|
|
|
|
--disable-hal-compat \
|
2012-05-14 13:45:16 -04:00
|
|
|
--disable-systemd \
|
2011-09-25 05:30:52 -04:00
|
|
|
--disable-udev \
|
|
|
|
--disable-lirc \
|
2011-10-01 04:37:30 -04:00
|
|
|
--disable-samplerate \
|
2011-09-25 07:05:53 -04:00
|
|
|
--disable-solaris \
|
2011-09-25 05:30:52 -04:00
|
|
|
--disable-tcpwrap \
|
2011-10-01 04:37:30 -04:00
|
|
|
--disable-coreaudio-output \
|
|
|
|
--disable-waveout \
|
|
|
|
--disable-gconf \
|
|
|
|
--disable-avahi \
|
2012-04-28 06:52:08 -04:00
|
|
|
--disable-orc
|
2012-11-10 09:52:54 -05:00
|
|
|
# linked "privately" to lib/pulseaudio/libpulsecommon-X.Y.so
|
2011-09-25 05:30:52 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib \
|
2012-11-10 09:52:54 -05:00
|
|
|
-Wl,-rpath,${TRUEPREFIX}/lib/pulseaudio:${TRUEPREFIX}/lib/pulse-${VERSION}/modules"
|
2011-09-25 05:30:52 -04:00
|
|
|
|
2012-11-30 07:26:15 -05:00
|
|
|
FAKE_FLAGS= pulseconfdir="${PREFIX}/share/examples/pulseaudio/pulse" \
|
2013-01-05 13:06:31 -05:00
|
|
|
sysconfdir="${PREFIX}/share/examples/pulseaudio"
|
2011-09-25 05:30:52 -04:00
|
|
|
|
2012-09-28 13:09:03 -04:00
|
|
|
### SNDIO ###
|
2013-01-14 00:52:34 -05:00
|
|
|
AUTOCONF_VERSION= 2.69
|
2012-09-28 13:09:03 -04:00
|
|
|
AUTOMAKE_VERSION= 1.12
|
|
|
|
BUILD_DEPENDS += ${MODGNU_AUTOMAKE_DEPENDS} \
|
|
|
|
${MODGNU_AUTOCONF_DEPENDS}
|
|
|
|
BUILD_DEPENDS += devel/libtool # needs needs libtoolize
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
cp ${FILESDIR}/module-sndio*.{c,h} ${WRKSRC}/src/modules/
|
|
|
|
|
2011-09-25 05:30:52 -04:00
|
|
|
pre-configure:
|
2012-09-28 13:09:03 -04:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
|
|
|
|
autoreconf -i
|
|
|
|
### END SNDIO ###
|
2013-01-05 13:27:42 -05:00
|
|
|
${SUBST_CMD} ${WRKSRC}/src/daemon/default.pa.in
|
2011-09-25 05:30:52 -04:00
|
|
|
|
2011-10-01 04:37:30 -04:00
|
|
|
# remove man pages for utilities we don't install
|
|
|
|
post-install:
|
|
|
|
cd ${PREFIX} && \
|
|
|
|
rm man/man1/pax11publish.1 \
|
2012-09-29 05:32:05 -04:00
|
|
|
man/man1/padsp.1 \
|
|
|
|
man/man1/start-pulseaudio-kde.1 \
|
|
|
|
man/man1/start-pulseaudio-x11.1
|
2011-10-01 04:37:30 -04:00
|
|
|
|
2011-09-25 05:30:52 -04:00
|
|
|
.include <bsd.port.mk>
|