diff options
Diffstat (limited to 'meta/packages/zlib/zlib_1.1.4.bb')
-rw-r--r-- | meta/packages/zlib/zlib_1.1.4.bb | 34 |
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 @@ | |||
1 | DESCRIPTION = "Zlib Compression Library" | ||
2 | SECTION = "libs" | ||
3 | PRIORITY = "required" | ||
4 | MAINTAINER = "Chris Larson <kergoth@handhelds.org>" | ||
5 | HOMEPAGE = "http://www.gzip.org/zlib/" | ||
6 | LICENSE = "zlib" | ||
7 | PR = "r1" | ||
8 | |||
9 | SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/zlib-${PV}.tar.gz" | ||
10 | |||
11 | S = "${WORKDIR}/zlib-${PV}" | ||
12 | |||
13 | export LDSHARED = "${CC} -shared -Wl,-soname,libz.so.1" | ||
14 | LDFLAGS_append = " -L. -lz" | ||
15 | CFLAGS_prepend = "-fPIC " | ||
16 | AR_append = " rc" | ||
17 | EXTRA_OEMAKE = "" | ||
18 | |||
19 | do_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 | |||
24 | do_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 | |||
30 | do_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 | } | ||