# -*- 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 86612 2011-10-29 18:07:18Z jmr@macports.org $

PortSystem          1.0

name                soundtouch
version             1.6.0
categories          audio multimedia
license             LGPL-2.1+
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     aa1c63d4d67b033f044a6a48d2be5bdd \
                    sha1    9871dcbf75a68665a3515bb9dda4727beb0358e7 \
                    rmd160  6d05dac27d163f46b632f06db4b52d83cf123158

worksrcdir          ${name}

use_autoreconf      yes
autoreconf.args     -fvi

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}"
