blob: 1218b688040e1dda3b48511fb7e43875cccdf8eb [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "Simple DirectMedia Layer image library v2"
2SECTION = "libs"
3
4LICENSE = "Zlib"
Brad Bishope42b3e32020-01-15 22:08:42 -05005LIC_FILES_CHKSUM = "file://COPYING.txt;md5=822edb694b20ff16ceef85b27f61c11f"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08006
7DEPENDS = "tiff zlib libpng jpeg virtual/libsdl2 libwebp"
8
9SRC_URI = "http://www.libsdl.org/projects/SDL_image/release/SDL2_image-${PV}.tar.gz"
Brad Bishope42b3e32020-01-15 22:08:42 -050010SRC_URI[md5sum] = "f26f3a153360a8f09ed5220ef7b07aea"
11SRC_URI[sha256sum] = "bdd5f6e026682f7d7e1be0b6051b209da2f402a2dd8bd1c4bd9c25ad263108d0"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012
13S = "${WORKDIR}/SDL2_image-${PV}"
14
15inherit autotools pkgconfig
16
17# Disable the run-time loading of the libs and bring back the soname dependencies.
18EXTRA_OECONF += "--disable-jpg-shared --disable-png-shared -disable-tif-shared"
19
Patrick Williams213cb262021-08-07 19:21:33 -050020do_configure:prepend() {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021 # make autoreconf happy
22 touch ${S}/NEWS ${S}/README ${S}/AUTHORS ${S}/ChangeLog
23 # Removing these files fixes a libtool version mismatch.
24 rm -f ${S}/acinclude/libtool.m4
25 rm -f ${S}/acinclude/sdl2.m4
26 rm -f ${S}/acinclude/pkg.m4
27 rm -f ${S}/acinclude/lt~obsolete.m4
28 rm -f ${S}/acinclude/ltoptions.m4
29 rm -f ${S}/acinclude/ltsugar.m4
30 rm -f ${S}/acinclude/ltversion.m4
31}