2011-10-19 15:25:11 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pulseaudio
|
|
|
|
#
|
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2018-07-16 20:35:52 +02:00
|
|
|
PULSEAUDIO_VERSION = 12.2
|
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
|
2011-10-19 15:25:11 +02:00
|
|
|
PULSEAUDIO_INSTALL_STAGING = YES
|
2017-03-30 15:43:34 +02:00
|
|
|
PULSEAUDIO_LICENSE = LGPL-2.1+ (specific license for modules, see LICENSE file)
|
2013-06-10 09:56:14 +02:00
|
|
|
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
|
|
|
|
|
|
|
PULSEAUDIO_DEPENDENCIES = \
|
2017-09-19 19:35:42 +02:00
|
|
|
host-pkgconf libtool libsndfile speex host-intltool \
|
2011-10-19 15:25:11 +02:00
|
|
|
$(if $(BR2_PACKAGE_LIBGLIB2),libglib2) \
|
|
|
|
$(if $(BR2_PACKAGE_AVAHI_DAEMON),avahi) \
|
|
|
|
$(if $(BR2_PACKAGE_DBUS),dbus) \
|
|
|
|
$(if $(BR2_PACKAGE_OPENSSL),openssl) \
|
|
|
|
$(if $(BR2_PACKAGE_FFTW),fftw) \
|
2012-05-20 12:53:15 +02:00
|
|
|
$(if $(BR2_PACKAGE_SYSTEMD),systemd)
|
2011-10-19 15:25:11 +02:00
|
|
|
|
2017-12-20 17:02:51 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-samplerate
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libsamplerate
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-samplerate
|
|
|
|
endif
|
|
|
|
|
2016-02-21 10:50:13 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GDBM),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += --with-database=gdbm
|
|
|
|
PULSEAUDIO_DEPENDENCIES += gdbm
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += --with-database=simple
|
|
|
|
endif
|
2013-05-09 09:14:25 +02:00
|
|
|
|
2016-02-21 10:50:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JACK2),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-jack
|
|
|
|
PULSEAUDIO_DEPENDENCIES += jack2
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-jack
|
|
|
|
endif
|
|
|
|
|
2017-09-19 19:35:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libatomic_ops
|
|
|
|
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
|
|
|
PULSEAUDIO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -DAO_NO_SPARC_V9"
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-05-12 12:05:22 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ORC),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += orc
|
2017-07-05 13:14:19 +02:00
|
|
|
PULSEAUDIO_CONF_ENV += ORCC=$(HOST_DIR)/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
|
|
|
|
|
2016-02-21 10:50:15 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSOXR),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += --with-soxr
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libsoxr
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += --without-soxr
|
|
|
|
endif
|
|
|
|
|
2017-07-18 10:55:39 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS)$(BR2_PACKAGE_SBC),yy)
|
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-bluez4
|
|
|
|
PULSEAUDIO_DEPENDENCIES += bluez_utils sbc
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-bluez4
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_SBC),yy)
|
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-bluez5
|
|
|
|
PULSEAUDIO_DEPENDENCIES += bluez5_utils sbc
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-bluez5
|
|
|
|
endif
|
|
|
|
|
2016-02-21 10:50:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2016-06-23 12:09:56 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-udev
|
2016-02-21 10:50:16 +01:00
|
|
|
PULSEAUDIO_DEPENDENCIES += udev
|
|
|
|
else
|
2016-06-23 12:09:56 +02:00
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-udev
|
2016-02-21 10:50:16 +01:00
|
|
|
endif
|
|
|
|
|
2016-07-04 01:35:05 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-webrtc-aec
|
|
|
|
PULSEAUDIO_DEPENDENCIES += webrtc-audio-processing
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += --disable-webrtc-aec
|
|
|
|
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
|
2017-12-20 17:02:50 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM)$(BR2_PACKAGE_ALSA_LIB_MIXER),yy)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += alsa-lib
|
|
|
|
PULSEAUDIO_CONF_OPTS += --enable-alsa
|
|
|
|
else
|
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
|
2017-07-05 13:22:04 +02:00
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
|
2012-10-06 21:32:09 +02:00
|
|
|
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
|
|
|
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
|
|
|
|
|
2017-12-19 16:12:32 +01:00
|
|
|
# ConsoleKit module init failure breaks user daemon startup
|
|
|
|
define PULSEAUDIO_REMOVE_CONSOLE_KIT
|
|
|
|
rm -f $(TARGET_DIR)/usr/lib/pulse-$(PULSEAUDIO_VERSION)/modules/module-console-kit.so
|
|
|
|
endef
|
|
|
|
|
2011-10-19 15:25:11 +02:00
|
|
|
define PULSEAUDIO_REMOVE_VALA
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/vala
|
|
|
|
endef
|
|
|
|
|
2017-12-19 16:12:32 +01:00
|
|
|
PULSEAUDIO_POST_INSTALL_TARGET_HOOKS += PULSEAUDIO_REMOVE_VALA \
|
|
|
|
PULSEAUDIO_REMOVE_CONSOLE_KIT
|
2011-10-19 15:25:11 +02:00
|
|
|
|
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))
|