blob: b4c312a84fb59c73aff3475142b7b9a699941426 (
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
|
DESCRIPTION = "Zlib Compression Library"
SECTION = "libs"
PRIORITY = "required"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
RDEPENDS = "libc6"
SRC_URI = "http://www.libpng.org/pub/png/src/zlib-${PV}.tar.gz"
DEPENDS = "virtual/libc"
S = "${WORKDIR}/zlib-${PV}"
export LDSHARED = "${CC} -shared -Wl,-soname,libz.so.1"
LDFLAGS_append = " -L. -lz"
CFLAGS_prepend = "-fPIC "
AR_append = " rc"
EXTRA_OEMAKE = ""
do_compile() {
./configure --prefix=${prefix} --exec_prefix=${exec_prefix} --shared --libdir=${libdir} --includedir=${includedir}
oe_runmake -e MAKEFLAGS="" libz.so.${PV} libz.a
}
do_stage() {
install -m 0644 zlib.h ${STAGING_INCDIR}/zlib.h
install -m 0644 zconf.h ${STAGING_INCDIR}/zconf.h
install -m 0755 libz.so.${PV} ${STAGING_LIBDIR}/libz.so.${PV}
install -m 0755 libz.a ${STAGING_LIBDIR}/libz.a
ln -sf ./libz.so.1.1.4 ${STAGING_LIBDIR}/libz.so.1
ln -sf ./libz.so.1.1.4 ${STAGING_LIBDIR}/libz.so
}
do_install() {
install -d ${D}/${prefix} ${D}/${includedir} ${D}/${libdir}
oe_runmake "prefix=${D}/${prefix}" "includedir=${D}/${includedir}" \
"libdir=${D}/${libdir}" install
}
|