summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/zlib/zlib_1.2.8.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/zlib/zlib_1.2.8.bb')
-rw-r--r--meta/recipes-core/zlib/zlib_1.2.8.bb60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-core/zlib/zlib_1.2.8.bb b/meta/recipes-core/zlib/zlib_1.2.8.bb
new file mode 100644
index 0000000..bdfa045
--- /dev/null
+++ b/meta/recipes-core/zlib/zlib_1.2.8.bb
@@ -0,0 +1,60 @@
1SUMMARY = "Zlib Compression Library"
2DESCRIPTION = "Zlib is a general-purpose, patent-free, lossless data compression \
3library which is used by many different programs."
4HOMEPAGE = "http://zlib.net/"
5SECTION = "libs"
6LICENSE = "Zlib"
7LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=fde612df1e5933c428b73844a0c494fd"
8
9
10SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.xz \
11 file://remove.ldconfig.call.patch \
12 file://Makefile-runtests.patch \
13 file://run-ptest \
14 "
15
16SRC_URI[md5sum] = "28f1205d8dd2001f26fec1e8c2cebe37"
17SRC_URI[sha256sum] = "831df043236df8e9a7667b9e3bb37e1fcb1220a0f163b6de2626774b9590d057"
18
19RDEPENDS_${PN}-ptest += "make"
20
21inherit ptest
22
23do_configure (){
24 ./configure --prefix=${prefix} --shared --libdir=${libdir}
25}
26
27do_compile (){
28 oe_runmake
29}
30
31do_compile_ptest() {
32 oe_runmake static shared
33}
34
35do_install() {
36 oe_runmake DESTDIR=${D} install
37}
38
39do_install_ptest() {
40 install ${B}/Makefile ${D}${PTEST_PATH}
41 install ${B}/example ${D}${PTEST_PATH}
42 install ${B}/minigzip ${D}${PTEST_PATH}
43 install ${B}/examplesh ${D}${PTEST_PATH}
44 install ${B}/minigzipsh ${D}${PTEST_PATH}
45}
46
47# We move zlib shared libraries for target builds to avoid
48# qa warnings.
49#
50do_install_append_class-target() {
51 if [ ${base_libdir} != ${libdir} ]
52 then
53 mkdir -p ${D}/${base_libdir}
54 mv ${D}/${libdir}/libz.so.* ${D}/${base_libdir}
55 tmp=`readlink ${D}/${libdir}/libz.so`
56 ln -sf ../../${base_libdir}/$tmp ${D}/${libdir}/libz.so
57 fi
58}
59
60BBCLASSEXTEND = "native nativesdk"