package/libpjsip: add sdl2 support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 2 Feb 2020 16:30:03 +0000 (17:30 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 2 Feb 2020 20:09:45 +0000 (21:09 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libpjsip/libpjsip.mk

index 655ab4498c7a8e8344aeac2e702beb6c26d134ec..7736a005afcb2e31bf624e7171095048b226319d 100644 (file)
@@ -33,7 +33,6 @@ LIBPJSIP_CONF_OPTS = \
        --disable-g711-codec \
        --disable-l16-codec \
        --disable-g722-codec \
-       --disable-sdl \
        --disable-ffmpeg \
        --disable-ipp \
        --disable-silk \
@@ -122,6 +121,13 @@ else
 LIBPJSIP_CONF_OPTS += --disable-opus
 endif
 
+ifeq ($(BR2_PACKAGE_SDL2),y)
+LIBPJSIP_DEPENDENCIES += sdl2
+LIBPJSIP_CONF_OPTS += --with-sdl=$(STAGING_DIR)/usr
+else
+LIBPJSIP_CONF_OPTS += --disable-sdl
+endif
+
 ifeq ($(BR2_PACKAGE_SPEEX)$(BR2_PACKAGE_SPEEXDSP),yy)
 LIBPJSIP_CONF_OPTS += \
        --enable-speex-aec \