# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	minizip
#	minizip/Makefile
#	minizip/distinfo
#	minizip/files
#	minizip/files/patch-contrib-minizip-Makefile
#	minizip/pkg-descr
#	minizip/pkg-plist
#
echo c - minizip
mkdir -p minizip > /dev/null 2>&1
echo x - minizip/Makefile
sed 's/^X//' >minizip/Makefile << '480e9524a9c2a7bb6c2d87ddab11bc1f'
X# Created by: lbartoletti <coder@tuxfamily.org>
X# $FreeBSD$
X
XPORTNAME=	minizip
XPORTVERSION=	1.2.8
XCATEGORIES=	archivers
XMASTER_SITES=	https://github.com/madler/zlib/archive/
XDISTNAME=	v${PORTVERSION}
X
XMAINTAINER=	coder@tuxfamily.org
XCOMMENT=	Zip and unzip programs from Zlib
X
XWRKSRC=	${WRKDIR}/zlib-${PORTVERSION}/contrib/minizip
X
XUSE_ZIP=	yes
X
XFETCH_ARGS=	-Fpr
X
XMAN1=	minizip.1 miniunzip.1
X
X.include <bsd.port.pre.mk>
X.if ${OSVERSION} < 900000
XBROKEN=		does not compile on 8.X
X.endif
X
Xdo-install:
X	${MKDIR} ${STAGEDIR}${PREFIX}/include/minizip
X	${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/minizip/
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/miniunz ${STAGEDIR}${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${PREFIX}/man/man1
X
X.include <bsd.port.post.mk>
480e9524a9c2a7bb6c2d87ddab11bc1f
echo x - minizip/distinfo
sed 's/^X//' >minizip/distinfo << '3e7909a7a04ea417186b352e3514bbd7'
XSHA256 (v1.2.8.zip) = da78eabfef55cbab21776d4cca207cf7e0dde483b4dd3590e525421667bfb6a7
XSIZE (v1.2.8.zip) = 724598
3e7909a7a04ea417186b352e3514bbd7
echo c - minizip/files
mkdir -p minizip/files > /dev/null 2>&1
echo x - minizip/files/patch-contrib-minizip-Makefile
sed 's/^X//' >minizip/files/patch-contrib-minizip-Makefile << '58877022fac6d88f4817ebdb1daebe3b'
X--- Makefile.orig	2013-04-29 02:23:49.000000000 +0200
X+++ Makefile	2013-12-10 10:06:34.000000000 +0100
X@@ -1,8 +1,9 @@
X CC=cc
X-CFLAGS=-O -I../..
X+CFLAGS=-O -I/usr/local
X+LDFLAGS=-L/usr/lib -lz
X 
X-UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a
X-ZIP_OBJS = minizip.o zip.o   ioapi.o ../../libz.a
X+UNZ_OBJS = miniunz.o unzip.o ioapi.o
X+ZIP_OBJS = minizip.o zip.o   ioapi.o
X 
X .c.o:
X 	$(CC) -c $(CFLAGS) $*.c
X@@ -10,10 +11,10 @@
X all: miniunz minizip
X 
X miniunz:  $(UNZ_OBJS)
X-	$(CC) $(CFLAGS) -o $@ $(UNZ_OBJS)
X+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(UNZ_OBJS)
X 
X minizip:  $(ZIP_OBJS)
X-	$(CC) $(CFLAGS) -o $@ $(ZIP_OBJS)
X+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ZIP_OBJS)
X 
X test:	miniunz minizip
X 	./minizip test readme.txt
58877022fac6d88f4817ebdb1daebe3b
echo x - minizip/pkg-descr
sed 's/^X//' >minizip/pkg-descr << 'ee929a2fc47e36b1727112886cf6b6b7'
XThe Zlib library allows to deflate compressed files and to create gzip (.gz) 
Xfiles. Zlib is free software and small.
X
XAn archive in ZIP format can contain several files compressed with this method, 
Xwhile a .gz archive can containt only one file. It is a very popular format, 
Xthat is why I have written a package for reading files compressed within a Zip 
Xarchive.
X
XWWW: http://www.winimage.com/zLibDll/minizip.html
ee929a2fc47e36b1727112886cf6b6b7
echo x - minizip/pkg-plist
sed 's/^X//' >minizip/pkg-plist << '9c8201bfb9d9918145a509974d10fc90'
Xbin/minizip
Xbin/miniunz
Xinclude/minizip/crypt.h
Xinclude/minizip/ioapi.h
Xinclude/minizip/iowin32.h
Xinclude/minizip/mztools.h
Xinclude/minizip/unzip.h
Xinclude/minizip/zip.h
X@dirrm include/minizip
9c8201bfb9d9918145a509974d10fc90
exit

