summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/zlib/zlib_1.2.5.bb
blob: b5756d9424b474229ccf3f02ba452bf587c96551 (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
37
38
39
40
41
SUMMARY = "Zlib Compression Library"
DESCRIPTION = "Zlib is a general-purpose, patent-free, lossless data compression \
library which is used by many different programs."
HOMEPAGE = "http://zlib.net/"
SECTION = "libs"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=084e9c30e4e6272c3b057b13c6467f3d"

DEPENDS = "libtool-cross"
PR = "r3"

SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \
           file://configure.ac \
           file://Makefile.am \
           file://fix.inverted.LFS.logic.patch"

SRC_URI[md5sum] = "be1e89810e66150f5b0327984d8625a0"
SRC_URI[sha256sum] = "239aead2f22f16bfcfa6a6a5150dcbd6d6f2e4d1eaa8727b5769ea014120b307"

inherit autotools

do_configure_prepend () {
	cp ${WORKDIR}/configure.ac ${S}/
	cp ${WORKDIR}/Makefile.am ${S}/
}

do_install_append () {
	sed \
		-e 's:@prefix@:${prefix}:' \
		-e 's:@exec_prefix@:${exec_prefix}:' \
		-e 's:@libdir@:${libdir}:' \
		-e 's:@sharedlibdir@:${libdir}:' \
		-e 's:@includedir@:${includedir}:' \
		-e 's:@VERSION@:${PV}:' \
		zlib.pc.in > zlib.pc

	install -d ${D}${libdir}/pkgconfig
	install -m 0644 zlib.pc ${D}${libdir}/pkgconfig/
}

BBCLASSEXTEND = "native nativesdk"