Skip to contentSkip to conversation

package/libpjsip: add opus support

PATCH New Fabrice Fontaine 2 participants 2 messages Jan 19, 2020 – Jan 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libpjsip: add opus support

---
 package/libpjsip/libpjsip.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/libpjsip/libpjsip.mk +7 -1
index 6432954428..f5c51fadf3 100644
@@ -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 \
Signature · 1 line
2.24.1