2011-10-19 07:25:11 -06:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pulseaudio
|
|
|
|
#
|
|
|
|
################################################################################
|
2013-06-05 17:53:25 -06:00
|
|
|
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_VERSION = 16.1
|
2013-09-06 00:14:15 -06:00
|
|
|
PULSEAUDIO_SOURCE = pulseaudio-$(PULSEAUDIO_VERSION).tar.xz
|
2020-12-05 00:56:53 -07:00
|
|
|
PULSEAUDIO_SITE = https://freedesktop.org/software/pulseaudio/releases
|
2011-10-19 07:25:11 -06:00
|
|
|
PULSEAUDIO_INSTALL_STAGING = YES
|
2017-03-30 07:43:34 -06:00
|
|
|
PULSEAUDIO_LICENSE = LGPL-2.1+ (specific license for modules, see LICENSE file)
|
2013-06-10 01:56:14 -06:00
|
|
|
PULSEAUDIO_LICENSE_FILES = LICENSE GPL LGPL
|
2021-05-22 14:21:56 -06:00
|
|
|
PULSEAUDIO_CPE_ID_VENDOR = pulseaudio
|
2021-09-05 13:51:28 -06:00
|
|
|
PULSEAUDIO_SELINUX_MODULES = pulseaudio xdg
|
2014-09-27 13:32:44 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS = \
|
2022-07-25 13:47:20 -06:00
|
|
|
-Ddoxygen=false \
|
2022-07-05 02:13:30 -06:00
|
|
|
-Dlegacy-database-entry-format=false \
|
|
|
|
-Dman=false \
|
|
|
|
-Drunning-from-build-tree=false \
|
|
|
|
-Dtests=false
|
2011-10-19 07:25:11 -06:00
|
|
|
|
|
|
|
PULSEAUDIO_DEPENDENCIES = \
|
2022-07-27 04:19:02 -06:00
|
|
|
host-pkgconf libtool libsndfile libglib2 \
|
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2011-10-19 07:25:11 -06:00
|
|
|
|
2022-07-27 02:20:27 -06:00
|
|
|
PULSEAUDIO_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
|
|
|
|
|
2022-07-27 04:19:02 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Davahi=enabled
|
|
|
|
PULSEAUDIO_DEPENDENCIES += avahi
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Davahi=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Ddbus=enabled
|
|
|
|
PULSEAUDIO_DEPENDENCIES += dbus
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Ddbus=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFTW_SINGLE),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dfftw=enabled
|
|
|
|
PULSEAUDIO_DEPENDENCIES += fftw-single
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dfftw=disabled
|
|
|
|
endif
|
|
|
|
|
2017-12-20 09:02:51 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dsamplerate=enabled
|
2017-12-20 09:02:51 -07:00
|
|
|
PULSEAUDIO_DEPENDENCIES += libsamplerate
|
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dsamplerate=disabled
|
2017-12-20 09:02:51 -07:00
|
|
|
endif
|
|
|
|
|
2016-02-21 02:50:13 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_GDBM),y)
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Ddatabase=gdbm
|
2016-02-21 02:50:13 -07:00
|
|
|
PULSEAUDIO_DEPENDENCIES += gdbm
|
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Ddatabase=simple
|
2016-02-21 02:50:13 -07:00
|
|
|
endif
|
2013-05-09 01:14:25 -06:00
|
|
|
|
2016-02-21 02:50:14 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_JACK2),y)
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Djack=enabled
|
2016-02-21 02:50:14 -07:00
|
|
|
PULSEAUDIO_DEPENDENCIES += jack2
|
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Djack=disabled
|
2016-02-21 02:50:14 -07:00
|
|
|
endif
|
|
|
|
|
2017-09-19 11:35:42 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBATOMIC_OPS),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libatomic_ops
|
|
|
|
ifeq ($(BR2_sparc_v8)$(BR2_sparc_leon3),y)
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CFLAGS = $(TARGET_CFLAGS) -DAO_NO_SPARC_V9
|
2017-09-19 11:35:42 -06:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2022-07-27 04:19:02 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_LIRC_TOOLS),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += lirc-tools
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dlirc=enabled
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dlirc=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dopenssl=enabled
|
|
|
|
PULSEAUDIO_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dopenssl=disabled
|
|
|
|
endif
|
|
|
|
|
2013-05-12 04:05:22 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_ORC),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += orc
|
2017-07-05 05:14:19 -06:00
|
|
|
PULSEAUDIO_CONF_ENV += ORCC=$(HOST_DIR)/bin/orcc
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dorc=enabled
|
2013-05-12 04:05:22 -06:00
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dorc=disabled
|
2013-05-12 04:05:22 -06:00
|
|
|
endif
|
|
|
|
|
2014-03-16 14:06:40 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libcap
|
|
|
|
endif
|
|
|
|
|
2014-10-25 20:03:20 -06:00
|
|
|
# gtk3 support needs X11 backend
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y)
|
|
|
|
PULSEAUDIO_DEPENDENCIES += libgtk3
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dgtk=enabled
|
2014-10-25 20:03:20 -06:00
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dgtk=disabled
|
2014-10-25 20:03:20 -06:00
|
|
|
endif
|
|
|
|
|
2016-02-21 02:50:15 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSOXR),y)
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dsoxr=enabled
|
2016-02-21 02:50:15 -07:00
|
|
|
PULSEAUDIO_DEPENDENCIES += libsoxr
|
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dsoxr=disabled
|
2016-02-21 02:50:15 -07:00
|
|
|
endif
|
|
|
|
|
2017-07-18 02:55:39 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS)$(BR2_PACKAGE_SBC),yy)
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dbluez5=enabled
|
2017-07-18 02:55:39 -06:00
|
|
|
PULSEAUDIO_DEPENDENCIES += bluez5_utils sbc
|
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dbluez5=disabled
|
2017-07-18 02:55:39 -06:00
|
|
|
endif
|
|
|
|
|
2016-02-21 02:50:16 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dudev=enabled
|
2016-02-21 02:50:16 -07:00
|
|
|
PULSEAUDIO_DEPENDENCIES += udev
|
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dudev=disabled
|
2016-02-21 02:50:16 -07:00
|
|
|
endif
|
|
|
|
|
2016-07-03 17:35:05 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING),y)
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dwebrtc-aec=enabled
|
2016-07-03 17:35:05 -06:00
|
|
|
PULSEAUDIO_DEPENDENCIES += webrtc-audio-processing
|
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dwebrtc-aec=disabled
|
2013-08-22 15:01:32 -06:00
|
|
|
endif
|
|
|
|
|
2022-07-26 15:45:30 -06:00
|
|
|
# our Config.in makes sure that all needed alsa-lib features are
|
|
|
|
# enabled
|
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
2017-12-20 09:02:50 -07:00
|
|
|
PULSEAUDIO_DEPENDENCIES += alsa-lib
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dalsa=enabled
|
2017-12-20 09:02:50 -07:00
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dalsa=disabled
|
2011-10-25 10:01:35 -06:00
|
|
|
endif
|
|
|
|
|
2012-10-06 13:32:09 -06: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 05:22:04 -06:00
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),)
|
2012-10-06 13:32:09 -06:00
|
|
|
define PULSEAUDIO_FIXUP_DESKTOP_FILES
|
|
|
|
cp $(@D)/src/daemon/pulseaudio.desktop.in \
|
2014-10-27 02:25:28 -06:00
|
|
|
$(@D)/src/daemon/pulseaudio.desktop
|
2012-10-06 13:32:09 -06:00
|
|
|
endef
|
|
|
|
PULSEAUDIO_POST_PATCH_HOOKS += PULSEAUDIO_FIXUP_DESKTOP_FILES
|
|
|
|
endif
|
|
|
|
|
|
|
|
else
|
2022-07-05 02:13:30 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dx11=disabled
|
2012-10-06 13:32:09 -06:00
|
|
|
endif
|
|
|
|
|
2022-07-28 05:52:04 -06:00
|
|
|
# This is not a mistake: the option is called speex, but what it
|
|
|
|
# really needs is speexdsp
|
|
|
|
ifeq ($(BR2_PACKAGE_SPEEXDSP),y)
|
2022-07-27 04:19:02 -06:00
|
|
|
PULSEAUDIO_CONF_OPTS += -Dspeex=enabled
|
2022-07-28 05:52:04 -06:00
|
|
|
PULSEAUDIO_DEPENDENCIES += speexdsp
|
2022-07-27 04:19:02 -06:00
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dspeex=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dsystemd=enabled
|
|
|
|
PULSEAUDIO_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dsystemd=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_VALGRIND),y)
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dvalgrind=enabled
|
|
|
|
PULSEAUDIO_DEPENDENCIES += valgrind
|
|
|
|
else
|
|
|
|
PULSEAUDIO_CONF_OPTS += -Dvalgrind=disabled
|
|
|
|
endif
|
|
|
|
|
2017-12-19 08:12:32 -07: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 07:25:11 -06:00
|
|
|
define PULSEAUDIO_REMOVE_VALA
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/vala
|
|
|
|
endef
|
|
|
|
|
2017-12-19 08:12:32 -07:00
|
|
|
PULSEAUDIO_POST_INSTALL_TARGET_HOOKS += PULSEAUDIO_REMOVE_VALA \
|
|
|
|
PULSEAUDIO_REMOVE_CONSOLE_KIT
|
2011-10-19 07:25:11 -06:00
|
|
|
|
2013-05-02 20:35:22 -06: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 14:38:04 -06:00
|
|
|
$(INSTALL) -D -m 755 package/pulseaudio/S50pulseaudio \
|
2013-05-02 20:35:22 -06:00
|
|
|
$(TARGET_DIR)/etc/init.d/S50pulseaudio
|
|
|
|
endef
|
|
|
|
|
2015-05-23 04:06:55 -06:00
|
|
|
define PULSEAUDIO_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/pulseaudio/pulseaudio.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/pulseaudio.service
|
|
|
|
endef
|
|
|
|
|
2013-05-02 20:35:22 -06:00
|
|
|
endif
|
|
|
|
|
2022-07-05 02:13:30 -06:00
|
|
|
$(eval $(meson-package))
|