]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/asterisk: add optional zlib dependency
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 9 Sep 2017 21:39:10 +0000 (23:39 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 23 Sep 2017 17:20:18 +0000 (19:20 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/asterisk/asterisk.mk

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