package/asterisk: add optional zlib 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:10 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent d068ccfd08
commit 13fcc16db7

View File

@ -114,7 +114,6 @@ ASTERISK_CONF_OPTS = \
--without-vorbis \ --without-vorbis \
--without-vpb \ --without-vpb \
--without-x11 \ --without-x11 \
--without-z \
--with-crypt \ --with-crypt \
--with-jansson \ --with-jansson \
--with-libcurl \ --with-libcurl \
@ -146,6 +145,13 @@ else
ASTERISK_CONF_OPTS += --without-gsm ASTERISK_CONF_OPTS += --without-gsm
endif endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
ASTERISK_DEPENDENCIES += zlib
ASTERISK_CONF_OPTS += --with-z
else
ASTERISK_CONF_OPTS += --without-z
endif
ASTERISK_DIRS = \ ASTERISK_DIRS = \
ASTVARLIBDIR="/usr/lib/asterisk" \ ASTVARLIBDIR="/usr/lib/asterisk" \
ASTDATADIR="/usr/lib/asterisk" \ ASTDATADIR="/usr/lib/asterisk" \