From e93bc2876fb3ee488a5bc6ed03eefd1bfdcdf69a Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 5 Mar 2025 17:55:59 +0100 Subject: [PATCH] libsdl2: fix PACKAGECONFIG for libusb libusb is required to support some older low level input devices. Meanwhile this is guarded by an option: SDL_HIDAPI_LIBUSB Use it for the PACKAGECONFIG to allow build with libusb support again Signed-off-by: Markus Volk Signed-off-by: Mathieu Dubois-Briand --- meta/recipes-graphics/libsdl2/libsdl2_2.32.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.32.2.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.32.2.bb index dbe8e0c812e..2b28b3dfa99 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.32.2.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.32.2.bb @@ -70,7 +70,7 @@ PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/lib PACKAGECONFIG[libsamplerate] = "-DSDL_LIBSAMPLERATE=ON,-DSDL_LIBSAMPLERATE=OFF,libsamplerate0" # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers, # so we'll just use libusb when it's available. -PACKAGECONFIG[libusb] = ",,libusb1" +PACKAGECONFIG[libusb] = "-DSDL_HIDAPI_LIBUSB=ON,-DSDL_HIDAPI_LIBUSB=OFF,libusb1" PACKAGECONFIG[libdecor] = "-DSDL_WAYLAND_LIBDECOR=ON,-DSDL_WAYLAND_LIBDECOR=OFF,libdecor,libdecor" PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl" PACKAGECONFIG[pipewire] = "-DSDL_PIPEWIRE_SHARED=ON,-DSDL_PIPEWIRE_SHARED=OFF,pipewire" -- 2.47.3