zlib: convert to BBCLASSEXTAND and add version 1.2.5
PATCH v2 1/1 zlib: convert to BBCLASSEXTAND and add version 1.2.5
- convert to BBCLASSEXTAND
- unify versions with .inc file
- add version 1.2.5 with updated autotool patch for this version
Signed-off-by Eric Benard <[email protected]>
--- recipes/zlib/files/0001-autotools.patch | 57 +++++++++++++++++++++++++++++++ recipes/zlib/zlib-native_1.2.3.bb | 8 ---- recipes/zlib/zlib-sdk_1.2.3.bb | 4 -- recipes/zlib/zlib.inc | 14 +++++++ recipes/zlib/zlib_1.2.3.bb | 22 ++---------- recipes/zlib/zlib_1.2.5.bb | 10 +++++ 6 files changed, 85 insertions(+), 30 deletions(-) create mode 100644 recipes/zlib/files/0001-autotools.patch delete mode 100644 recipes/zlib/zlib-native_1.2.3.bb delete mode 100644 recipes/zlib/zlib-sdk_1.2.3.bb create mode 100644 recipes/zlib/zlib.inc create mode 100644 recipes/zlib/zlib_1.2.5.bb
recipes/zlib/files/0001-autotools.patch new file +57 -0
@@ -0,0 +1,57 @@ +From d6b0c74edb3fc58060d1ab337bcb1f838328ebbf Mon Sep 17 00:00:00 2001 +From: Eric Benard <[email protected]> +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 +
recipes/zlib/zlib-native_1.2.3.bb deleted +0 -8
@@ -1,8 +0,0 @@ -require zlib_${PV}.bb -ZLIB_EXTRA = "" -DEPENDS = "libtool-native" - -inherit native - -SRC_URI[md5sum] = "dee233bf288ee795ac96a98cc2e369b6" -SRC_URI[sha256sum] = "e3b9950851a19904d642c4dec518623382cf4d2ac24f70a76510c944330d28ca"
recipes/zlib/zlib-sdk_1.2.3.bb deleted +0 -4
@@ -1,4 +0,0 @@ -require zlib_${PV}.bb -LIB_EXTRA = "" - -inherit sdk
recipes/zlib/zlib.inc new file +14 -0
@@ -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 autotools_stage + +DEPENDS = "libtool-cross"
recipes/zlib/zlib_1.2.3.bb +4 -18
@@ -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"
recipes/zlib/zlib_1.2.5.bb new file +10 -0
@@ -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"
Signature · 1 line
1.6.3.3
В сообщении от Воскресенье 02 мая 2010 22:19:08 автор Eric Benard написал:
Quoted 6 lines
- convert to BBCLASSEXTAND
- unify versions with .inc file
- add version 1.2.5 with updated autotool patch for this versionSigned-off-by Eric Benard <[email protected]>---
....
Quoted 6 lines
recipes/zlib/zlib.inc new file +0
-0@@ -0,0 +1,14 @@
....
Quoted 1 line
+inherit autotools
autotools_stage
Actually, even autotools_stage is not needed, my mistake, I've corrected that in a patch along with s/BBCLASSEXTAND/BBCLASSEXTEND/ in commit message.
Acked-by Roman I Khimov <[email protected]>
And pushed. Thanks.
Signature · 3 lines
http://roman.khimov.ru mailto: [email protected] gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3