# -*- 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 63532 2010-02-07 17:36:40Z rmsfisher@macports.org $

PortSystem          1.0

name                soundtouch
version             1.5.0
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     3286ba1ef0de45b9f1f499b0b88e7c3e \
                    sha1    93eaf85c6ba61febe3269cca78a6c95e62235313 \
                    rmd160  29a5faf94ab3fad467ab698510f74825cdf7181a
use_zip             yes

universal_variant no

worksrcdir          ${name}
pre-configure {
    # Ensure the documentation is installed in ${prefix}/share/doc.
    reinplace {s|$(prefix)/doc/@PACKAGE@|$(prefix)/share/doc/@PACKAGE@|g} \
        ${worksrcpath}/Makefile.in
}

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

