# -*- 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

PortSystem          1.0

name                libsdl_sound
version             1.0.3
revision            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 \
                    sha256  3999fd0bbb485289a52be14b2f68b571cb84e380cc43387eadf778f64c79e6df \
                    size    1127100

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

patchfiles          patch-playsound-physfsrwops.h.diff

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

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

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+)*)}
