aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2018-10-14 11:02:00 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-12-16 21:20:34 +0100
commit0fcff1c6c8d92aa7d673b98260820f14d9ee4d46 (patch)
tree14b3c0393dddb58d043ab76cca06a52014a3677e
parenta97c460a8724c6a56f9550cdf57d3dae14638711 (diff)
downloadbuildroot-0fcff1c6c8d92aa7d673b98260820f14d9ee4d46.tar.gz
buildroot-0fcff1c6c8d92aa7d673b98260820f14d9ee4d46.tar.bz2
package/libpjsip: add optional dependency on libgsm
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 94e7a91092781dbb7cf882f155358334bef1e368) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libpjsip/libpjsip.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk
index f4a57965b8..22b922586c 100644
--- a/package/libpjsip/libpjsip.mk
+++ b/package/libpjsip/libpjsip.mk
@@ -26,7 +26,6 @@ LIBPJSIP_CONF_ENV = \
LIBPJSIP_CONF_OPTS = \
--disable-sound \
- --disable-gsm-codec \
--disable-resample \
--disable-video \
--disable-opencore-amr \
@@ -54,6 +53,16 @@ LIBPJSIP_CONF_OPTS = \
# so we want to use it.
LIBPJSIP_CONF_OPTS += --enable-epoll
+ifeq ($(BR2_PACKAGE_LIBGSM),y)
+LIBPJSIP_CONF_OPTS += \
+ --enable-gsm-codec \
+ --with-external-gsm
+LIBPJSIP_DEPENDENCIES += libgsm
+else
+LIBPJSIP_CONF_OPTS += \
+ --disable-gsm-codec
+endif
+
ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
LIBPJSIP_DEPENDENCIES += libopenssl
LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr