-
Notifications
You must be signed in to change notification settings - Fork 93
/
zlib_debian.bb
64 lines (49 loc) · 1.49 KB
/
zlib_debian.bb
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# base recipe: meta/recipes-core/zlib/zlib_1.2.11.bb
# base branch: master
# base commit: d886fa118c930d0e551f2a0ed02b35d08617f746
#
SUMMARY = "compression library"
DESCRIPTION = "zlib is a library implementing the deflate compression method found \
in gzip and PKZIP. This package includes the development support \
files."
HOMEPAGE = "http://zlib.net/"
inherit debian-package
require recipes-debian/sources/zlib.inc
DEBIAN_UNPACK_DIR = "${WORKDIR}/${BPN}-${REPACK_PV}"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = " \
file://zlib.h;beginline=4;endline=23;md5=627e6ecababe008a45c70e318ae7014e \
"
CVE_PRODUCT = "zlib:zlib"
SRC_URI += "file://ldflags-tests.patch \
file://run-ptest \
"
FILESEXTRAPATHS =. "${COREBASE}/meta/recipes-core/zlib/zlib:"
CFLAGS += "-D_REENTRANT"
RDEPENDS_${PN}-ptest += "make"
inherit ptest
do_configure() {
LDCONFIG=true ./configure --prefix=${prefix} --shared --libdir=${libdir} --uname=GNU
}
do_compile() {
oe_runmake shared
}
do_install() {
oe_runmake DESTDIR=${D} install
}
do_install_ptest() {
install ${B}/examplesh ${D}${PTEST_PATH}
}
# move run-time libraries to ${libdir}
# "debian/rules install" also does the same things
do_install_append_class-target() {
if [ ${base_libdir} != ${libdir} ]
then
mkdir -p ${D}/${base_libdir}
mv ${D}/${libdir}/libz.so.* ${D}/${base_libdir}
libname=`readlink ${D}/${libdir}/libz.so`
ln -sf ${@oe.path.relative("${libdir}", "${base_libdir}")}/$libname ${D}/${libdir}/libz.so
fi
}
BBCLASSEXTEND = "native nativesdk"