diff options
Diffstat (limited to 'meta/recipes-core/zlib')
-rw-r--r-- | meta/recipes-core/zlib/files/Makefile.am | 9 | ||||
-rw-r--r-- | meta/recipes-core/zlib/files/configure.ac | 48 | ||||
-rw-r--r-- | meta/recipes-core/zlib/zlib_1.2.5.bb | 22 |
3 files changed, 79 insertions, 0 deletions
diff --git a/meta/recipes-core/zlib/files/Makefile.am b/meta/recipes-core/zlib/files/Makefile.am new file mode 100644 index 0000000000..b66d299d8f --- /dev/null +++ b/meta/recipes-core/zlib/files/Makefile.am | |||
@@ -0,0 +1,9 @@ | |||
1 | lib_LTLIBRARIES = libz.la | ||
2 | |||
3 | libz_la_SOURCES = adler32.c compress.c crc32.c gzlib.c gzclose.c gzread.c \ | ||
4 | gzwrite.c uncompr.c deflate.c trees.c zutil.c inflate.c \ | ||
5 | infback.c inftrees.c inffast.c | ||
6 | |||
7 | libz_la_LDFLAGS = -version-number 1:2:5 --version-script zlib.map | ||
8 | |||
9 | include_HEADERS = zconf.h zlib.h zlibdefs.h | ||
diff --git a/meta/recipes-core/zlib/files/configure.ac b/meta/recipes-core/zlib/files/configure.ac new file mode 100644 index 0000000000..4761b7ef28 --- /dev/null +++ b/meta/recipes-core/zlib/files/configure.ac | |||
@@ -0,0 +1,48 @@ | |||
1 | AC_INIT(zlib,1.2.5) | ||
2 | AC_CONFIG_SRCDIR(adler32.c) | ||
3 | AM_INIT_AUTOMAKE(zlibs,1.2.5) | ||
4 | |||
5 | AC_PREREQ([2.59]) | ||
6 | |||
7 | AC_PROG_CC([gcc]) | ||
8 | AC_PROG_LIBTOOL | ||
9 | |||
10 | AC_HEADER_STDC | ||
11 | |||
12 | zlib_save_CPPFLAGS=$CPPFLAGS | ||
13 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" | ||
14 | AC_CHECK_TYPES(off64_t) | ||
15 | CPPFLAGS=$zlib_save_CPPFLAGS | ||
16 | |||
17 | AC_CACHE_CHECK([whether to enable -D_LARGEFILE64_SOURCE], [zlib_cv_use_lfs64], [ | ||
18 | zlib_cv_use_lfs64=no | ||
19 | if test "$ac_cv_type_off64_t" = "yes"; then | ||
20 | zlib_cv_use_lfs64=yes | ||
21 | fi | ||
22 | ]) | ||
23 | |||
24 | if test "$zlib_cv_use_lfs64" = "yes"; then | ||
25 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" | ||
26 | |||
27 | #APR_ADDTO(CPPFLAGS, [-D_LARGEFILE64_SOURCE]) | ||
28 | fi | ||
29 | |||
30 | cat > zlibdefs.h << EOF | ||
31 | /* zlibdefs.h -- compile-time definitions for the zlib compression library | ||
32 | * Copyright (C) 1995-2006 Jean-loup Gailly. | ||
33 | * For conditions of distribution and use, see copyright notice in zlib.h | ||
34 | */ | ||
35 | |||
36 | #include <sys/types.h> /* for off_t */ | ||
37 | #include <unistd.h> /* for SEEK_* and off_t */ | ||
38 | #ifdef VMS | ||
39 | # include <unixio.h> /* for off_t */ | ||
40 | #endif | ||
41 | #ifndef z_off_t | ||
42 | # define z_off_t off_t | ||
43 | #endif | ||
44 | EOF | ||
45 | |||
46 | AC_CONFIG_FILES([Makefile]) | ||
47 | |||
48 | AC_OUTPUT | ||
diff --git a/meta/recipes-core/zlib/zlib_1.2.5.bb b/meta/recipes-core/zlib/zlib_1.2.5.bb new file mode 100644 index 0000000000..e6db69e3a6 --- /dev/null +++ b/meta/recipes-core/zlib/zlib_1.2.5.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "Zlib Compression Library" | ||
2 | HOMEPAGE = "http://zlib.net/" | ||
3 | SECTION = "libs" | ||
4 | PRIORITY = "required" | ||
5 | LICENSE = "zlib" | ||
6 | LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=084e9c30e4e6272c3b057b13c6467f3d" | ||
7 | |||
8 | DEPENDS = "libtool-cross" | ||
9 | PR = "r0" | ||
10 | |||
11 | SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \ | ||
12 | file://configure.ac \ | ||
13 | file://Makefile.am" | ||
14 | |||
15 | inherit autotools | ||
16 | |||
17 | do_configure_prepend () { | ||
18 | cp ${WORKDIR}/configure.ac ${S}/ | ||
19 | cp ${WORKDIR}/Makefile.am ${S}/ | ||
20 | } | ||
21 | |||
22 | BBCLASSEXTEND = "native nativesdk" | ||