Skip to contentSkip to conversation

package/libpjsip: add opencore-amr support

PATCH New Fabrice Fontaine 2 participants 2 messages Jan 28, 2020 – Jan 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libpjsip: add opencore-amr support

---
 package/libpjsip/libpjsip.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/libpjsip/libpjsip.mk +7 -1
index 2e6c5abf08..84919fdc10 100644
@@ -28,7 +28,6 @@ LIBPJSIP_CONF_OPTS = \
 	--disable-sound \
 	--disable-resample \
 	--disable-video \
-	--disable-opencore-amr \
 	--disable-g7221-codec \
 	--disable-ilbc-codec \
 	--disable-libwebrtc \
@@ -77,6 +76,13 @@ else
 LIBPJSIP_CONF_OPTS += --disable-libsamplerate
 endif
 
+ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y)
+LIBPJSIP_DEPENDENCIES += opencore-amr
+LIBPJSIP_CONF_OPTS += --with-opencore-amr=$(STAGING_DIR)/usr
+else
+LIBPJSIP_CONF_OPTS += --disable-opencore-amr
+endif
+
 ifeq ($(BR2_PACKAGE_OPUS),y)
 LIBPJSIP_DEPENDENCIES += opus
 LIBPJSIP_CONF_OPTS += --with-opus=$(STAGING_DIR)/usr
Signature · 1 line
2.24.1