# $Id: Portfile 52820 2009-06-23 21:47:46Z blb@macports.org $

PortSystem          1.0
name                dvdrw-tools
version             7.1
categories          sysutils
maintainers         nomaintainer
description         Tool for mastering DVD media, including +R/RW and -R/RW
long_description    ${description}

platforms           darwin

homepage            http://fy.chalmers.se/~appro/linux/DVD+RW/
master_sites        ${homepage}tools/
distname            dvd+rw-tools-${version}

checksums           md5     8acb3c885c87f6838704a0025e435871 \
                    sha1    6400e013934ff589b4b224eced03fd9f42ed719b \
                    rmd160  a98367861335ecf9acea86a6b44ad68636bfb5c4

depends_run         port:cdrtools

patchfiles          patch-Makefile.m4

post-patch {
   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile.m4
}

use_configure       no

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} index.html \
      ${destroot}${prefix}/share/doc/${name}
}

livecheck.url       http://fy.chalmers.se/~appro/linux/DVD+RW/tools/
livecheck.regex     {dvd\+rw-tools-([0-9.]+)\.tar\.gz}

