# -*- 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            ddptools
version         1.1
revision        0

categories      audio
platforms       {darwin any}
maintainers     {breun @breun} openmaintainer
license         NoMirror
supported_archs x86_64

description     DDP Mastering Tools

long_description The DDP Mastering Tools are a small set of command line \
                programs which read and write DDP images as used for Red \
                Book CD audio mastering. They let you\
                \n\
                \n* create DDP 2.0 masters from a cue/wav images,\
                \n* inspect DDP masters by displaying the full meta-data found \
                in those masters, a feature rarely found in traditional DDP \
                software,\
                \n* convert DDP masters to cue/wav for easier playback, or \
                burning of CD reference copies.

homepage        http://ddp.andreasruge.de
master_sites    http://ddp.andreasruge.de/dist/

distname        ${name}-${version}-osx

checksums       rmd160  2541cb617c437ee3d61499504d370d5dbb015348 \
                sha256  dc2a264b591c50c72862091de464d1d5b1740909035cb1ee8d513213ab502e0a \
                size    111753

worksrcdir      ${name}-${version}

use_configure   no

build {}

test.run    yes
test.cmd    ./cue2ddp
test.target
test.args   --version

destroot {
    set target ${destroot}${prefix}/share/${name}

    # Create the target directory
    xinstall -m 755 -d ${target}

    foreach f { NEWS README } {
        xinstall -m 644 ${worksrcpath}/${f} ${target}/${f}
    }

    foreach f { cdtinfo cue2ddp ddpinfo } {
        xinstall -m 755 ${worksrcpath}/${f} ${destroot}${prefix}/bin/${f}
        xinstall -m 644 ${worksrcpath}/doc/${f}.1 ${destroot}${prefix}/share/man/man1/${f}.1
    }
}
