@@ -49,6 +49,10 @@ config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
comment "GSM codec needs a toolchain w/ shared libraries"
depends on BR2_STATIC_LIBS
+config BR2_PACKAGE_LIBPJSIP_CODEC_OPENCORE_AMR
+ bool "Opencore-amr"
+ select BR2_PACKAGE_OPENCORE_AMR
+
endif #BR2_PACKAGE_LIBPJSIP
comment "libpjsip needs a toolchain w/ C++, threads"
@@ -29,7 +29,6 @@ LIBPJSIP_CONF_OPTS = \
--disable-speex-aec \
--disable-resample \
--disable-video \
- --disable-opencore-amr \
--disable-libwebrtc \
--disable-opus \
--disable-oss \
@@ -109,4 +108,11 @@ else
LIBPJSIP_CONF_OPTS += --disable-gsm-codec
endif
+ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_OPENCORE_AMR),y)
+LIBPJSIP_DEPENDENCIES += opencore-amr
+LIBPJSIP_CONF_OPTS += --with-opencore-amr
+else
+LIBPJSIP_CONF_OPTS += --disable-opencore-amr
+endif
+
$(eval $(autotools-package))
Signed-off-by: Adam Duskett <aduskett@gmail.com> --- Changes v1 -> v4: - Add each codec with a dependency as a seperate patch. package/libpjsip/Config.in | 4 ++++ package/libpjsip/libpjsip.mk | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-)