summaryrefslogtreecommitdiff
path: root/zlib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-03-13 05:42:36 +0000
committerChris Larson <clarson@kergoth.com>2004-03-13 05:42:36 +0000
commit06f7d17e81de21a95e35b03453242bc62b05a6aa (patch)
treebc9c53bce2c6a2fdce3caf5bb45bc3f8634b56be /zlib
parent4b022a36ced4930af6bcdeb7d75a5ed10c4ac9cd (diff)
First pass of .oe cleanups.
BKrev: 40529f4crFtRY5_1DubNmWhDeHSmPw
Diffstat (limited to 'zlib')
-rw-r--r--zlib/zlib_1.1.4.oe35
1 files changed, 35 insertions, 0 deletions
diff --git a/zlib/zlib_1.1.4.oe b/zlib/zlib_1.1.4.oe
index e69de29bb2..e47650ff17 100644
--- a/zlib/zlib_1.1.4.oe
+++ b/zlib/zlib_1.1.4.oe
@@ -0,0 +1,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}/${P}"
+
+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.1.1.4 libz.a
+}
+
+do_stage() {
+ install -m 0644 zlib.h ${STAGING_DIR}/target/include/zlib.h
+ install -m 0644 zconf.h ${STAGING_DIR}/target/include/zconf.h
+ install -m 0755 libz.so.1.1.4 ${STAGING_LIBDIR}/libz.so.1.1.4
+ 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
+}