From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sat, 9 Sep 2017 23:39:43 +0200 Subject: [Buildroot] [PATCH 37/49 v2] package/libpjsip: add option to enable SPEEX codec In-Reply-To: References: Message-ID: <93c7f76f8f304965305ea381cb33bfb89d6754eb.1504993178.git.yann.morin.1998@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Signed-off-by: "Yann E. MORIN" --- package/libpjsip/Config.in | 4 ++++ package/libpjsip/libpjsip.mk | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in index ce15a20567..0bb446e9d9 100644 --- a/package/libpjsip/Config.in +++ b/package/libpjsip/Config.in @@ -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" diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk index 9b25dad2f8..1259a292e4 100644 --- a/package/libpjsip/libpjsip.mk +++ b/package/libpjsip/libpjsip.mk @@ -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 \ @@ -82,4 +80,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)) -- 2.11.0