package/pulseaudio: be explicit about udev usage
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 21 Feb 2016 09:50:16 +0000 (10:50 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 21 Feb 2016 11:46:04 +0000 (12:46 +0100)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[Thomas: udev was already handled as an optional dependency, Bernd's
patch only made it explicit by using
--enable-libudev/--disable-libudev.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pulseaudio/pulseaudio.mk

index 36661ccd000af67df7792d1401e34422d892eb2b..06b0b843c5dbdb58d3e0b2935ccdd14746f2f886 100644 (file)
@@ -29,7 +29,6 @@ PULSEAUDIO_DEPENDENCIES = \
        $(if $(BR2_PACKAGE_AVAHI_DAEMON),avahi) \
        $(if $(BR2_PACKAGE_DBUS),dbus) \
        $(if $(BR2_PACKAGE_BLUEZ_UTILS),bluez_utils) \
-       $(if $(BR2_PACKAGE_HAS_UDEV),udev) \
        $(if $(BR2_PACKAGE_OPENSSL),openssl) \
        $(if $(BR2_PACKAGE_FFTW),fftw) \
        $(if $(BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING),webrtc-audio-processing) \
@@ -79,6 +78,13 @@ else
 PULSEAUDIO_CONF_OPTS += --without-soxr
 endif
 
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+PULSEAUDIO_CONF_OPTS += --enable-libudev
+PULSEAUDIO_DEPENDENCIES += udev
+else
+PULSEAUDIO_CONF_OPTS += --disable-libudev
+endif
+
 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.