]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/asterisk: add optional speex dependency
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 9 Sep 2017 21:39:18 +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 2278d04d2cb289ab41f92b6849f8532f0946a1b9..1ac1f49c058a1e47506901254d1546643befc76b 100644 (file)
@@ -93,8 +93,6 @@ ASTERISK_CONF_OPTS = \
        --without-SDL_image \
        --without-spandsp \
        --without-ss7 \
-       --without-speex \
-       --without-speexdsp \
        --without-sqlite \
        --without-srtp \
        --without-suppserv \
@@ -183,6 +181,13 @@ else
 ASTERISK_CONF_OPTS += --without-ssl
 endif
 
+ifeq ($(BR2_PACKAGE_SPEEX),y)
+ASTERISK_DEPENDENCIES += speex
+ASTERISK_CONF_OPTS += --with-speex --with-speexdsp
+else
+ASTERISK_CONF_OPTS += --without-speex  --without-speexdsp
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 ASTERISK_DEPENDENCIES += zlib
 ASTERISK_CONF_OPTS += --with-z