package/sdl2: allow wayland support to be enabled without X11

Commit 4662553088 ("package/sdl2: add wayland support") added an option to
enable wayland support but accidentally put the .mk logic inside the
BR2_PACKAGE_SDL2_X11, so it would only trigger if the X11 driver was
enabled.

Fix that by moving it outside the conditional.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard
2025-05-16 17:58:24 +02:00
parent 4662553088
commit 82575b3e52

View File

@@ -104,13 +104,6 @@ else
SDL2_CONF_OPTS += --disable-video-x11-xcursor
endif
ifeq ($(BR2_PACKAGE_SDL2_WAYLAND),y)
SDL2_DEPENDENCIES += libegl libxkbcommon wayland wayland-protocols
SDL2_CONF_OPTS += --enable-video-wayland
else
SDL2_CONF_OPTS += --disable-video-wayland
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXI),y)
SDL2_DEPENDENCIES += xlib_libXi
SDL2_CONF_OPTS += --enable-video-x11-xinput
@@ -136,6 +129,13 @@ else
SDL2_CONF_OPTS += --disable-video-x11 --without-x
endif
ifeq ($(BR2_PACKAGE_SDL2_WAYLAND),y)
SDL2_DEPENDENCIES += libegl libxkbcommon wayland wayland-protocols
SDL2_CONF_OPTS += --enable-video-wayland
else
SDL2_CONF_OPTS += --disable-video-wayland
endif
ifeq ($(BR2_PACKAGE_SDL2_OPENGL),y)
SDL2_CONF_OPTS += --enable-video-opengl
SDL2_DEPENDENCIES += libgl