# -*- 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: Portfile 74523 2010-12-20 10:16:41Z elelay@macports.org $

PortSystem          1.0

name                soundtouch
version             1.5.0
revision            1
categories          audio multimedia
platforms           darwin freebsd
maintainers         nomaintainer
description         Audio processing application and library for changing \
                    the Tempo, Pitch and Playback Rates of audio streams or \
                    files.
long_description    SoundTouch is an open-source audio processing library \
                    for changing the Tempo, Pitch and Playback Rates of \
                    audio streams or files. It includes the SoundStretch \
                    command line tool, which allows you to change the tempo, \
                    pitch and speed of WAV files.

homepage            http://www.surina.net/soundtouch/
master_sites        ${homepage}
checksums           md5     5456481d8707d2a2c27466ea64a099cb \
                    sha1    c3e73419acec242a49a408b78c55883def937fc0 \
                    rmd160  da95a81bd34d2808a9bd771c442ca4cfdf7de3c6

worksrcdir          ${name}

use_autoreconf      yes
autoreconf.args     -fvi

# remove bad symlinks to /usr/share/aclocal, see #27533
post-patch {
    eval file delete [glob ${worksrcpath}/config/m4/*.m4]
}

configure.args      --enable-shared --disable-static

post-destroot {
    move ${destroot}${prefix}/doc ${destroot}${prefix}/share
}

livecheck.type  regex
livecheck.url   ${homepage}/sourcecode.html
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
