package/libsamplerate: add optional dependency to alsa-lib
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 4 Feb 2018 12:05:27 +0000 (13:05 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 5 Feb 2018 13:55:46 +0000 (14:55 +0100)
Configure summary without this patch and without alsa-lib built before:

  Extra tools required for testing and examples :
[...]
    Have ALSA : ................... no

and with this patch

  Extra tools required for testing and examples :
[...]
    Have ALSA : ................... yes

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libsamplerate/libsamplerate.mk

index 76e93f913e85c9a6ed077261422a10a1036803bf..c107650cb496c1178c4a9c9f4ecd177c520f238b 100644 (file)
@@ -12,6 +12,10 @@ LIBSAMPLERATE_CONF_OPTS = --disable-fftw --program-transform-name=''
 LIBSAMPLERATE_LICENSE = BSD-2-Clause
 LIBSAMPLERATE_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+LIBSAMPLERATE_DEPENDENCIES += alsa-lib
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
 LIBSAMPLERATE_DEPENDENCIES += libsndfile
 endif