]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libsdl2: fix PACKAGECONFIG for libusb
authorMarkus Volk <f_l_k@t-online.de>
Wed, 5 Mar 2025 16:55:59 +0000 (17:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2025 10:09:58 +0000 (10:09 +0000)
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 <f_l_k@t-online.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-graphics/libsdl2/libsdl2_2.32.2.bb

index dbe8e0c812e85c4a61c1d7e0ae0618dc2eb40136..2b28b3dfa9941414c69262e05530f5ad5be909a5 100644 (file)
@@ -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"