2011-10-19 15:25:11 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pulseaudio
|
|
|
|
#
|
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2016-01-22 13:36:58 +01:00
|
|
|
PULSEAUDIO_VERSION = 8.0
|
2013-09-06 08:14:15 +02:00
|
|
|
PULSEAUDIO_SOURCE = pulseaudio-$(PULSEAUDIO_VERSION).tar.xz
|
2014-07-31 10:46:58 +02:00
|
|
|
PULSEAUDIO_SITE = http://freedesktop.org/software/pulseaudio/releases
|
2016-01-29 22:05:49 +01:00
|
|
|
# 0002-musl-fixes.patch patches configure.ac
|
|
|
|
PULSEAUDIO_AUTORECONF = YES
|
2011-10-19 15:25:11 +02:00
|
|
|
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
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS = \
|
2011-10-19 15:25:11 +02:00
|
|
|
--disable-default-build-tests \
|
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
|
|
|
|
2016-02-02 16:31:23 +01:00
|
|
|
# Make sure we don't detect libatomic_ops. Indeed, since pulseaudio
|
|
|
|
# requires json-c, which needs 4 bytes __sync builtins, there should
|
|
|
|
# be no need for pulseaudio to rely on libatomic_ops.
|
|
|
|
PULSE_AUDIO_CONF_ENV += \
|
|
|
|
ac_cv_header_atomic_ops_h=no
|
|
|
|
|
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_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
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-orc
|
2013-05-12 12:05:22 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-orc
|
2013-05-12 12:05:22 +02:00
|
|
|
endif
|
|
|
|
|
2014-03-16 21:06:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libcap
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --with-caps
|
2014-03-16 21:06:40 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --without-caps
|
2014-03-16 21:06:40 +01:00
|
|
|
endif
|
|
|
|
|
2014-10-26 03:03:20 +01:00
|
|
|
# gtk3 support needs X11 backend
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libgtk3
|
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-gtk3
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-gtk3
|
|
|
|
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)
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-neon-opt=yes
|
2013-08-22 23:01:32 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-neon-opt=no
|
2013-08-22 23:01:32 +02:00
|
|
|
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)
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-alsa
|
2011-10-25 18:01:35 +02:00
|
|
|
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 \
|
2014-10-27 09:25:28 +01:00
|
|
|
$(@D)/src/daemon/pulseaudio.desktop
|
2012-10-06 21:32:09 +02:00
|
|
|
cp $(@D)/src/daemon/pulseaudio-kde.desktop.in \
|
2014-10-27 09:25:28 +01:00
|
|
|
$(@D)/src/daemon/pulseaudio-kde.desktop
|
2012-10-06 21:32:09 +02:00
|
|
|
endef
|
|
|
|
PULSEAUDIO_POST_PATCH_HOOKS += PULSEAUDIO_FIXUP_DESKTOP_FILES
|
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-x11
|
2012-10-06 21:32:09 +02:00
|
|
|
endif
|
|
|
|
|
2011-10-19 15:25:11 +02:00
|
|
|
define PULSEAUDIO_REMOVE_VALA
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/vala
|
|
|
|
endef
|
|
|
|
|
|
|
|
PULSEAUDIO_POST_INSTALL_TARGET_HOOKS += PULSEAUDIO_REMOVE_VALA
|
|
|
|
|
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
|
|
|
|
|
2015-05-23 12:06:55 +02:00
|
|
|
define PULSEAUDIO_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/pulseaudio/pulseaudio.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/pulseaudio.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../../../../usr/lib/systemd/system/pulseaudio.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/pulseaudio.service
|
|
|
|
endef
|
|
|
|
|
2013-05-03 04:35:22 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|