M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions
@@ -0,0 +1,9 @@
lib_LTLIBRARIES = libz.la
libz_la_SOURCES = adler32.c compress.c crc32.c gzlib.c gzclose.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 --version-script zlib.map
include_HEADERS = zconf.h zlib.h zlibdefs.h
@@ -0,0 +1,48 @@
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
zlib_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
AC_CHECK_TYPES(off64_t)
CPPFLAGS=$zlib_save_CPPFLAGS
AC_CACHE_CHECK([whether to enable -D_LARGEFILE64_SOURCE], [zlib_cv_use_lfs64], [
zlib_cv_use_lfs64=no
if test "$ac_cv_type_off64_t" = "yes"; then
zlib_cv_use_lfs64=yes
fi
])
if test "$zlib_cv_use_lfs64" = "yes"; then
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
#APR_ADDTO(CPPFLAGS, [-D_LARGEFILE64_SOURCE])
fi
cat > zlibdefs.h << EOF
/* zlibdefs.h -- compile-time definitions for the zlib compression library
* Copyright (C) 1995-2006 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include <sys/types.h> /* for off_t */
#include <unistd.h> /* for SEEK_* and off_t */
#ifdef VMS
# include <unixio.h> /* for off_t */
#endif
#ifndef z_off_t
# define z_off_t off_t
#endif
EOF
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
@@ -0,0 +1 @@
zlib.h
@@ -0,0 +1,20 @@
Upstream-Status: Pending
see
https://bugs.gentoo.org/316377?id=316377
https://bugs.freedesktop.org/show_bug.cgi?id=33710
http://lists.freedesktop.org/archives/poppler-bugs/2011-January/006014.html
for details
diff -up zlib-1.2.5/zlib.h.pom zlib-1.2.5/zlib.h
--- zlib-1.2.5/zlib.h.pom 2010-04-20 06:12:48.000000000 +0200
+++ zlib-1.2.5/zlib.h 2010-06-16 13:08:59.000000000 +0200
@@ -1578,7 +1578,7 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF(
# define gzoffset gzoffset64
# define adler32_combine adler32_combine64
# define crc32_combine crc32_combine64
-# ifdef _LARGEFILE64_SOURCE
+# ifndef _LARGEFILE64_SOURCE
ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
@@ -0,0 +1,41 @@
SUMMARY = "Zlib Compression Library"
DESCRIPTION = "Zlib is a general-purpose, patent-free, lossless data compression \
library which is used by many different programs."
HOMEPAGE = "http://zlib.net/"
SECTION = "libs"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=084e9c30e4e6272c3b057b13c6467f3d"
DEPENDS = "libtool-cross"
PR = "r3"
SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.bz2 \
file://configure.ac \
file://Makefile.am \
file://fix.inverted.LFS.logic.patch"
SRC_URI[md5sum] = "be1e89810e66150f5b0327984d8625a0"
SRC_URI[sha256sum] = "239aead2f22f16bfcfa6a6a5150dcbd6d6f2e4d1eaa8727b5769ea014120b307"
inherit autotools
do_configure_prepend () {
cp ${WORKDIR}/configure.ac ${S}/
cp ${WORKDIR}/Makefile.am ${S}/
}
do_install_append () {
sed \
-e 's:@prefix@:${prefix}:' \
-e 's:@exec_prefix@:${exec_prefix}:' \
-e 's:@libdir@:${libdir}:' \
-e 's:@sharedlibdir@:${libdir}:' \
-e 's:@includedir@:${includedir}:' \
-e 's:@VERSION@:${PV}:' \
zlib.pc.in > zlib.pc
install -d ${D}${libdir}/pkgconfig
install -m 0644 zlib.pc ${D}${libdir}/pkgconfig/
}
BBCLASSEXTEND = "native nativesdk"