2016-02-26 01:13:52 +00:00
|
|
|
description "SDL audio mixing and music library"
|
2016-02-24 03:34:01 +00:00
|
|
|
dependencies SDL2
|
2016-02-19 04:12:07 +00:00
|
|
|
check_pkgconfig SDL2_mixer
|
2016-06-15 23:01:48 +00:00
|
|
|
|
|
|
|
variant stable fetch_download \
|
|
|
|
http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
|
|
|
|
variant latest fetch_hg https://hg.libsdl.org/SDL_mixer
|
2016-02-17 04:00:20 +00:00
|
|
|
|
|
|
|
# Disable dependencies on external libraries for sound file formats:
|
2016-02-19 04:12:07 +00:00
|
|
|
config_options="
|
2016-02-17 04:00:20 +00:00
|
|
|
--disable-music-mod --disable-music-mp3
|
|
|
|
--disable-music-flac-shared --disable-music-ogg-shared
|
|
|
|
"
|
|
|
|
|
|
|
|
# ...except ones we have installed:
|
2016-03-06 02:59:19 +00:00
|
|
|
if ! chocpkg installed ${PACKAGE_TYPE}:flac; then
|
2016-02-19 04:12:07 +00:00
|
|
|
config_options+=" --disable-music-flac"
|
2016-02-17 04:00:20 +00:00
|
|
|
fi
|
2016-03-06 02:59:19 +00:00
|
|
|
if ! chocpkg installed ${PACKAGE_TYPE}:libogg; then
|
2016-02-19 04:12:07 +00:00
|
|
|
config_options+=" --disable-music-ogg"
|
2016-02-17 04:00:20 +00:00
|
|
|
fi
|
|
|
|
|
2016-02-28 23:54:30 +00:00
|
|
|
# FluidSynth, if we have it.
|
2016-03-06 02:59:19 +00:00
|
|
|
if chocpkg installed ${PACKAGE_TYPE}:fluidsynth; then
|
2016-02-28 23:54:30 +00:00
|
|
|
config_options+=" --enable-music-midi-fluidsynth"
|
|
|
|
else
|
|
|
|
config_options+=" --disable-music-midi-fluidsynth"
|
|
|
|
fi
|
|
|
|
|
2016-02-19 04:12:07 +00:00
|
|
|
build_autotools $config_options
|