From: Fabrice Fontaine Date: Tue, 28 Jan 2020 22:22:41 +0000 (+0100) Subject: package/libpjsip: add opencore-amr support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dfef9faa72c04bf2f5a62f8dedf7766590440e5;p=buildroot.git package/libpjsip: add opencore-amr support Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk index 2e6c5abf08..84919fdc10 100644 --- a/package/libpjsip/libpjsip.mk +++ b/package/libpjsip/libpjsip.mk @@ -28,7 +28,6 @@ LIBPJSIP_CONF_OPTS = \ --disable-sound \ --disable-resample \ --disable-video \ - --disable-opencore-amr \ --disable-g7221-codec \ --disable-ilbc-codec \ --disable-libwebrtc \ @@ -77,6 +76,13 @@ else LIBPJSIP_CONF_OPTS += --disable-libsamplerate endif +ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y) +LIBPJSIP_DEPENDENCIES += opencore-amr +LIBPJSIP_CONF_OPTS += --with-opencore-amr=$(STAGING_DIR)/usr +else +LIBPJSIP_CONF_OPTS += --disable-opencore-amr +endif + ifeq ($(BR2_PACKAGE_OPUS),y) LIBPJSIP_DEPENDENCIES += opus LIBPJSIP_CONF_OPTS += --with-opus=$(STAGING_DIR)/usr