package/libpjsip: add optional dependency on libgsm
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 14 Oct 2018 09:02:00 +0000 (11:02 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 9 Dec 2018 21:23:08 +0000 (22:23 +0100)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libpjsip/libpjsip.mk

index f4a57965b8e806e8114f7323e8b4e891354ac19f..22b922586c14c7b1e5d054fe3a7c09b8ca02ff0a 100644 (file)
@@ -26,7 +26,6 @@ LIBPJSIP_CONF_ENV = \
 
 LIBPJSIP_CONF_OPTS = \
        --disable-sound \
-       --disable-gsm-codec \
        --disable-resample \
        --disable-video \
        --disable-opencore-amr \
@@ -54,6 +53,16 @@ LIBPJSIP_CONF_OPTS = \
 # so we want to use it.
 LIBPJSIP_CONF_OPTS += --enable-epoll
 
+ifeq ($(BR2_PACKAGE_LIBGSM),y)
+LIBPJSIP_CONF_OPTS += \
+       --enable-gsm-codec \
+       --with-external-gsm
+LIBPJSIP_DEPENDENCIES += libgsm
+else
+LIBPJSIP_CONF_OPTS += \
+       --disable-gsm-codec
+endif
+
 ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
 LIBPJSIP_DEPENDENCIES += libopenssl
 LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr