# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                dvdrtools
version             0.2.1
revision            1
categories          sysutils
license             GPL-2
platforms           darwin
maintainers         nomaintainer
conflicts           cdrtools

description         a fork of cdrtools DVD writer support
long_description    Dvdrtools is a fork of cdrtools, with the \
                    primary goal of supporting writable DVD drives.
homepage            https://web.archive.org/web/20060718205728/http://www.arklinux.org/projects/dvdrtools
master_sites        https://savannah.nongnu.org/download/${name}/

checksums           rmd160  ffdd13de33fdc6386dec02206a0150ef7eb1bee9 \
                    sha256  053d0f277f69b183f9c8e8c8b09b94d5bb4a1de6d9b122c0e6c00cc6593dfb46 \
                    size    1463718

platform darwin {
        configure.env \
                    "LIBS=-framework CoreFoundation -framework IOKit"
        patchfiles  patch-scsi-mac-iokit.c.diff \
                    patch-cdda2wav-cdda2wav.c.diff \
                    patch-cdrecord-cdrecord.c.diff \
                    patch-fix-missing-include.diff
}

configure.args      --mandir=${prefix}/share/man
