2011-10-19 15:25:11 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pulseaudio
|
|
|
|
#
|
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2014-03-16 21:06:40 +01:00
|
|
|
PULSEAUDIO_VERSION = 5.0
|
2013-09-06 08:14:15 +02:00
|
|
|
PULSEAUDIO_SOURCE = pulseaudio-$(PULSEAUDIO_VERSION).tar.xz
|
2011-10-19 15:25:11 +02:00
|
|
|
PULSEAUDIO_SITE = http://freedesktop.org/software/pulseaudio/releases/
|
|
|
|
PULSEAUDIO_INSTALL_STAGING = YES
|
2013-06-10 09:56:14 +02:00
|
|
|
PULSEAUDIO_LICENSE = LGPLv2.1+ (specific license for modules, see LICENSE file)
|
|
|
|
PULSEAUDIO_LICENSE_FILES = LICENSE GPL LGPL
|
2011-10-19 15:25:11 +02:00
|
|
|
PULSEAUDIO_CONF_OPT = \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-default-build-tests \
|
|
|
|
--disable-legacy-runtime-dir \
|
2012-05-20 02:06:03 +02:00
|
|
|
--disable-legacy-database-entry-format \
|
2014-02-05 14:50:56 +01:00
|
|
|
--disable-manpages
|
2011-10-19 15:25:11 +02:00
|
|
|
|
|
|
|
PULSEAUDIO_DEPENDENCIES = \
|
2012-10-22 17:47:52 +02:00
|
|
|
host-pkgconf libtool json-c libsndfile speex host-intltool \
|
2011-10-19 15:25:11 +02:00
|
|
|
$(if $(BR2_PACKAGE_LIBATOMIC_OPS),libatomic_ops) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \
|
|
|
|
$(if $(BR2_PACKAGE_ALSA_LIB),alsa-lib) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBGLIB2),libglib2) \
|
|
|
|
$(if $(BR2_PACKAGE_AVAHI_DAEMON),avahi) \
|
|
|
|
$(if $(BR2_PACKAGE_DBUS),dbus) \
|
|
|
|
$(if $(BR2_PACKAGE_BLUEZ_UTILS),bluez_utils) \
|
2014-02-07 14:21:33 +01:00
|
|
|
$(if $(BR2_PACKAGE_HAS_UDEV),udev) \
|
2011-10-19 15:25:11 +02:00
|
|
|
$(if $(BR2_PACKAGE_OPENSSL),openssl) \
|
|
|
|
$(if $(BR2_PACKAGE_FFTW),fftw) \
|
2012-05-20 12:53:15 +02:00
|
|
|
$(if $(BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING),webrtc-audio-processing) \
|
|
|
|
$(if $(BR2_PACKAGE_SYSTEMD),systemd)
|
2011-10-19 15:25:11 +02:00
|
|
|
|
2013-05-09 09:14:25 +02:00
|
|
|
|
2013-05-12 12:05:22 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ORC),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += orc
|
|
|
|
PULSEAUDIO_CONF_ENV += ORCC=$(HOST_DIR)/usr/bin/orcc
|
|
|
|
PULSEAUDIO_CONF_OPT += --enable-orc
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPT += --disable-orc
|
|
|
|
endif
|
|
|
|
|
2014-03-16 21:06:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libcap
|
|
|
|
PULSEAUDIO_CONF_OPT += --with-caps
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPT += --without-caps
|
|
|
|
endif
|
|
|
|
|
2012-06-04 23:07:31 +02:00
|
|
|
ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
|
|
# The optional webrtc echo canceller is written in C++, causing auto* to want
|
|
|
|
# to link module-echo-cancel.so with CXX even if webrtc ISN'T used.
|
|
|
|
# If we don't have C++ support enabled in BR, CXX will point to /bin/false,
|
|
|
|
# which makes configure think we aren't able to create C++ .so files
|
|
|
|
# (arguable true), breaking the build when it tries to install the .so
|
|
|
|
# workaround it by patching up the libtool invocations to use C mode instead
|
|
|
|
define PULSEAUDIO_FORCE_CC
|
|
|
|
$(SED) 's/--tag=CXX/--tag=CC/g' -e 's/(CXXLD)/(CCLD)/g' \
|
|
|
|
$(@D)/src/Makefile.in
|
|
|
|
endef
|
|
|
|
|
|
|
|
PULSEAUDIO_POST_PATCH_HOOKS += PULSEAUDIO_FORCE_CC
|
|
|
|
endif
|
|
|
|
|
2013-08-22 23:01:32 +02:00
|
|
|
# neon intrinsics not available with float-abi=soft
|
|
|
|
ifeq ($(BR2_ARM_SOFT_FLOAT),)
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
|
|
|
PULSEAUDIO_USE_NEON = y
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PULSEAUDIO_USE_NEON),y)
|
|
|
|
PULSEAUDIO_CONF_OPT += --enable-neon-opt=yes
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPT += --enable-neon-opt=no
|
|
|
|
endif
|
|
|
|
|
2011-10-25 18:01:35 +02:00
|
|
|
# pulseaudio alsa backend needs pcm/mixer apis
|
|
|
|
ifneq ($(BR2_PACKAGE_ALSA_LIB_PCM)$(BR2_PACKAGE_ALSA_LIB_MIXER),yy)
|
|
|
|
PULSEAUDIO_CONF_OPT += --disable-alsa
|
|
|
|
endif
|
|
|
|
|
2012-10-06 21:32:09 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBXCB)$(BR2_PACKAGE_XLIB_LIBSM)$(BR2_PACKAGE_XLIB_LIBXTST),yyy)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libxcb xlib_libSM xlib_libXtst
|
|
|
|
|
|
|
|
# .desktop file generation needs nls support, so fake it for !locale builds
|
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=54658
|
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
|
|
|
define PULSEAUDIO_FIXUP_DESKTOP_FILES
|
|
|
|
cp $(@D)/src/daemon/pulseaudio.desktop.in \
|
|
|
|
$(@D)/src/daemon/pulseaudio.desktop
|
|
|
|
cp $(@D)/src/daemon/pulseaudio-kde.desktop.in \
|
|
|
|
$(@D)/src/daemon/pulseaudio-kde.desktop
|
|
|
|
endef
|
|
|
|
PULSEAUDIO_POST_PATCH_HOOKS += PULSEAUDIO_FIXUP_DESKTOP_FILES
|
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPT += --disable-x11
|
|
|
|
endif
|
|
|
|
|
2011-10-19 15:25:11 +02:00
|
|
|
ifneq ($(BR2_PACKAGE_VALA),y)
|
|
|
|
define PULSEAUDIO_REMOVE_VALA
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/vala
|
|
|
|
endef
|
|
|
|
|
|
|
|
PULSEAUDIO_POST_INSTALL_TARGET_HOOKS += PULSEAUDIO_REMOVE_VALA
|
|
|
|
endif
|
|
|
|
|
2013-05-03 04:35:22 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PULSEAUDIO_DAEMON),y)
|
|
|
|
define PULSEAUDIO_USERS
|
|
|
|
pulse -1 pulse -1 * /var/run/pulse - audio,pulse-access
|
|
|
|
endef
|
|
|
|
|
|
|
|
define PULSEAUDIO_INSTALL_INIT_SYSV
|
2013-09-09 22:38:04 +02:00
|
|
|
$(INSTALL) -D -m 755 package/pulseaudio/S50pulseaudio \
|
2013-05-03 04:35:22 +02:00
|
|
|
$(TARGET_DIR)/etc/init.d/S50pulseaudio
|
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|