summaryrefslogtreecommitdiff
path: root/zlib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-24 20:29:40 +0000
committerChris Larson <clarson@kergoth.com>2004-11-24 20:29:40 +0000
commita7ebefac78e4403b5c0d8adee9da08a1dde21434 (patch)
tree6ccde763e2be0a0374777ed48d3077f2eecd3edc /zlib
parent17793af48054581b4a860d41fdb95ed5b66addf2 (diff)
Merge openembedded@openembedded.bkbits.net:packages
into odin.sc.ti.com:/home/kergoth/code/packages 2004/11/24 17:03:02+01:00 (none)!br1 added CONFFILES to nylon-scripts and unik-olsrd 2004/11/24 16:59:22+01:00 (none)!br1 added homepage and licence to various files 2004/11/24 15:42:41+01:00 (none)!br1 nylon: use meshcube.org as mirror 2004/11/24 14:49:15+01:00 (none)!br1 Merge bk://openembedded@openembedded.bkbits.net/packages into null.(none):/data/mtx/oe/packages 2004/11/24 14:48:01+01:00 (none)!br1 libdaemon 0.6: disable doxygen, add licence 2004/11/24 12:00:27+00:00 cambridgebroadband.com!rjt Merge openembedded@openembedded.bkbits.net:packages into flotta.cambridgebroadband.com:/development/openembedded/packages 2004/11/24 11:53:38+00:00 cambridgebroadband.com!rjt package netkit-tftp 2004/11/24 11:52:12+00:00 cambridgebroadband.com!rjt a couple of tosa kernel fixes BKrev: 41a4ef34waYELxJwD-Ryjlmhmgf3lw
Diffstat (limited to 'zlib')
-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
+}