zlib: update to 1.2.6.
This commit is contained in:
parent
cb17892e03
commit
fab3eaebe0
4 changed files with 27 additions and 26 deletions
19
srcpkgs/zlib/patches/makefile_ranlib_syntax.patch
Normal file
19
srcpkgs/zlib/patches/makefile_ranlib_syntax.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- Makefile.in.orig 2012-01-28 23:48:50.000000000 +0100
|
||||
+++ Makefile.in 2012-02-01 00:28:04.898440495 +0100
|
||||
@@ -190,7 +190,7 @@ install-libs: $(LIBS)
|
||||
-@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi
|
||||
cp $(STATICLIB) $(DESTDIR)$(libdir)
|
||||
chmod 644 $(DESTDIR)$(libdir)/$(STATICLIB)
|
||||
- -@($(RANLIB) $(DESTDIR)$(libdir)/libz.a || true) >/dev/null 2>&1
|
||||
+ -@$(RANLIB) $(DESTDIR)$(libdir)/libz.a
|
||||
-@if test -n "$(SHAREDLIBV)"; then \
|
||||
cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir); \
|
||||
echo "cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)"; \
|
||||
@@ -199,7 +199,6 @@ install-libs: $(LIBS)
|
||||
rm -f $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
|
||||
ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB); \
|
||||
ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
|
||||
- ($(LDCONFIG) || true) >/dev/null 2>&1; \
|
||||
fi
|
||||
cp zlib.3 $(DESTDIR)$(man3dir)
|
||||
chmod 644 $(DESTDIR)$(man3dir)/zlib.3
|
|
@ -1,13 +0,0 @@
|
|||
Index: zlib-1.2.5/zlib.h
|
||||
===================================================================
|
||||
--- zlib.h
|
||||
+++ zlib.h
|
||||
@@ -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));
|
|
@ -1,8 +1,8 @@
|
|||
# Template build file for 'zlib'
|
||||
pkgname=zlib
|
||||
version=1.2.5
|
||||
revision=5
|
||||
distfiles="http://www.zlib.net/$pkgname-$version.tar.bz2"
|
||||
version=1.2.6
|
||||
homepage="http://www.zlib.net"
|
||||
distfiles="$homepage/$pkgname-$version.tar.bz2"
|
||||
build_style=configure
|
||||
configure_args="--prefix=/usr --shared"
|
||||
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
||||
|
@ -12,7 +12,8 @@ make_build_args="CFLAGS=-fPIC"
|
|||
make_install_args="LDCONFIG="
|
||||
short_desc="A compression/decompression Library"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=239aead2f22f16bfcfa6a6a5150dcbd6d6f2e4d1eaa8727b5769ea014120b307
|
||||
license="zlib"
|
||||
checksum=fa3e3e4881fa5810b8903f2c7e0dcd5a0a673535f0438021c4bbb5db1b918c8e
|
||||
long_desc="
|
||||
This is a general purpose data compression library. All the code
|
||||
is thread safe. The data format used by the library is described
|
||||
|
@ -21,10 +22,6 @@ long_desc="
|
|||
bootstrap=yes
|
||||
subpackages="zlib-devel"
|
||||
|
||||
post_install()
|
||||
{
|
||||
chmod 755 ${DESTDIR}/usr/lib/libz.so.${version}
|
||||
cd ${DESTDIR}/usr/lib && \
|
||||
ln -s libz.so.${version} libz.so.1 &&
|
||||
ln -s libz.so.${version} libz.so
|
||||
}
|
||||
if [ "$BOOTSTRAP_PKG_REBUILD" ]; then
|
||||
Add_dependency build coreutils
|
||||
fi
|
||||
|
|
|
@ -5,8 +5,6 @@ long_desc="${long_desc}
|
|||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
revision=2
|
||||
|
||||
Add_dependency run glibc-devel
|
||||
Add_dependency run zlib
|
||||
|
||||
|
|
Loading…
Reference in a new issue