2c1a1bb1cd
Add an upstream patch that makes Pulseaudio link against json-c instead of json, so that it works with json-c 0.11, and doesn't cause problems with libjson has been also installed in the system. Note that this fix has been merged in Pulseaudio after the 3.0 release, so we will have to keep this patch around when bumping to 3.0. Fixes http://autobuild.buildroot.org/results/91ffd3196092c48b88f59adb12741b3f93064dea/build-end.log Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
106 lines
3.5 KiB
Makefile
106 lines
3.5 KiB
Makefile
################################################################################
|
|
#
|
|
# pulseaudio
|
|
#
|
|
################################################################################
|
|
|
|
PULSEAUDIO_VERSION = 2.1
|
|
PULSEAUDIO_SITE = http://freedesktop.org/software/pulseaudio/releases/
|
|
PULSEAUDIO_INSTALL_STAGING = YES
|
|
PULSEAUDIO_CONF_OPT = \
|
|
--localstatedir=/var \
|
|
--disable-default-build-tests \
|
|
--disable-legacy-runtime-dir \
|
|
--disable-legacy-database-entry-format \
|
|
$(if $(BR2_HAVE_DOCUMENTATION),,--disable-manpages)
|
|
|
|
PULSEAUDIO_DEPENDENCIES = \
|
|
host-pkgconf libtool json-c libsndfile speex host-intltool \
|
|
$(if $(BR2_NEEDS_GETTEXT),gettext) \
|
|
$(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_LIBGTK2),libgtk2) \
|
|
$(if $(BR2_PACKAGE_AVAHI_DAEMON),avahi) \
|
|
$(if $(BR2_PACKAGE_DBUS),dbus) \
|
|
$(if $(BR2_PACKAGE_BLUEZ_UTILS),bluez_utils) \
|
|
$(if $(BR2_PACKAGE_UDEV),udev) \
|
|
$(if $(BR2_PACKAGE_OPENSSL),openssl) \
|
|
$(if $(BR2_PACKAGE_FFTW),fftw) \
|
|
$(if $(BR2_PACKAGE_ORC),orc) \
|
|
$(if $(BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING),webrtc-audio-processing) \
|
|
$(if $(BR2_PACKAGE_SYSTEMD),systemd)
|
|
|
|
# One patch touches configure.ac. We unconditionnally need libglib2
|
|
# because configure.ac uses AM_GLIB_GNU_GETTEXT. This unconditionnal
|
|
# dependency can be removed once the patch is removed.
|
|
PULSEAUDIO_AUTORECONF = YES
|
|
PULSEAUDIO_DEPENDENCIES += libglib2
|
|
|
|
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
|
|
|
|
# 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
|
|
|
|
# gtk support needs x backend
|
|
ifneq ($(BR2_PACKAGE_LIBGTK2)$(BR2_PACKAGE_XORG),yy)
|
|
PULSEAUDIO_CONF_OPT += --disable-gtk2
|
|
endif
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
$(INSTALL) -D -m 755 package/multimedia/pulseaudio/S50pulseaudio \
|
|
$(TARGET_DIR)/etc/init.d/S50pulseaudio
|
|
endef
|
|
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|