xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/gd/gd_2.3.3.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "gd is a library used to create PNG, JPEG, or WBMP images"
2*4882a593SmuzhiyunDESCRIPTION = "The gd graphics library allows your code to quickly draw images \
3*4882a593Smuzhiyuncomplete with lines, arcs, text, multiple colors, cut and paste from other \
4*4882a593Smuzhiyunimages, and flood fills, and to write out the result as a PNG or JPEG file. \
5*4882a593SmuzhiyunThis is particularly useful in Web applications, where PNG and JPEG are two \
6*4882a593Smuzhiyunof the formats accepted for inline images by most browsers. Note that gd is not \
7*4882a593Smuzhiyuna paint program."
8*4882a593SmuzhiyunHOMEPAGE = "http://libgd.github.io/"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSECTION = "libs"
11*4882a593SmuzhiyunLICENSE = "GD"
12*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=ace63adfdac78400fc30fa22ee9c1bb1"
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunDEPENDS = "freetype libpng jpeg zlib tiff"
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunSRC_URI = "git://github.com/libgd/libgd.git;nobranch=1;protocol=https \
17*4882a593Smuzhiyun           file://0001-Fix-deprecared-function-prototypes.patch \
18*4882a593Smuzhiyun           "
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunSRCREV = "b5319a41286107b53daa0e08e402aa1819764bdc"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunS = "${WORKDIR}/git"
23*4882a593Smuzhiyun
24*4882a593Smuzhiyuninherit autotools binconfig gettext pkgconfig
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunEXTRA_OECONF += " --disable-rpath \
27*4882a593Smuzhiyun                  --with-jpeg=${STAGING_LIBDIR}/.. \
28*4882a593Smuzhiyun                  --with-freetype=yes \
29*4882a593Smuzhiyun                  --without-fontconfig \
30*4882a593Smuzhiyun                  --without-webp \
31*4882a593Smuzhiyun                  --without-xpm \
32*4882a593Smuzhiyun                  --without-x \
33*4882a593Smuzhiyun                "
34*4882a593Smuzhiyun
35*4882a593SmuzhiyunEXTRA_OEMAKE = 'LDFLAGS="${LDFLAGS}"'
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunDEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized"
38*4882a593Smuzhiyun
39*4882a593Smuzhiyundo_install:append:class-target() {
40*4882a593Smuzhiyun    # cleanup buildpaths from gdlib.pc
41*4882a593Smuzhiyun    sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/gdlib.pc
42*4882a593Smuzhiyun}
43*4882a593Smuzhiyun
44*4882a593SmuzhiyunPACKAGES += "${PN}-tools"
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunFILES:${PN} = "${libdir}/lib*${SOLIBS}"
47*4882a593SmuzhiyunFILES:${PN}-tools = "${bindir}/*"
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunPROVIDES += "${PN}-tools"
50*4882a593SmuzhiyunRPROVIDES:${PN}-tools = "${PN}-tools"
51*4882a593SmuzhiyunRDEPENDS:${PN}-tools = "perl perl-module-strict"
52*4882a593Smuzhiyun
53*4882a593SmuzhiyunCVE_PRODUCT = "libgd"
54*4882a593Smuzhiyun
55*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
56