package/asterisk: add optional libgsm dependency
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 9 Sep 2017 21:39:09 +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 65f80626be1054d930efef9c07d3b791693494ef..573315ce0ce8cc77d9ec415bf2a0cfdc8b1606ad 100644 (file)
@@ -55,7 +55,6 @@ ASTERISK_CONF_OPTS = \
        --without-cpg \
        --without-curses \
        --without-dahdi \
-       --without-gsm \
        --without-gtk2 \
        --without-gmime \
        --without-h323 \
@@ -140,6 +139,13 @@ else
 ASTERISK_CONF_OPTS += --without-execinfo
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGSM),y)
+ASTERISK_DEPENDENCIES += libgsm
+ASTERISK_CONF_OPTS += --with-gsm
+else
+ASTERISK_CONF_OPTS += --without-gsm
+endif
+
 ASTERISK_DIRS = \
        ASTVARLIBDIR="/usr/lib/asterisk" \
        ASTDATADIR="/usr/lib/asterisk" \