blob: 0a346bd9e6cad428255753b372b953a6dd877aa6 [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
20do_configure_prepend() {
21 # 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}