@@ -18,6 +18,22 @@ config BR2_PACKAGE_SDL2_DIRECTFB
comment "DirectFB video driver needs directfb"
depends on !BR2_PACKAGE_DIRECTFB
+config BR2_PACKAGE_SDL2_WAYLAND
+ bool "wayland video driver"
+ depends on BR2_PACKAGE_WAYLAND
+
+comment "wayland video driver needs wayland"
+ depends on !BR2_PACKAGE_WAYLAND
+
+config BR2_PACKAGE_SDL2_PULSEAUDIO
+ bool "pulseaudio support"
+ depends on BR2_PACKAGE_PULSEAUDIO
+ depends on BR2_PACKAGE_ALSA_LIB
+
+comment "pulseaudio support needs the pulseaudio and alsa packages"
+ depends on !BR2_PACKAGE_PULSEAUDIO
+ depends on !BR2_PACKAGE_ALSA_LIB
+
config BR2_PACKAGE_SDL2_X11
bool "X11 video driver"
depends on BR2_PACKAGE_XORG7
@@ -81,6 +81,20 @@ else
SDL2_CONF_OPTS += --disable-video-directfb
endif
+ifeq ($(BR2_PACKAGE_SDL2_WAYLAND),y)
+SDL2_DEPENDENCIES += wayland
+SDL2_CONF_OPTS += --enable-video-wayland
+else
+SDL2_CONF_OPTS += --disable-video-wayland
+endif
+
+ifeq ($(BR2_PACKAGE_SDL2_PULSEAUDIO),y)
+SDL2_DEPENDENCIES += pulseaudio
+SDL2_CONF_OPTS += --enable-pulseaudio
+else
+SDL2_CONF_OPTS += --disable-pulseaudio
+endif
+
ifeq ($(BR2_PACKAGE_SDL2_OPENGLES)$(BR2_PACKAGE_RPI_USERLAND),yy)
SDL2_DEPENDENCIES += rpi-userland
SDL2_CONF_OPTS += --enable-video-rpi
@@ -181,4 +195,11 @@ else
SDL2_CONF_OPTS += --disable-video-kmsdrm
endif
+ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV),y)
+SDL2_DEPENDENCIES += libdrm_etnaviv
+SDL2_CONF_OPTS += --enable-video-vivante
+else
+SDL2_CONF_OPTS += --disable-video-vivante
+endif
+
$(eval $(autotools-package))
Add support for building SDL2 with the following enabled as either optional or detected: - Wayland video support, enables running SDL2 applications under pure wayland desktops/compositors - Vivante video device support, this enables SDL2 to run on devices using this video chip without a full desktop (much like KMS/DRM) - Pulseaudio support, this solves an ancient issue that still occurs in some cases. Described at: http://forums.libsdl.org/viewtopic.php?t=7609&sid=40fdb9756b8e22e1b8253cda3338845f Signed-off-by: Luke D. Jones <luke@ljones.dev> --- package/sdl2/Config.in | 16 ++++++++++++++++ package/sdl2/sdl2.mk | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+)