# -*- 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
# $Id$

PortSystem          1.0

name                ssrc
version             1.30
categories          audio
platforms           darwin
maintainers         hum openmaintainer
license             LGPL-2.1

description         A fast and high quality sampling rate converter SSRC

long_description    SSRC converts sampling rate of PCM wav file. Also, this program has \
                    a function to apply dither to its output and extend perceived dynamic range. \
                    Sampling rates of 44.1kHz and 48kHz are populary used, but ratio of these \
                    two frequency is 147:160, and it's not a small numbers. Therefore, sampling \
                    rate conversion without degradation of sound quality requires filter with very \
                    large order, and it's difficult to achive both quality and speed. This program \
                    achived relatively fast and high quality with two different kinds of filters \
                    combined skillfully.

homepage            http://shibatch.sourceforge.net/
master_sites        ${homepage}download

extract.suffix      .tgz

checksums           sha1    0bd83caf06b34a9aae6c0e576aadcb20e62e82e0 \
                    rmd160  ffc0e0e8d7edfd8e3761e8a7523ede9bb496b3ca

use_configure       no

variant universal {}

build.args          CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]"

destroot {
    xinstall -m 755 -W ${worksrcpath} \
        ssrc \
        ssrc_hp \
        ${destroot}${prefix}/bin
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        LGPL.txt \
        history.txt \
        ssrc.txt \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)\\.