Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name gzrecover
version 0.3
categories archivers
platforms darwin
maintainers nomaintainer@macports.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 }

files