From aed4e7d160fd5ad87fa285bc5c1dff80881625d2 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 19 Jan 2020 10:52:50 +0100 Subject: [PATCH] package/libpjsip: add opus support Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/libpjsip/libpjsip.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk index 6432954428..f5c51fadf3 100644 --- a/package/libpjsip/libpjsip.mk +++ b/package/libpjsip/libpjsip.mk @@ -32,7 +32,6 @@ LIBPJSIP_CONF_OPTS = \ --disable-g7221-codec \ --disable-ilbc-codec \ --disable-libwebrtc \ - --disable-opus \ --disable-ext-sound \ --disable-g711-codec \ --disable-l16-codec \ @@ -72,6 +71,13 @@ else LIBPJSIP_CONF_OPTS += --disable-ssl endif +ifeq ($(BR2_PACKAGE_OPUS),y) +LIBPJSIP_DEPENDENCIES += opus +LIBPJSIP_CONF_OPTS += --with-opus=$(STAGING_DIR)/usr +else +LIBPJSIP_CONF_OPTS += --disable-opus +endif + ifeq ($(BR2_PACKAGE_SPEEX)$(BR2_PACKAGE_SPEEXDSP),yy) LIBPJSIP_CONF_OPTS += \ --enable-speex-aec \ -- 2.30.2