PortSystem          1.0
PortGroup           makefile 1.0

name                dvdrw-tools
version             7.1
revision            1
checksums           rmd160  a98367861335ecf9acea86a6b44ad68636bfb5c4 \
                    sha256  f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca \
                    size    140846

categories          sysutils
license             GPL-2
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}

depends_run         port:cdrtools

patchfiles          patch-Makefile.m4

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

post-destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -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}
