package/libpjsip: add libsamplerate support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 22 Jan 2020 19:29:44 +0000 (20:29 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 28 Jan 2020 15:01:25 +0000 (16:01 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libpjsip/libpjsip.mk

index f5c51fadf3bde1a3666b9d6261a63182adb05b06..2e6c5abf08afe790e262cb1096b541b2894e0a6f 100644 (file)
@@ -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