libsdl2-compat: make mutually exclusive with libsdl2

libsdl2 and libsdl2-compat share the same headers.
Therefore, using one or the other is an either-or decision

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk
2025-04-21 11:48:31 +02:00
committed by Khem Raj
parent b00d8a0b46
commit 280da6a65e
@@ -16,8 +16,13 @@ S = "${WORKDIR}/sdl2-compat-${PV}"
DEPENDS += "libsdl3"
PROVIDES = "libsdl2"
inherit cmake pkgconfig upstream-version-is-even features_check
REQUIRED_DISTRO_FEATURES = "opengl x11"
FILES:${PN} += "${datadir}/licenses"
RCONFLICTS:${PN} = "libsdl2"
RPROVIDES:${PN} = "libsdl2"