# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 85865 2011-10-17 03:19:03Z jmr@macports.org $

PortSystem      1.0

name            libsdl_sound
version         1.0.3
categories      audio devel
license         LGPL-2.1+
maintainers     nomaintainer
platforms       macosx
description     handles decoding of several popular sound file formats

long_description \
    SDL_sound is a library that handles the decoding of \
    several popular sound file formats, such as .WAV and \
    .MP3. It is meant to make the programmer's sound \
    playback tasks simpler.

homepage        http://icculus.org/SDL_sound/
master_sites    http://icculus.org/SDL_sound/downloads/
distname        SDL_sound-${version}

checksums       md5     aa09cd52df85d29bee87a664424c94b5 \
                sha1    1984bc20b2c756dc71107a5a0a8cebfe07e58cb1 \
                rmd160  8e56daa71f827a4a22e7071a4e4f37c21dd96105

depends_lib     path:lib/pkgconfig/sdl.pc:libsdl \
                port:smpeg \
                port:libvorbis \
                port:libmodplug \
                port:libogg \
                port:flac \
                path:lib/libspeex.dylib:speex \
                port:physfs

configure.args  --disable-sdltest \
                --disable-smpegtest \
                --disable-mikmod

configure.cppflags-append   -I$prefix/include/smpeg \
                            -I$prefix/include/SDL

use_parallel_build  yes

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} CHANGELOG COPYING CREDITS README TODO \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.regex {SDL_sound (\d+(?:\.\d+)*)}
