diff options
author | Eric BENARD <eric@eukrea.com> | 2010-05-02 08:19:08 +0000 |
---|---|---|
committer | Roman I Khimov <khimov@altell.ru> | 2010-05-02 23:29:35 +0400 |
commit | 60e0205577b66d09581d1e830db67fd1c9882b78 (patch) | |
tree | 4d3fe82738e352211a62a67c1d230bf405abe089 /recipes/zlib | |
parent | e0fd0683b2cec0bf449701a4baf4290587d0f809 (diff) |
zlib: convert to BBCLASSEXTEND and add version 1.2.5
- convert to BBCLASSEXTEND
- unify versions with .inc file
- add version 1.2.5 with updated autotool patch for this version
Signed-off-by: Eric Benard <eric@eukrea.com>
Acked-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes/zlib')
-rw-r--r-- | recipes/zlib/files/0001-autotools.patch | 57 | ||||
-rw-r--r-- | recipes/zlib/zlib-native_1.2.3.bb | 8 | ||||
-rw-r--r-- | recipes/zlib/zlib-sdk_1.2.3.bb | 4 | ||||
-rw-r--r-- | recipes/zlib/zlib.inc | 14 | ||||
-rw-r--r-- | recipes/zlib/zlib_1.2.3.bb | 22 | ||||
-rw-r--r-- | recipes/zlib/zlib_1.2.5.bb | 10 |
6 files changed, 85 insertions, 30 deletions
diff --git a/recipes/zlib/files/0001-autotools.patch b/recipes/zlib/files/0001-autotools.patch new file mode 100644 index 0000000000..6642860651 --- /dev/null +++ b/recipes/zlib/files/0001-autotools.patch @@ -0,0 +1,57 @@ +From d6b0c74edb3fc58060d1ab337bcb1f838328ebbf Mon Sep 17 00:00:00 2001 +From: Eric Benard <eric@eukrea.com> +Date: Sun, 2 May 2010 10:49:05 +0200 +Subject: [PATCH] autotools + +--- + Makefile.am | 12 ++++++++++++ + configure.ac | 17 +++++++++++++++++ + 2 files changed, 29 insertions(+), 0 deletions(-) + create mode 100644 Makefile.am + create mode 100644 configure.ac + +diff --git a/Makefile.am b/Makefile.am +new file mode 100644 +index 0000000..76976fb +--- /dev/null ++++ b/Makefile.am +@@ -0,0 +1,12 @@ ++lib_LTLIBRARIES = libz.la ++ ++libz_la_SOURCES = adler32.c compress.c crc32.c gzclose.c gzlib.c gzread.c gzwrite.c \ ++ uncompr.c deflate.c trees.c zutil.c inflate.c infback.c inftrees.c \ ++ inffast.c ++ ++libz_la_LDFLAGS = -version-number 1:2:5 ++ ++include_HEADERS = zconf.h zlib.h ++ ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = zlib.pc +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..177c89a +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,17 @@ ++AC_INIT(zlib,1.2.5) ++AC_CONFIG_SRCDIR(adler32.c) ++AM_INIT_AUTOMAKE(zlibs,1.2.5) ++ ++AC_PREREQ([2.59]) ++ ++AC_PROG_CC([gcc]) ++AC_PROG_LIBTOOL ++ ++AC_HEADER_STDC ++ ++AC_CONFIG_FILES([ ++Makefile ++zlib.pc ++]) ++ ++AC_OUTPUT +\ No newline at end of file +-- +1.6.3.3 + diff --git a/recipes/zlib/zlib-native_1.2.3.bb b/recipes/zlib/zlib-native_1.2.3.bb deleted file mode 100644 index 4bb5d28659..0000000000 --- a/recipes/zlib/zlib-native_1.2.3.bb +++ /dev/null @@ -1,8 +0,0 @@ -require zlib_${PV}.bb -ZLIB_EXTRA = "" -DEPENDS = "libtool-native" - -inherit native - -SRC_URI[md5sum] = "dee233bf288ee795ac96a98cc2e369b6" -SRC_URI[sha256sum] = "e3b9950851a19904d642c4dec518623382cf4d2ac24f70a76510c944330d28ca" diff --git a/recipes/zlib/zlib-sdk_1.2.3.bb b/recipes/zlib/zlib-sdk_1.2.3.bb deleted file mode 100644 index 48633950ad..0000000000 --- a/recipes/zlib/zlib-sdk_1.2.3.bb +++ /dev/null @@ -1,4 +0,0 @@ -require zlib_${PV}.bb -LIB_EXTRA = "" - -inherit sdk diff --git a/recipes/zlib/zlib.inc b/recipes/zlib/zlib.inc new file mode 100644 index 0000000000..0f7bea06d5 --- /dev/null +++ b/recipes/zlib/zlib.inc @@ -0,0 +1,14 @@ +DESCRIPTION = "Zlib Compression Library" +SECTION = "libs" +PRIORITY = "required" +HOMEPAGE = "http://www.gzip.org/zlib/" +LICENSE = "zlib" +INC_PR ="r6" + +BBCLASSEXTEND = "native sdk" + +SRC_URI = "http://www.zlib.net/zlib-${PV}.tar.bz2" + +inherit autotools + +DEPENDS = "libtool-cross" diff --git a/recipes/zlib/zlib_1.2.3.bb b/recipes/zlib/zlib_1.2.3.bb index 541245b9f9..39a37c4180 100644 --- a/recipes/zlib/zlib_1.2.3.bb +++ b/recipes/zlib/zlib_1.2.3.bb @@ -1,23 +1,9 @@ -DESCRIPTION = "Zlib Compression Library" -SECTION = "libs" -PRIORITY = "required" -HOMEPAGE = "http://www.gzip.org/zlib/" -LICENSE = "zlib" -PR ="r5" +include zlib.inc -SRC_URI = "http://www.zlib.net/zlib-1.2.3.tar.bz2 \ - file://visibility.patch;patch=1 \ - file://autotools.patch;patch=1 " - -S = "${WORKDIR}/zlib-${PV}" - -DEPENDS = "libtool-cross" +PR = "${INC_PR}.0" -inherit autotools - -do_stage() { - autotools_stage_all -} +SRC_URI += " file://visibility.patch;patch=1 \ + file://autotools.patch;patch=1 " SRC_URI[md5sum] = "dee233bf288ee795ac96a98cc2e369b6" SRC_URI[sha256sum] = "e3b9950851a19904d642c4dec518623382cf4d2ac24f70a76510c944330d28ca" diff --git a/recipes/zlib/zlib_1.2.5.bb b/recipes/zlib/zlib_1.2.5.bb new file mode 100644 index 0000000000..c16d154a63 --- /dev/null +++ b/recipes/zlib/zlib_1.2.5.bb @@ -0,0 +1,10 @@ +include zlib.inc + +PR = "${INC_PR}.0" + +SRC_URI += "file://0001-autotools.patch;patch=1 " + +SRC_URI[md5sum] = "be1e89810e66150f5b0327984d8625a0" +SRC_URI[sha256sum] = "239aead2f22f16bfcfa6a6a5150dcbd6d6f2e4d1eaa8727b5769ea014120b307" + +DEFAULT_PREFERENCE = "-1" |