pkgsrc/devel/zlib/Makefile
adam 1026abe7f8 Changes in 1.2.11 (15 Jan 2017)
- Fix deflate stored bug when pulling last block from window
- Permit immediate deflateParams changes before any deflate input

Changes in 1.2.10 (2 Jan 2017)
- Avoid warnings on snprintf() return value
- Fix bug in deflate_stored() for zero-length input
- Fix bug in gzwrite.c that produced corrupt gzip files
- Remove files to be installed before copying them in Makefile.in
- Add warnings when compiling with assembler code

Changes in 1.2.9 (31 Dec 2016)
- Fix contrib/minizip to permit unzipping with desktop API [Zouzou]
- Improve contrib/blast to return unused bytes
- Assure that gzoffset() is correct when appending
- Improve compress() and uncompress() to support large lengths
- Fix bug in test/example.c where error code not saved
- Remedy Coverity warning [Randers-Pehrson]
- Improve speed of gzprintf() in transparent mode
- Fix inflateInit2() bug when windowBits is 16 or 32
- Change DEBUG macro to ZLIB_DEBUG
- Avoid uninitialized access by gzclose_w()
- Allow building zlib outside of the source directory
- Fix bug that accepted invalid zlib header when windowBits is zero
- Fix gzseek() problem on MinGW due to buggy _lseeki64 there
- Loop on write() calls in gzwrite.c in case of non-blocking I/O
- Add --warn (-w) option to ./configure for more compiler warnings
- Reject a window size of 256 bytes if not using the zlib wrapper
- Fix bug when level 0 used with Z_HUFFMAN or Z_RLE
- Add --debug (-d) option to ./configure to define ZLIB_DEBUG
- Fix bugs in creating a very large gzip header
- Add uncompress2() function, which returns the input size used
- Assure that deflateParams() will not switch functions mid-block
- Dramatically speed up deflation for level 0 (storing)
- Add gzfread(), duplicating the interface of fread()
- Add gzfwrite(), duplicating the interface of fwrite()
- Add deflateGetDictionary() function
- Use snprintf() for later versions of Microsoft C
- Fix *Init macros to use z_ prefix when requested
- Replace as400 with os400 for OS/400 support [Monnerat]
- Add crc32_z() and adler32_z() functions with size_t lengths
- Update Visual Studio project files [AraHaan]
2017-04-04 08:57:33 +00:00

52 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.55 2017/04/04 08:57:33 adam Exp $
DISTNAME= zlib-1.2.11
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/}
MASTER_SITES+= http://zlib.net/
DISTFILES= # empty
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://www.zlib.net/
COMMENT= General purpose data compression library
LICENSE= zlib
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE+= zlib.pc.in
CFLAGS+= ${CPPFLAGS}
LDFLAGS.Cygwin= -no-undefined
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_ARCH:Mi386)
# use NO_DIVIDE for adler32 if processor does not do division in hardware
# which avoids needing emulation provided by libgcc_s
CPPFLAGS.SunOS+= -DNO_DIVIDE
.endif
LDFLAGS.SunOS+= -Wl,-zignore # avoid unused reference to libgcc_s.so
SUBST_CLASSES+= pc
SUBST_MESSAGE.pc= pkg-config file substitutions
SUBST_STAGE.pc= pre-configure
SUBST_FILES.pc= zlib.pc.in
SUBST_SED.pc= -e "s,@prefix@,${PREFIX},g"
SUBST_SED.pc+= -e "s,@exec_prefix@,${PREFIX},g"
SUBST_SED.pc+= -e "s,@VERSION@,${PKGVERSION_NOREV},g"
SUBST_SED.pc+= -e "s,@includedir@,${PREFIX}/include,g"
SUBST_SED.pc+= -e "s,@libdir@,${PREFIX}/lib,g"
SUBST_SED.pc+= -e "s,@sharedlibdir@,${PREFIX}/lib,g"
INSTALLATION_DIRS= include lib/pkgconfig ${PKGMANDIR}/man3
do-extract:
${CP} -r ${FILESDIR} ${WRKSRC}
do-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libz.la ${DESTDIR}${PREFIX}/lib
${INSTALL_MAN} ${WRKSRC}/zlib.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
${INSTALL_DATA} ${WRKSRC}/zconf.h ${DESTDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/zlib.h ${DESTDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/zlib.pc.in ${DESTDIR}${PREFIX}/lib/pkgconfig/zlib.pc
.include "../../mk/bsd.pkg.mk"