# $Id: Portfile,v 1.3 2005/04/04 03:44:48 toby Exp $

PortSystem 1.0

name		libzzip
version		0.13.38
categories	archivers devel
platforms	darwin
maintainers	mww@opendarwin.org
description	library providing read access on ZIP-archives
long_description	The ZZIPlib provides read access on ZIP-archives. The \
			library uses only the patent-free \
			compression-algorithms supported by Zlib. It provides \
			functions that transparently access files being either \
			real files or zipped files, both with the same filepath.

homepage	http://zziplib.sourceforge.net/
master_sites	sourceforge:zziplib
distname	zziplib-${version}
checksums	md5 3eccd9b39c057eb49652e90914abfdf5
use_bzip2	yes

depends_lib	lib:libz:zlib
depends_build	bin:pkg-config:pkgconfig

patchfiles	patch-zzip__types.h

post-destroot	{
	file delete -force ${destroot}${prefix}/lib/pkgconfig \
		${destroot}${prefix}/share/aclocal
	xinstall -d -m 755 ${destroot}${prefix}/share/doc
	file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
}
