]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/asterisk: add optional opus dependency
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 9 Sep 2017 21:39:17 +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 74e45e241c7ac103739ae4666d6bac20f7b31ac8..2278d04d2cb289ab41f92b6849f8532f0946a1b9 100644 (file)
@@ -79,7 +79,6 @@ ASTERISK_CONF_OPTS = \
        --without-netsnmp \
        --without-newt \
        --without-openr2 \
-       --without-opus \
        --without-osptk \
        --without-oss \
        --without-postgres \
@@ -170,6 +169,13 @@ else
 ASTERISK_CONF_OPTS += --without-ogg
 endif
 
+ifeq ($(BR2_PACKAGE_OPUS),y)
+ASTERISK_DEPENDENCIES += opus
+ASTERISK_CONF_OPTS += --with-opus
+else
+ASTERISK_CONF_OPTS += --without-opus
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 ASTERISK_DEPENDENCIES += openssl
 ASTERISK_CONF_OPTS += --with-ssl