Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Simple DirectMedia Layer image library v2" |
| 2 | SECTION = "libs" |
| 3 | |
| 4 | LICENSE = "Zlib" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=822edb694b20ff16ceef85b27f61c11f" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 6 | |
| 7 | DEPENDS = "tiff zlib libpng jpeg virtual/libsdl2 libwebp" |
| 8 | |
| 9 | SRC_URI = "http://www.libsdl.org/projects/SDL_image/release/SDL2_image-${PV}.tar.gz" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 10 | SRC_URI[md5sum] = "f26f3a153360a8f09ed5220ef7b07aea" |
| 11 | SRC_URI[sha256sum] = "bdd5f6e026682f7d7e1be0b6051b209da2f402a2dd8bd1c4bd9c25ad263108d0" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/SDL2_image-${PV}" |
| 14 | |
| 15 | inherit autotools pkgconfig |
| 16 | |
| 17 | # Disable the run-time loading of the libs and bring back the soname dependencies. |
| 18 | EXTRA_OECONF += "--disable-jpg-shared --disable-png-shared -disable-tif-shared" |
| 19 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | do_configure:prepend() { |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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 | } |