Skip to contentSkip to conversation

package/libpjsip: add libsamplerate support

PATCH New Fabrice Fontaine 2 participants 2 messages Jan 22, 2020 – Jan 28, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libpjsip: add libsamplerate support

---
 package/libpjsip/libpjsip.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/libpjsip/libpjsip.mk +7 -1
index f5c51fadf3..2e6c5abf08 100644
@@ -36,7 +36,6 @@ LIBPJSIP_CONF_OPTS = \
 	--disable-g711-codec \
 	--disable-l16-codec \
 	--disable-g722-codec \
-	--disable-libsamplerate \
 	--disable-sdl \
 	--disable-ffmpeg \
 	--disable-v4l2 \
@@ -71,6 +70,13 @@ else
 LIBPJSIP_CONF_OPTS += --disable-ssl
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
+LIBPJSIP_DEPENDENCIES += libsamplerate
+LIBPJSIP_CONF_OPTS += --enable-libsamplerate
+else
+LIBPJSIP_CONF_OPTS += --disable-libsamplerate
+endif
+
 ifeq ($(BR2_PACKAGE_OPUS),y)
 LIBPJSIP_DEPENDENCIES += opus
 LIBPJSIP_CONF_OPTS += --with-opus=$(STAGING_DIR)/usr
Signature · 1 line
2.24.1