# -*- 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                ccaudio2
version             2.2.0
categories          audio
platforms           darwin
maintainers         nomaintainer
license             LGPL-3+

description         Library and software for manipulating audio data

long_description    The GNU ccAudio2 library is a portable C++ class framework \
                    that's useful for developing applications that must \
                    process audio. This library provides a class framework \
                    for accessing audio segments from various audio file \
                    formats (.au, .wav, etc) and for creation of audio frame \
                    buffers that are then passed to audio devices and/or DSP \
                    processing systems such as telephony cards.

homepage            https://www.gnu.org/software/ccaudio
master_sites        gnu:ccaudio

checksums           rmd160 affc5c81bb9af10c1809dd410abbc6de00694830 \
                    sha256 2756b3c4765f62f69578bbf03b18ccd56baca385a85a1a6679ac6af633b17fb0

depends_lib         port:libgsm \
                    port:speex \
                    port:ucommon

configure.args      --sysconfdir=${prefix}/etc

post-destroot {
    move ${destroot}${prefix}/etc/tones.conf ${destroot}${prefix}/etc/tones.conf.default
}

post-activate {
    if {![file exists ${prefix}/etc/tones.conf]} {
        copy ${prefix}/etc/tones.conf.default ${prefix}/etc/tones.conf
    }
}

livecheck.distname  ${name}