1*4882a593SmuzhiyunSUMMARY = "Simple DirectMedia Layer image library v2" 2*4882a593SmuzhiyunSECTION = "libs" 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunLICENSE = "Zlib" 5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING.txt;md5=822edb694b20ff16ceef85b27f61c11f" 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunDEPENDS = "tiff zlib libpng jpeg virtual/libsdl2 libwebp" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunSRC_URI = "http://www.libsdl.org/projects/SDL_image/release/SDL2_image-${PV}.tar.gz" 10*4882a593SmuzhiyunSRC_URI[md5sum] = "f26f3a153360a8f09ed5220ef7b07aea" 11*4882a593SmuzhiyunSRC_URI[sha256sum] = "bdd5f6e026682f7d7e1be0b6051b209da2f402a2dd8bd1c4bd9c25ad263108d0" 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunS = "${WORKDIR}/SDL2_image-${PV}" 14*4882a593Smuzhiyun 15*4882a593Smuzhiyuninherit autotools pkgconfig 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun# Disable the run-time loading of the libs and bring back the soname dependencies. 18*4882a593SmuzhiyunEXTRA_OECONF += "--disable-jpg-shared --disable-png-shared -disable-tif-shared" 19*4882a593Smuzhiyun 20*4882a593Smuzhiyundo_configure:prepend() { 21*4882a593Smuzhiyun # make autoreconf happy 22*4882a593Smuzhiyun touch ${S}/NEWS ${S}/README ${S}/AUTHORS ${S}/ChangeLog 23*4882a593Smuzhiyun # Removing these files fixes a libtool version mismatch. 24*4882a593Smuzhiyun rm -f ${S}/acinclude/libtool.m4 25*4882a593Smuzhiyun rm -f ${S}/acinclude/sdl2.m4 26*4882a593Smuzhiyun rm -f ${S}/acinclude/pkg.m4 27*4882a593Smuzhiyun rm -f ${S}/acinclude/lt~obsolete.m4 28*4882a593Smuzhiyun rm -f ${S}/acinclude/ltoptions.m4 29*4882a593Smuzhiyun rm -f ${S}/acinclude/ltsugar.m4 30*4882a593Smuzhiyun rm -f ${S}/acinclude/ltversion.m4 31*4882a593Smuzhiyun} 32