xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-image_1.2.12.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Simple DirectMedia Layer image library"
2*4882a593SmuzhiyunSECTION = "libs"
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunLICENSE = "Zlib"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=613734b7586e1580ef944961c6d62227"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunDEPENDS = "tiff zlib libpng jpeg virtual/libsdl"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRC_URI = "http://www.libsdl.org/projects/SDL_image/release/SDL_image-${PV}.tar.gz \
10*4882a593Smuzhiyun           file://configure.patch"
11*4882a593SmuzhiyunSRC_URI[md5sum] = "a0f9098ebe5400f0bdc9b62e60797ecb"
12*4882a593SmuzhiyunSRC_URI[sha256sum] = "0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699"
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunS = "${WORKDIR}/SDL_image-${PV}"
15*4882a593Smuzhiyun
16*4882a593Smuzhiyuninherit autotools pkgconfig
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunexport SDL_CONFIG = "${STAGING_BINDIR_CROSS}/sdl-config"
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun# Disable the run-time loading of the libs and bring back the soname dependencies.
21*4882a593SmuzhiyunEXTRA_OECONF += "--disable-jpg-shared --disable-png-shared -disable-tif-shared"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyundo_configure:prepend() {
24*4882a593Smuzhiyun    # Removing these files fixes a libtool version mismatch.
25*4882a593Smuzhiyun    rm -f ${S}/acinclude/libtool.m4
26*4882a593Smuzhiyun    rm -f ${S}/acinclude/sdl.m4
27*4882a593Smuzhiyun    rm -f ${S}/acinclude/pkg.m4
28*4882a593Smuzhiyun    rm -f ${S}/acinclude/lt~obsolete.m4
29*4882a593Smuzhiyun    rm -f ${S}/acinclude/ltoptions.m4
30*4882a593Smuzhiyun    rm -f ${S}/acinclude/ltsugar.m4
31*4882a593Smuzhiyun    rm -f ${S}/acinclude/ltversion.m4
32*4882a593Smuzhiyun}
33