chocpkg/pkgdef/SDL2_mixer.sh
Simon Howard 24650af7d9 Add SHA256 checking for downloads.
Since we're downloading arbitrary executable code from websites and
running it, we should at least have some confidence it's the right
thing we're running.
2016-07-08 20:41:02 -04:00

31 lines
990 B
Bash

description "SDL audio mixing and music library"
dependencies SDL2
check_pkgconfig SDL2_mixer
variant stable fetch_download \
https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz \
5a24f62a610249d744cbd8d28ee399d8905db7222bf3bdbc8a8b4a76e597695f
variant latest fetch_hg https://hg.libsdl.org/SDL_mixer
# 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 ${PACKAGE_TYPE}:flac; then
config_options+=" --disable-music-flac"
fi
if ! chocpkg installed ${PACKAGE_TYPE}:libogg; then
config_options+=" --disable-music-ogg"
fi
# FluidSynth, if we have it.
if chocpkg installed ${PACKAGE_TYPE}:fluidsynth; then
config_options+=" --enable-music-midi-fluidsynth"
else
config_options+=" --disable-music-midi-fluidsynth"
fi
build_autotools $config_options