package/alsa-utils: Add option for alsaloop util
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 18 Jan 2016 21:13:59 +0000 (22:13 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 18 Jan 2016 21:59:50 +0000 (22:59 +0100)
Add libsamplerate as optional dependency, see
alsa-utils-1.1.0/alsaloop/Makefile.am

[Peter: move libsamplerate dependency outside alsaloop conditional]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/alsa-utils/Config.in
package/alsa-utils/alsa-utils.mk

index 82f3ad68d7d78e382c5ebe728e8c3f058f478e9c..9b8e8c0eaf534017e341558f823204c6435dae27 100644 (file)
@@ -29,6 +29,9 @@ config BR2_PACKAGE_ALSA_UTILS_ALSACTL
        bool "alsactl"
        default y
 
+config BR2_PACKAGE_ALSA_UTILS_ALSALOOP
+       bool "alsaloop"
+
 config BR2_PACKAGE_ALSA_UTILS_ALSAMIXER
        bool "alsamixer"
        select BR2_PACKAGE_NCURSES
index 32822bbff0247fbfa97a8cb8a73a30436df39621..b5dc698e6bc07f6aeeef03ebb26de97266d1beec 100644 (file)
@@ -11,7 +11,8 @@ ALSA_UTILS_LICENSE = GPLv2
 ALSA_UTILS_LICENSE_FILES = COPYING
 ALSA_UTILS_INSTALL_STAGING = YES
 ALSA_UTILS_DEPENDENCIES = host-gettext host-pkgconf alsa-lib \
-       $(if $(BR2_PACKAGE_NCURSES),ncurses)
+       $(if $(BR2_PACKAGE_NCURSES),ncurses) \
+       $(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate)
 # Regenerate aclocal.m4 to pick the patched
 # version of alsa.m4 from alsa-lib
 ALSA_UTILS_AUTORECONF = YES
@@ -29,6 +30,12 @@ ALSA_UTILS_DEPENDENCIES += gettext
 ALSA_UTILS_CONF_ENV += LIBS=-lintl
 endif
 
+ifeq ($(BR2_PACKAGE_ALSA_UTILS_ALSALOOP),y)
+ALSA_UTILS_CONF_OPTS += --enable-alsaloop
+else
+ALSA_UTILS_CONF_OPTS += --disable-alsaloop
+endif
+
 ifneq ($(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER),y)
 ALSA_UTILS_CONF_OPTS += --disable-alsamixer --disable-alsatest
 endif
@@ -42,6 +49,7 @@ endif
 
 ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSACONF) += usr/sbin/alsaconf
 ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSACTL) += usr/sbin/alsactl
+ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSALOOP) += usr/bin/alsaloop
 ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSAMIXER) += usr/bin/alsamixer
 ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_ALSATPLG) += usr/bin/alsatplg
 ALSA_UTILS_TARGETS_$(BR2_PACKAGE_ALSA_UTILS_AMIDI) += usr/bin/amidi