c27a0b9d7f
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
54 lines
1.7 KiB
Makefile
54 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# pulseaudio
|
|
#
|
|
################################################################################
|
|
|
|
PULSEAUDIO_VERSION = 2.0
|
|
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-pkg-config libtool json-c libsndfile speex host-intltool \
|
|
$(if $(BR2_PACKAGE_LIBINTL),libintl) \
|
|
$(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)
|
|
|
|
# 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
|
|
|
|
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
|
|
|
|
$(eval $(call AUTOTARGETS))
|