summaryrefslogtreecommitdiffstats
path: root/meta/recipes-lsb4/libpng/libpng12_1.2.57.bb
blob: 9f74f5fdb5ab5e9ce92fd88ac531f9a073ec801c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
SUMMARY = "PNG image format decoding library"
HOMEPAGE = "http://www.libpng.org/"
SECTION = "libs"
LICENSE = "Libpng"
LIC_FILES_CHKSUM = "file://LICENSE;md5=597b8a91994a3e27ae6aa79bf02677d9 \
                    file://png.h;beginline=19;endline=109;md5=166406397718925b660f0033f7558ef7"
DEPENDS = "zlib"

PN = "libpng12"
S = "${WORKDIR}/libpng-${PV}"

SRC_URI = "${GENTOO_MIRROR}/libpng-${PV}.tar.xz"

SRC_URI[md5sum] = "307052e5e8af97b82b17b64fb1b3677a"
SRC_URI[sha256sum] = "0f4620e11fa283fedafb474427c8e96bf149511a1804bdc47350963ae5cf54d8"

UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libpng/files/libpng12/"
UPSTREAM_CHECK_REGEX = "/libpng12/(?P<pver>(\d+[\.\-_]*)+)/"

BINCONFIG_GLOB = "${PN}-config"

inherit autotools binconfig pkgconfig

do_install_append() {
	# The follow link files link to corresponding png12*.h and libpng12* files
	# They conflict with higher verison, so drop them
	rm ${D}/${includedir}/png.h
	rm ${D}/${includedir}/pngconf.h

	rm ${D}/${libdir}/libpng.la
	rm ${D}/${libdir}/libpng.so
	rm ${D}/${libdir}/libpng.a || true
	rm ${D}/${libdir}/pkgconfig/libpng.pc

	rm ${D}/${bindir}/libpng-config
}