summaryrefslogtreecommitdiff
path: root/zlib/zlib_1.2.2.oe
diff options
context:
space:
mode:
Diffstat (limited to 'zlib/zlib_1.2.2.oe')
-rw-r--r--zlib/zlib_1.2.2.oe35
1 files changed, 35 insertions, 0 deletions
diff --git a/zlib/zlib_1.2.2.oe b/zlib/zlib_1.2.2.oe
index e69de29bb2..3c63a22066 100644
--- a/zlib/zlib_1.2.2.oe
+++ b/zlib/zlib_1.2.2.oe
@@ -0,0 +1,35 @@
+DESCRIPTION = "Zlib Compression Library"
+SECTION = "libs"
+PRIORITY = "required"
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+HOMEPAGE = "http://www.gzip.org/zlib/"
+LICENSE = "ZLIB"
+
+SRC_URI = "http://www.libpng.org/pub/png/src/zlib-${PV}.tar.gz"
+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
+ oe_libinstall -a -so libz ${STAGING_LIBDIR}
+}
+
+do_install() {
+ install -d ${D}/${prefix} ${D}/${includedir} ${D}/${libdir}
+ oe_runmake "prefix=${D}/${prefix}" \
+ "exec_prefix=${D}/${exec_prefix}" \
+ "man3dir=${D}/${mandir}/man3" \
+ "includedir=${D}/${includedir}" \
+ "libdir=${D}/${libdir}" install
+}