Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 1 | SUMMARY = "PNG image format decoding library" |
| 2 | HOMEPAGE = "http://www.libpng.org/" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "Libpng" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e7f289af309d98b46321d0f9892def16 \ |
| 6 | file://png.h;beginline=19;endline=109;md5=10c940148fe379a535b310c1c54e609c" |
| 7 | DEPENDS = "zlib" |
| 8 | |
| 9 | PN = "libpng12" |
| 10 | S = "${WORKDIR}/libpng-${PV}" |
| 11 | |
| 12 | SRC_URI = "${GENTOO_MIRROR}/libpng-${PV}.tar.xz" |
| 13 | |
| 14 | SRC_URI[md5sum] = "868562bd1c58b76ed8703f135a2e439a" |
| 15 | SRC_URI[sha256sum] = "24ce54581468b937734a6ecc86f7e121bc46a90d76a0d948dca08f32ee000dbe" |
| 16 | |
| 17 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libpng/files/libpng12/" |
| 18 | UPSTREAM_CHECK_REGEX = "/libpng12/(?P<pver>(\d+[\.\-_]*)+)/" |
| 19 | |
| 20 | BINCONFIG_GLOB = "${PN}-config" |
| 21 | |
| 22 | inherit autotools binconfig pkgconfig |
| 23 | |
| 24 | do_install_append() { |
| 25 | # The follow link files link to corresponding png12*.h and libpng12* files |
| 26 | # They conflict with higher verison, so drop them |
| 27 | unlink ${D}/${includedir}/png.h |
| 28 | unlink ${D}/${includedir}/pngconf.h |
| 29 | |
| 30 | unlink ${D}/${libdir}/libpng.la |
| 31 | unlink ${D}/${libdir}/libpng.so |
| 32 | unlink ${D}/${libdir}/libpng.a || true |
| 33 | unlink ${D}/${libdir}/pkgconfig/libpng.pc |
| 34 | |
| 35 | unlink ${D}/${bindir}/libpng-config |
| 36 | } |