Skip to contentSkip to conversation

package/libpjsip: add sdl2 support

PATCH New Fabrice Fontaine 2 participants 2 messages Feb 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libpjsip: add sdl2 support

---
 package/libpjsip/libpjsip.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/libpjsip/libpjsip.mk +7 -1
index 655ab4498c..7736a005af 100644
@@ -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 \
Signature · 1 line
2.24.1