# $Id: Portfile,v 1.1 2005/10/26 21:01:50 mww Exp $

PortSystem 1.0

name			gzrecover
version			0.3
categories		archivers
platforms		darwin
maintainers		mww@opendarwin.org
description		attempts to extract bad gzip archives
long_description	Gzrecover attempts to skip over bad data in a gzip \
			archive. It will try to to skip over bad data and extract whatever \
			files might be there.

homepage		http://www.urbanophile.com/arenn/hacking/gzrt/
master_sites	${homepage}
distname		gzrt-${version}
checksums		md5 b54888d4b7a0f130dec89e477b091159
patchfiles		patch-Makefile

use_configure	no

build.target
build.args		LDFLAGS=-L${prefix}/lib CFLAGS=-I${prefix}/include

destroot {
	xinstall -m 755 -d ${destroot}${prefix}/bin \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 755 ${worksrcpath}/gzrecover ${destroot}${prefix}/bin
	xinstall -m 644 -W ${worksrcpath} ChangeLog README \
		${destroot}${prefix}/share/doc/${name}
}

platform darwin 8 { build.args-append	CC=/usr/bin/gcc-4.0 }

