chocpkg/pkgdef/SDL2_mixer.sh
Simon Howard 128a9d35fd Add ability for packages to provide a description.
It's nice to be able to get some idea of what a package does.
2016-02-25 20:13:52 -05:00

20 lines
607 B
Bash

description "SDL audio mixing and music library"
dependencies SDL2
check_pkgconfig SDL2_mixer
fetch_download http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
# Disable dependencies on external libraries for sound file formats:
config_options="
--disable-music-mod --disable-music-mp3
--disable-music-flac-shared --disable-music-ogg-shared
"
# ...except ones we have installed:
if ! chocpkg installed flac; then
config_options+=" --disable-music-flac"
fi
if ! chocpkg installed libogg; then
config_options+=" --disable-music-ogg"
fi
build_autotools $config_options