pkgsrc/audio/pulseaudio/Makefile

129 lines
3.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.120 2017/09/08 02:27:44 ryoon Exp $
DISTNAME= pulseaudio-11.0
CATEGORIES= audio
MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.freedesktop.org/wiki/Software/PulseAudio
COMMENT= Sound server for POSIX and Win32 systems
2010-01-24 18:11:17 +01:00
LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2
NOT_FOR_PLATFORM= DragonFly-*-*
LIBTOOL_REQD= 2.4
GCC_REQD+= 4.8
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= aclocal autoheader autoconf automake gmake gm4 intltool msgfmt pkg-config
USE_LANGUAGES= c c++
REPLACE_BASH= shell-completion/bash/pulseaudio git-version-gen
Update to 5.0 from 2.1 * Remove dependency to sysutils/hal, hald backend is removed. * Use deprecated OSS backend under NetBSD (alsa backend should be used?) Changelog: PulseAudio 5.0 Changes at a glance: * BlueZ 5 support (A2DP only) * Reimplementation of the tunnel modules * Native log target support for systemd-journal * Resampler refactoring * --monitor-stream option for parecord and parec * "latency_msec" argument for module-rtp-recv * "inhibit_auto_suspend" argument for module-rtp-send * "auto" argument for module-tunnel-sink and module-tunnel-source * Removed module-bluetooth-proximity * Jack detection for line out * Laptop internal surround speaker volume support * Improved float->s16 and s16->float sample conversion for ARM NEON * "Available" flag for card profiles * Removed module-dbus-protocol from the default configuration * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/5.0 PulseAudio 4.0 Changes at a glance: * Better handling of low latency requests * Optimisations while mixing (generic, ARM NEON) * Default resampler is now speex-float-1 (lower CPU usage) * Major Bluetooth refactoring for better reliability and easier maintenance * Fixes for graceful hand-off to/from JACK * New module to apply ducking based on stream roles * Echo canceller infrastructure fixes * Bash and zsh completion for command line tools * Solaris and OS X fixes * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/4.0 PulseAudio 3.0 Release Notes We're, back with another shiny PulseAudio release! While the 3.0 release was a little delayed, it brings a number of important improvements, and bug fixes. A summary of changes follows. Notable Changes ALSA Use Case Manager (UCM) support Runtime editable LADSPA filter parameters Out-of-the-box support for Bluetooth sources ARM NEON optimisations Configurable device latency offset Adhere to the XDG Base Directory Specification Various ALSA changes Lots of infrastructure improvements Packaging Bluetooth support requires now "sbc", a library for the SBC codec. The codec used to be included within PulseAudio, but it has now been split off into a separate library. It's available at http://www.bluez.org. Support for the "socket API" of BlueZ has been dropped in favour of the D-Bus based "media API". Due to this change, the minimum supported version of BlueZ is now 4.99. Also, make sure that you don't have "Disable=Media" in /etc/bluetooth/audio.conf. And due to a bug in BlueZ, it's probably necessary to have "Disable=Socket", otherwise there will be problems with the A2DP profile. Support for HAL has been removed. This shouldn't affect anyone, but if it does, please configure PulseAudio to use udev instead. module-hal-detect still exists for maintaining configuration file compatibility, but all it does is to load module-udev-detect. module-hal-detect may get completely removed in 4.0.
2014-06-09 15:08:19 +02:00
.include "../../mk/bsd.prefs.mk"
2016-08-15 11:26:20 +02:00
# Some tests are incompatible for NetBSD at least
2016-02-25 11:15:45 +01:00
CONFIGURE_ARGS.NetBSD+= --disable-default-build-tests
2016-08-15 11:26:20 +02:00
# broken test for TLS
2016-08-15 11:26:20 +02:00
.if ((${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[45].*)) || \
(${OPSYS} == "Darwin" && !empty(PKGSRC_COMPILER:Mclang)))
CONFIGURE_ENV+= ac_cv_tls=none
.endif
Update to 5.0 from 2.1 * Remove dependency to sysutils/hal, hald backend is removed. * Use deprecated OSS backend under NetBSD (alsa backend should be used?) Changelog: PulseAudio 5.0 Changes at a glance: * BlueZ 5 support (A2DP only) * Reimplementation of the tunnel modules * Native log target support for systemd-journal * Resampler refactoring * --monitor-stream option for parecord and parec * "latency_msec" argument for module-rtp-recv * "inhibit_auto_suspend" argument for module-rtp-send * "auto" argument for module-tunnel-sink and module-tunnel-source * Removed module-bluetooth-proximity * Jack detection for line out * Laptop internal surround speaker volume support * Improved float->s16 and s16->float sample conversion for ARM NEON * "Available" flag for card profiles * Removed module-dbus-protocol from the default configuration * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/5.0 PulseAudio 4.0 Changes at a glance: * Better handling of low latency requests * Optimisations while mixing (generic, ARM NEON) * Default resampler is now speex-float-1 (lower CPU usage) * Major Bluetooth refactoring for better reliability and easier maintenance * Fixes for graceful hand-off to/from JACK * New module to apply ducking based on stream roles * Echo canceller infrastructure fixes * Bash and zsh completion for command line tools * Solaris and OS X fixes * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/4.0 PulseAudio 3.0 Release Notes We're, back with another shiny PulseAudio release! While the 3.0 release was a little delayed, it brings a number of important improvements, and bug fixes. A summary of changes follows. Notable Changes ALSA Use Case Manager (UCM) support Runtime editable LADSPA filter parameters Out-of-the-box support for Bluetooth sources ARM NEON optimisations Configurable device latency offset Adhere to the XDG Base Directory Specification Various ALSA changes Lots of infrastructure improvements Packaging Bluetooth support requires now "sbc", a library for the SBC codec. The codec used to be included within PulseAudio, but it has now been split off into a separate library. It's available at http://www.bluez.org. Support for the "socket API" of BlueZ has been dropped in favour of the D-Bus based "media API". Due to this change, the minimum supported version of BlueZ is now 4.99. Also, make sure that you don't have "Disable=Media" in /etc/bluetooth/audio.conf. And due to a bug in BlueZ, it's probably necessary to have "Disable=Socket", otherwise there will be problems with the A2DP profile. Support for HAL has been removed. This shouldn't affect anyone, but if it does, please configure PulseAudio to use udev instead. module-hal-detect still exists for maintaining configuration file compatibility, but all it does is to load module-udev-detect. module-hal-detect may get completely removed in 4.0.
2014-06-09 15:08:19 +02:00
CONFIGURE_ENV+= DATADIRNAME=${PKGLOCALEDIR}
2014-06-18 13:12:05 +02:00
USE_PKGLOCALEDIR= yes
Update to 5.0 from 2.1 * Remove dependency to sysutils/hal, hald backend is removed. * Use deprecated OSS backend under NetBSD (alsa backend should be used?) Changelog: PulseAudio 5.0 Changes at a glance: * BlueZ 5 support (A2DP only) * Reimplementation of the tunnel modules * Native log target support for systemd-journal * Resampler refactoring * --monitor-stream option for parecord and parec * "latency_msec" argument for module-rtp-recv * "inhibit_auto_suspend" argument for module-rtp-send * "auto" argument for module-tunnel-sink and module-tunnel-source * Removed module-bluetooth-proximity * Jack detection for line out * Laptop internal surround speaker volume support * Improved float->s16 and s16->float sample conversion for ARM NEON * "Available" flag for card profiles * Removed module-dbus-protocol from the default configuration * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/5.0 PulseAudio 4.0 Changes at a glance: * Better handling of low latency requests * Optimisations while mixing (generic, ARM NEON) * Default resampler is now speex-float-1 (lower CPU usage) * Major Bluetooth refactoring for better reliability and easier maintenance * Fixes for graceful hand-off to/from JACK * New module to apply ducking based on stream roles * Echo canceller infrastructure fixes * Bash and zsh completion for command line tools * Solaris and OS X fixes * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/4.0 PulseAudio 3.0 Release Notes We're, back with another shiny PulseAudio release! While the 3.0 release was a little delayed, it brings a number of important improvements, and bug fixes. A summary of changes follows. Notable Changes ALSA Use Case Manager (UCM) support Runtime editable LADSPA filter parameters Out-of-the-box support for Bluetooth sources ARM NEON optimisations Configurable device latency offset Adhere to the XDG Base Directory Specification Various ALSA changes Lots of infrastructure improvements Packaging Bluetooth support requires now "sbc", a library for the SBC codec. The codec used to be included within PulseAudio, but it has now been split off into a separate library. It's available at http://www.bluez.org. Support for the "socket API" of BlueZ has been dropped in favour of the D-Bus based "media API". Due to this change, the minimum supported version of BlueZ is now 4.99. Also, make sure that you don't have "Disable=Media" in /etc/bluetooth/audio.conf. And due to a bug in BlueZ, it's probably necessary to have "Disable=Socket", otherwise there will be problems with the A2DP profile. Support for HAL has been removed. This shouldn't affect anyone, but if it does, please configure PulseAudio to use udev instead. module-hal-detect still exists for maintaining configuration file compatibility, but all it does is to load module-udev-detect. module-hal-detect may get completely removed in 4.0.
2014-06-09 15:08:19 +02:00
# Wrong sys/capability.h assumptions, incompatible implementation:
2016-02-25 11:15:45 +01:00
CONFIGURE_ARGS.FreeBSD+= --without-caps
CONFIGURE_ENV+= EGDIR=${EGDIR}
MAKE_ENV+= EGDIR=${EGDIR}
Update to 5.0 from 2.1 * Remove dependency to sysutils/hal, hald backend is removed. * Use deprecated OSS backend under NetBSD (alsa backend should be used?) Changelog: PulseAudio 5.0 Changes at a glance: * BlueZ 5 support (A2DP only) * Reimplementation of the tunnel modules * Native log target support for systemd-journal * Resampler refactoring * --monitor-stream option for parecord and parec * "latency_msec" argument for module-rtp-recv * "inhibit_auto_suspend" argument for module-rtp-send * "auto" argument for module-tunnel-sink and module-tunnel-source * Removed module-bluetooth-proximity * Jack detection for line out * Laptop internal surround speaker volume support * Improved float->s16 and s16->float sample conversion for ARM NEON * "Available" flag for card profiles * Removed module-dbus-protocol from the default configuration * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/5.0 PulseAudio 4.0 Changes at a glance: * Better handling of low latency requests * Optimisations while mixing (generic, ARM NEON) * Default resampler is now speex-float-1 (lower CPU usage) * Major Bluetooth refactoring for better reliability and easier maintenance * Fixes for graceful hand-off to/from JACK * New module to apply ducking based on stream roles * Echo canceller infrastructure fixes * Bash and zsh completion for command line tools * Solaris and OS X fixes * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/4.0 PulseAudio 3.0 Release Notes We're, back with another shiny PulseAudio release! While the 3.0 release was a little delayed, it brings a number of important improvements, and bug fixes. A summary of changes follows. Notable Changes ALSA Use Case Manager (UCM) support Runtime editable LADSPA filter parameters Out-of-the-box support for Bluetooth sources ARM NEON optimisations Configurable device latency offset Adhere to the XDG Base Directory Specification Various ALSA changes Lots of infrastructure improvements Packaging Bluetooth support requires now "sbc", a library for the SBC codec. The codec used to be included within PulseAudio, but it has now been split off into a separate library. It's available at http://www.bluez.org. Support for the "socket API" of BlueZ has been dropped in favour of the D-Bus based "media API". Due to this change, the minimum supported version of BlueZ is now 4.99. Also, make sure that you don't have "Disable=Media" in /etc/bluetooth/audio.conf. And due to a bug in BlueZ, it's probably necessary to have "Disable=Socket", otherwise there will be problems with the A2DP profile. Support for HAL has been removed. This shouldn't affect anyone, but if it does, please configure PulseAudio to use udev instead. module-hal-detect still exists for maintaining configuration file compatibility, but all it does is to load module-udev-detect. module-hal-detect may get completely removed in 4.0.
2014-06-09 15:08:19 +02:00
MAKE_FLAGS+= bashcompletiondir=${PREFIX}/share/bash-completion/completions
CONFIGURE_ARGS+= --disable-tcpwrap
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q}
# Use native atomic ops on NetBSD >= 5.0, otherwise
# fallback to libatomic_ops
.if !(${OPSYS} == "NetBSD" && exists(/usr/include/sys/atomic.h))
.include "../../devel/libatomic_ops/buildlink3.mk"
.endif
# Build module-mmkbd-evdev.so under Linux
.if ${OPSYS} == "Linux" && exists(/usr/include/linux/input.h)
PLIST.evdev= yes
.endif
2016-01-06 11:24:43 +01:00
.if ${OPSYS} == "Linux"
PLIST.alsa= yes
.include "../../audio/alsa-lib/buildlink3.mk"
.endif
.include "options.mk"
2012-02-15 23:38:30 +01:00
PKGCONFIG_OVERRIDE+= libpulse-mainloop-glib.pc.in
PKGCONFIG_OVERRIDE+= libpulse-simple.pc.in
PKGCONFIG_OVERRIDE+= libpulse.pc.in
LIBS.NetBSD+= ${LIBOSSAUDIO}
INSTALLATION_DIRS= share/examples/pulse
PULSE_USER?= pulse
PULSE_GROUP?= pulse
PULSE_GROUP_REALTIME?= pulsert
PULSE_GROUP_ACCESS?= pulseacc
BUILD_DEFS+= VARBASE PKG_SYSCONFBASE
PKG_SYSCONFSUBDIR= pulse
EGDIR= ${PREFIX}/share/examples/pulseaudio
CONF_FILES= ${EGDIR}/client.conf ${PKG_SYSCONFDIR}/client.conf
CONF_FILES+= ${EGDIR}/daemon.conf ${PKG_SYSCONFDIR}/daemon.conf
CONF_FILES+= ${EGDIR}/default.pa ${PKG_SYSCONFDIR}/default.pa
CONF_FILES+= ${EGDIR}/system.pa ${PKG_SYSCONFDIR}/system.pa
CONF_FILES+= ${EGDIR}/pulseaudio-system.conf \
${PKG_SYSCONFBASE}/dbus-1/system.d/pulseaudio-system.conf
2016-01-06 11:24:43 +01:00
PLIST_VARS+= alsa bonjour coreaudio evdev oss sun
.if ${OPSYS} == "SunOS"
USE_LANGUAGES+= c99
PLIST.sun= yes
. if ${OS_VERSION} == "5.11"
PLIST.oss= yes
. endif
.elif ${OPSYS} == "Darwin"
PLIST.bonjour= yes
PLIST.coreaudio= yes
.else
PLIST.oss= yes
.endif
2012-01-08 16:00:38 +01:00
PKG_GROUPS= ${PULSE_GROUP}
PKG_GROUPS+= ${PULSE_GROUP_REALTIME}
PKG_GROUPS+= ${PULSE_GROUP_ACCESS}
2012-01-08 16:00:38 +01:00
PKG_USERS= ${PULSE_USER}:${PULSE_GROUP}
pre-configure:
set -e; cd ${WRKSRC}; \
aclocal; autoheader; automake -a --foreign -i; autoconf
Update to 5.0 from 2.1 * Remove dependency to sysutils/hal, hald backend is removed. * Use deprecated OSS backend under NetBSD (alsa backend should be used?) Changelog: PulseAudio 5.0 Changes at a glance: * BlueZ 5 support (A2DP only) * Reimplementation of the tunnel modules * Native log target support for systemd-journal * Resampler refactoring * --monitor-stream option for parecord and parec * "latency_msec" argument for module-rtp-recv * "inhibit_auto_suspend" argument for module-rtp-send * "auto" argument for module-tunnel-sink and module-tunnel-source * Removed module-bluetooth-proximity * Jack detection for line out * Laptop internal surround speaker volume support * Improved float->s16 and s16->float sample conversion for ARM NEON * "Available" flag for card profiles * Removed module-dbus-protocol from the default configuration * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/5.0 PulseAudio 4.0 Changes at a glance: * Better handling of low latency requests * Optimisations while mixing (generic, ARM NEON) * Default resampler is now speex-float-1 (lower CPU usage) * Major Bluetooth refactoring for better reliability and easier maintenance * Fixes for graceful hand-off to/from JACK * New module to apply ducking based on stream roles * Echo canceller infrastructure fixes * Bash and zsh completion for command line tools * Solaris and OS X fixes * Lots of other enhancements, bug fixes, and documenation and i18n updates Detailed change log: http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/4.0 PulseAudio 3.0 Release Notes We're, back with another shiny PulseAudio release! While the 3.0 release was a little delayed, it brings a number of important improvements, and bug fixes. A summary of changes follows. Notable Changes ALSA Use Case Manager (UCM) support Runtime editable LADSPA filter parameters Out-of-the-box support for Bluetooth sources ARM NEON optimisations Configurable device latency offset Adhere to the XDG Base Directory Specification Various ALSA changes Lots of infrastructure improvements Packaging Bluetooth support requires now "sbc", a library for the SBC codec. The codec used to be included within PulseAudio, but it has now been split off into a separate library. It's available at http://www.bluez.org. Support for the "socket API" of BlueZ has been dropped in favour of the D-Bus based "media API". Due to this change, the minimum supported version of BlueZ is now 4.99. Also, make sure that you don't have "Disable=Media" in /etc/bluetooth/audio.conf. And due to a bug in BlueZ, it's probably necessary to have "Disable=Socket", otherwise there will be problems with the A2DP profile. Support for HAL has been removed. This shouldn't affect anyone, but if it does, please configure PulseAudio to use udev instead. module-hal-detect still exists for maintaining configuration file compatibility, but all it does is to load module-udev-detect. module-hal-detect may get completely removed in 4.0.
2014-06-09 15:08:19 +02:00
.if ${OPSYS} != "Darwin"
.include "../../sysutils/consolekit/buildlink3.mk"
.endif
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/speexdsp/buildlink3.mk"
.include "../../databases/gdbm/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"