# -*- 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 49400 2009-04-09 01:38:58Z jeremyhu@macports.org $

PortSystem          1.0

name                soundtouch
version             1.3.1
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 37820ec1f93335ef6b0f8b4a743fee89 \
                    sha1 d13437848ebe94b46b73fd5b05ba4420d4667527 \
                    rmd160 c75f077fbba5ba20ab803c305129438788acb6fe
use_zip             yes

universal_variant no

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.check regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"

