summaryrefslogtreecommitdiff
path: root/packages/zlib/zlib_1.2.3.bb
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2005-07-21 12:19:40 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-21 12:19:40 +0000
commit52ef0855548358da23a120f34ef6cb6efe1b90d0 (patch)
treedc282233b35e9f7a7ff1a2b11af4fc747bf50170 /packages/zlib/zlib_1.2.3.bb
parent48ceec0f1521da502f3fd5ca1f8f9a6158c32bb5 (diff)
added zlib 1.2.3
Diffstat (limited to 'packages/zlib/zlib_1.2.3.bb')
-rw-r--r--packages/zlib/zlib_1.2.3.bb37
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/zlib/zlib_1.2.3.bb b/packages/zlib/zlib_1.2.3.bb
new file mode 100644
index 0000000000..1d342f51d1
--- /dev/null
+++ b/packages/zlib/zlib_1.2.3.bb
@@ -0,0 +1,37 @@
+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.zlib.net/zlib-1.2.3.tar.bz2 \
+ file://visibility.patch;patch=1"
+
+S = "${WORKDIR}/zlib-${PV}"
+
+export LDSHARED = "${CC} -shared -Wl,-soname,libz.so.1"
+LDFLAGS_append = " -L. -lz"
+CFLAGS_prepend = "-fPIC -DZLIB_DLL "
+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
+}