package/libpjsip: add bcg729 optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 29 Jan 2020 18:55:53 +0000 (19:55 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 29 Jan 2020 19:49:23 +0000 (20:49 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libpjsip/libpjsip.mk

index 84919fdc10b1d4f5a2491854be1b93c31c5b25ff..b89249a6e581ec09b7db8bb98782c4e72d181984 100644 (file)
@@ -49,6 +49,13 @@ LIBPJSIP_CONF_OPTS = \
 # so we want to use it.
 LIBPJSIP_CONF_OPTS += --enable-epoll
 
+ifeq ($(BR2_PACKAGE_BCG729),y)
+LIBPJSIP_DEPENDENCIES += bcg729
+LIBPJSIP_CONF_OPTS += --with-bcg729=$(STAGING_DIR)/usr
+else
+LIBPJSIP_CONF_OPTS += --disable-bcg729
+endif
+
 ifeq ($(BR2_PACKAGE_LIBGSM),y)
 LIBPJSIP_CONF_OPTS += \
        --enable-gsm-codec \