summaryrefslogtreecommitdiffstats
path: root/meta/packages/zlib/zlib_1.1.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/zlib/zlib_1.1.4.bb')
-rw-r--r--meta/packages/zlib/zlib_1.1.4.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/packages/zlib/zlib_1.1.4.bb b/meta/packages/zlib/zlib_1.1.4.bb
new file mode 100644
index 0000000000..86066e77f5
--- /dev/null
+++ b/meta/packages/zlib/zlib_1.1.4.bb
@@ -0,0 +1,34 @@
1DESCRIPTION = "Zlib Compression Library"
2SECTION = "libs"
3PRIORITY = "required"
4MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
5HOMEPAGE = "http://www.gzip.org/zlib/"
6LICENSE = "zlib"
7PR = "r1"
8
9SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/zlib-${PV}.tar.gz"
10
11S = "${WORKDIR}/zlib-${PV}"
12
13export LDSHARED = "${CC} -shared -Wl,-soname,libz.so.1"
14LDFLAGS_append = " -L. -lz"
15CFLAGS_prepend = "-fPIC "
16AR_append = " rc"
17EXTRA_OEMAKE = ""
18
19do_compile() {
20 ./configure --prefix=${prefix} --exec_prefix=${exec_prefix} --shared --libdir=${libdir} --includedir=${includedir}
21 oe_runmake -e MAKEFLAGS="" libz.so.${PV} libz.a
22}
23
24do_stage() {
25 install -m 0644 zlib.h ${STAGING_INCDIR}/zlib.h
26 install -m 0644 zconf.h ${STAGING_INCDIR}/zconf.h
27 oe_libinstall -a -so libz ${STAGING_LIBDIR}
28}
29
30do_install() {
31 install -d ${D}${prefix} ${D}${includedir} ${D}${libdir}
32 oe_runmake "prefix=${D}${prefix}" "includedir=${D}${includedir}" \
33 "libdir=${D}${libdir}" install
34}