From: Adam Duskett <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [NEXT v3 6/8] libpjsip: add codecs with dependencies
Date: Mon, 20 Nov 2017 13:09:03 -0500 [thread overview]
Message-ID: <20171120180905.5903-6-aduskett@gmail.com> (raw)
In-Reply-To: <20171120180905.5903-1-aduskett@gmail.com>
Add all supported codecs that rely on external dependencies. These codecs are:
- bcg729
- gsm
- opus
- speex
- opencore-amr
Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
Changes v1 -> v2:
- Combine all codecs with external dependencies into a single patch.
Changes v2 -> v3:
- Add opencore-amr codec.
package/libpjsip/Config.in | 26 ++++++++++++++++++++++++++
package/libpjsip/libpjsip.mk | 40 +++++++++++++++++++++++++++++++++++-----
2 files changed, 61 insertions(+), 5 deletions(-)
diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in
index 7fb5a87..64e0257 100644
--- a/package/libpjsip/Config.in
+++ b/package/libpjsip/Config.in
@@ -61,6 +61,32 @@ config BR2_PACKAGE_LIBPJSIP_CODEC_ILBC
config BR2_PACKAGE_LIBPJSIP_CODEC_L16
bool "L16"
+comment "Codecs with external dependencies"
+
+config BR2_PACKAGE_LIBPJSIP_CODEC_BCG729
+ bool "BCG729"
+ select BR2_PACKAGE_BCG729
+
+config BR2_PACKAGE_LIBPJSIP_CODEC_GSM
+ bool "GSM"
+ depends on !BR2_STATIC_LIBS # libgsm
+ select BR2_PACKAGE_LIBGSM
+
+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
+
+config BR2_PACKAGE_LIBPJSIP_CODEC_OPUS
+ bool "Opus"
+ select BR2_PACKAGE_OPUS
+
+config BR2_PACKAGE_LIBPJSIP_CODEC_SPEEX
+ bool "Speex"
+ 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 48edf62..d16d060 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -25,13 +25,8 @@ LIBPJSIP_CONF_ENV = \
CFLAGS="$(LIBPJSIP_CFLAGS)"
LIBPJSIP_CONF_OPTS = \
- --disable-gsm-codec \
- --disable-speex-codec \
- --disable-speex-aec \
--disable-resample \
- --disable-opencore-amr \
--disable-libwebrtc \
- --disable-opus \
--disable-oss \
--disable-ext-sound \
--disable-libsamplerate \
@@ -118,4 +113,39 @@ ifneq ($(BR2_PACKAGE_LIBPJSIP_CODEC_L16),y)
LIBPJSIP_CONF_OPTS += --disable-l16-codec
endif
+# Codecs with external dependencies
+ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_BCG729),y)
+LIBPJSIP_DEPENDENCIES += bcg729
+LIBPJSIP_CONF_OPTS += --with-bcg729=$(STAGING_DIR)/usr
+else
+LIBPJSIP_CONF_OPTS += --disable-bcg729
+endif
+
+ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_GSM),y)
+LIBPJSIP_DEPENDENCIES += libgsm
+LIBPJSIP_CONF_OPTS += --with-external-gsm
+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
+
+ifeq ($(BR2_PACKAGE_LIBPJSIP_CODEC_OPUS),y)
+LIBPJSIP_DEPENDENCIES += opus
+else
+LIBPJSIP_CONF_OPTS += --disable-opus
+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.13.6
next prev parent reply other threads:[~2017-11-20 18:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-20 18:08 [Buildroot] [NEXT v3 1/8] libpjsip: add alsa option Adam Duskett
2017-11-20 18:08 ` [Buildroot] [NEXT v3 2/8] libpjsip: add portaudio option Adam Duskett
2017-11-20 18:09 ` [Buildroot] [NEXT v3 3/8] libpjsip: enable ffmpeg support Adam Duskett
2017-11-20 18:09 ` [Buildroot] [NEXT v3 4/8] libpjsip: enable v4l2 support Adam Duskett
2017-11-20 18:09 ` [Buildroot] [NEXT v3 5/8] libpjsip: add dependency-less codecs Adam Duskett
2017-11-20 18:09 ` Adam Duskett [this message]
2017-11-20 18:09 ` [Buildroot] [NEXT v3 7/8] libpjsip: enable libsamplerate Adam Duskett
2017-11-20 18:09 ` [Buildroot] [NEXT v3 8/8] libpjsip: enable resample Adam Duskett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171120180905.5903-6-aduskett@gmail.com \
--to=aduskett@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox