1SUMMARY = "gd is a library used to create PNG, JPEG, or WBMP images" 2DESCRIPTION = "The gd graphics library allows your code to quickly draw images \ 3complete with lines, arcs, text, multiple colors, cut and paste from other \ 4images, and flood fills, and to write out the result as a PNG or JPEG file. \ 5This is particularly useful in Web applications, where PNG and JPEG are two \ 6of the formats accepted for inline images by most browsers. Note that gd is not \ 7a paint program." 8HOMEPAGE = "http://libgd.github.io/" 9 10SECTION = "libs" 11LICENSE = "GD" 12LIC_FILES_CHKSUM = "file://COPYING;md5=ace63adfdac78400fc30fa22ee9c1bb1" 13 14DEPENDS = "freetype libpng jpeg zlib tiff" 15 16SRC_URI = "git://github.com/libgd/libgd.git;nobranch=1;protocol=https \ 17 file://0001-Fix-deprecared-function-prototypes.patch \ 18 " 19 20SRCREV = "b5319a41286107b53daa0e08e402aa1819764bdc" 21 22S = "${WORKDIR}/git" 23 24inherit autotools binconfig gettext pkgconfig 25 26EXTRA_OECONF += " --disable-rpath \ 27 --with-jpeg=${STAGING_LIBDIR}/.. \ 28 --with-freetype=yes \ 29 --without-fontconfig \ 30 --without-webp \ 31 --without-xpm \ 32 --without-x \ 33 " 34 35EXTRA_OEMAKE = 'LDFLAGS="${LDFLAGS}"' 36 37DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized" 38 39do_install:append:class-target() { 40 # cleanup buildpaths from gdlib.pc 41 sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/gdlib.pc 42} 43 44PACKAGES += "${PN}-tools" 45 46FILES:${PN} = "${libdir}/lib*${SOLIBS}" 47FILES:${PN}-tools = "${bindir}/*" 48 49PROVIDES += "${PN}-tools" 50RPROVIDES:${PN}-tools = "${PN}-tools" 51RDEPENDS:${PN}-tools = "perl perl-module-strict" 52 53CVE_PRODUCT = "libgd" 54 55BBCLASSEXTEND = "native nativesdk" 56