summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-09-09 23:39:12 +0200
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-09-23 19:20:18 +0200
commitbb50a1ffd512785ab31cd3147ed2aea83e8bdc93 (patch)
tree34472cf72fc3b75ca5d395ba34adbb52743cef9c
parent5bc671c32dce7f0eb6be3b903a3ed45f113fcd33 (diff)
downloadbuildroot-bb50a1ffd512785ab31cd3147ed2aea83e8bdc93.tar.gz
buildroot-bb50a1ffd512785ab31cd3147ed2aea83e8bdc93.zip
package/asterisk: add optional alsa-lib dependency
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--package/asterisk/asterisk.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk
index 8d21601e3e..7ef449ffea 100644
--- a/package/asterisk/asterisk.mk
+++ b/package/asterisk/asterisk.mk
@@ -48,7 +48,6 @@ ASTERISK_CONF_OPTS = \
--disable-internal-poll \
--disable-asteriskssl \
--disable-rpath \
- --without-asound \
--without-bfd \
--without-bluetooth \
--without-cap \
@@ -144,6 +143,13 @@ else
ASTERISK_CONF_OPTS += --without-gsm
endif
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+ASTERISK_DEPENDENCIES += alsa-lib
+ASTERISK_CONF_OPTS += --with-asound
+else
+ASTERISK_CONF_OPTS += --without-asound
+endif
+
ifeq ($(BR2_PACKAGE_OPENSSL),y)
ASTERISK_DEPENDENCIES += openssl
ASTERISK_CONF_OPTS += --with-ssl
OpenPOWER on IntegriCloud