@@ -20,6 +20,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_SPEEX
+ bool "Speex codec"
+ select BR2_PACKAGE_SPEEX
+
endif # BR2_PACKAGE_LIBPJSIP
comment "libpjsip needs a toolchain w/ C++, threads"
@@ -26,8 +26,6 @@ LIBPJSIP_CONF_ENV = \
LIBPJSIP_CONF_OPTS = \
--disable-sound \
- --disable-speex-codec \
- --disable-speex-aec \
--disable-resample \
--disable-video \
--disable-opencore-amr \
@@ -78,4 +76,11 @@ else
LIBPJSIP_CONF_OPTS += --disable-gsm-codec
endif
+ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX),y)
+LIBPJSIP_DEPENDENCIES += speex
+LIBPJSIP_CONF_OPTS += --with-external-speex
+else
+LIBPJSIP_CONF_OPTS += --disable-speex-codec --disable-speex-aec
+endif
+
$(eval $(autotools-package))
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- package/libpjsip/Config.in | 4 ++++ package/libpjsip/libpjsip.mk | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-)