PortSystem      1.0
PortGroup       github 1.0

github.setup    libsdl-org SDL_mixer 3a4cdce6dca7413fc37bf5f6d81cd53d3b54e9d7
name            libsdl_mixer
version         1.2.12-20220607
revision        2
categories      audio devel
license         zlib
maintainers     {jmr @jmroot} openmaintainer
description     Audio mixer library for SDL

long_description \
    A sample multi-channel audio mixer library. It supports any number of \
    simultaneously playing channels of 16 bit stereo audio, plus a single \
    channel of music.

homepage        https://web.archive.org/web/20220314212241/http://www.libsdl.org/projects/SDL_mixer/release-1.2.html

github.tarball_from archive
checksums       rmd160 79d6f4264b633dd39d77a97f5fd475ac6caf2cea \
                sha256 332210d3a3f21173c08ca7963b4ed23c31fe3f0c40af5a775b2e43483639ecb8

depends_build   path:bin/pkg-config:pkgconfig
depends_lib     port:libsdl \
                port:flac \
                port:libvorbis \
                port:libmikmod \
                port:mpg123

configure.args  --disable-sdltest \
                --disable-music-fluidsynth-midi \
                --enable-music-mod \
                --disable-music-mod-shared \
                --disable-music-ogg-shared \
                --disable-music-flac-shared \
                --disable-music-mp3-shared

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} CHANGES COPYING README \
        ${destroot}${docdir}
}

livecheck.type  none
