# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem          1.0

name                packddir
set my_name         upackddir
version             0.0.6-1
categories          archivers
maintainers         nomaintainer
description         creates and unpacks PackdDir archives
long_description    ${name} creates and unpacks PackdDir archives, which are used in Quake (I and II) and others.
homepage            http://www.nongnu.org/packddir/
platforms           darwin
master_sites        http://savannah.nongnu.org/download/packddir/
distname            ${my_name}_${version}
worksrcdir          src
checksums           md5 b66373639b3ee46c495bacb25031f5c7 \
                    sha1 7ffd0978981660db2e7bdc4b2d00f47a67e3612a \
                    rmd160 f0c304be802dfd053c173bd81547113088fd7424
use_configure       no

post-extract {
    reinplace "s%/usr/bin%${prefix}/bin%g" ${worksrcpath}/Makefile
}

patchfiles          patch-Makefile.diff

build.env           CC=${configure.cc}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]?C=M&O=D
livecheck.regex     ${my_name}_(\[0-9.-\]+)${extract.suffix}
