blob: 24f6affa296f4e23499fa52477e77be79911439c [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "PNG image format decoding library"
2HOMEPAGE = "http://www.libpng.org/"
3SECTION = "libs"
4LICENSE = "Libpng"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=bd2a7a13355fcca92ad83bdf7e296011 \
6 file://png.h;beginline=322;endline=436;md5=caf9ee541234c663aeecdcfef2f79ae1"
7DEPENDS = "zlib"
8
9PN = "libpng12"
10S = "${WORKDIR}/libpng-${PV}"
11
Patrick Williamsf1e5d692016-03-30 15:21:19 -050012SRC_URI = "${SOURCEFORGE_MIRROR}/project/libpng/libpng12/older-releases/${PV}/libpng-${PV}.tar.xz"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
14SRC_URI[md5sum] = "7d18a74e6fd2029aee76ccd00e00a9e6"
15SRC_URI[sha256sum] = "b45e49f689e7451bd576569e6a344f7e0d11c02ecbb797f4da0e431526765c0a"
16
17BINCONFIG_GLOB = "${PN}-config"
18
19inherit autotools binconfig pkgconfig
20
21do_install_append() {
22 # The follow link files link to corresponding png12*.h and libpng12* files
23 # They conflict with higher verison, so drop them
24 unlink ${D}/${includedir}/png.h
25 unlink ${D}/${includedir}/pngconf.h
26
27 unlink ${D}/${libdir}/libpng.la
28 unlink ${D}/${libdir}/libpng.so
29 unlink ${D}/${libdir}/libpng.a
30 unlink ${D}/${libdir}/pkgconfig/libpng.pc
31
32 unlink ${D}/${bindir}/libpng-config
33}