package/libpjsip: add opus support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 19 Jan 2020 09:52:50 +0000 (10:52 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 20 Jan 2020 21:49:22 +0000 (22:49 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libpjsip/libpjsip.mk

index 6432954428af0703805dd8a32d6ba9107e835a71..f5c51fadf3bde1a3666b9d6261a63182adb05b06 100644 (file)
@@ -32,7 +32,6 @@ LIBPJSIP_CONF_OPTS = \
        --disable-g7221-codec \
        --disable-ilbc-codec \
        --disable-libwebrtc \
-       --disable-opus \
        --disable-ext-sound \
        --disable-g711-codec \
        --disable-l16-codec \
@@ -72,6 +71,13 @@ else
 LIBPJSIP_CONF_OPTS += --disable-ssl
 endif
 
+ifeq ($(BR2_PACKAGE_OPUS),y)
+LIBPJSIP_DEPENDENCIES += opus
+LIBPJSIP_CONF_OPTS += --with-opus=$(STAGING_DIR)/usr
+else
+LIBPJSIP_CONF_OPTS += --disable-opus
+endif
+
 ifeq ($(BR2_PACKAGE_SPEEX)$(BR2_PACKAGE_SPEEXDSP),yy)
 LIBPJSIP_CONF_OPTS += \
        --enable-speex-aec \