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>
This commit is contained in:
Yann E. MORIN 2017-09-09 23:39:12 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 5bc671c32d
commit bb50a1ffd5

View File

@ -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