libsdl2-image: build with cmake

This allows to use with libsdl2-compat

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:26 +02:00
committed by Khem Raj
parent 4c811a14dd
commit 54e52f0681
@@ -11,20 +11,6 @@ SRC_URI[sha256sum] = "2213b56fdaff2220d0e38c8e420cbe1a83c87374190cba8c70af215609
S = "${WORKDIR}/SDL2_image-${PV}"
inherit autotools pkgconfig
inherit cmake pkgconfig
# Disable the run-time loading of the libs and bring back the soname dependencies.
EXTRA_OECONF += "--disable-jpg-shared --disable-png-shared -disable-tif-shared"
do_configure:prepend() {
# make autoreconf happy
touch ${S}/NEWS ${S}/README ${S}/AUTHORS ${S}/ChangeLog
# Removing these files fixes a libtool version mismatch.
rm -f ${S}/acinclude/libtool.m4
rm -f ${S}/acinclude/sdl2.m4
rm -f ${S}/acinclude/pkg.m4
rm -f ${S}/acinclude/lt~obsolete.m4
rm -f ${S}/acinclude/ltoptions.m4
rm -f ${S}/acinclude/ltsugar.m4
rm -f ${S}/acinclude/ltversion.m4
}
FILES:${PN} += "${datadir}/licenses"