Files
haikuports/media-libs/sdl2_mixer/sdl2_mixer-2.8.0.recipe
Sebastian 6c35da89c1 sdl2_mixer: updated to 2.8.0 and patch removed (#11388)
* sdl2_mixer: remove patch

The issue has been fixed, the patch is no longer needed.

https://github.com/FluidSynth/fluidsynth/issues/748
https://hg.libsdl.org/SDL_mixer/rev/b0afe341a91d

* removed libmodplug, no longer needed.

sdl2_mixer uses libxmp by default, no need for libmodplug anymore
2024-12-02 13:23:04 -05:00

91 lines
2.4 KiB
Bash

SUMMARY="SDL2 mixing library"
DESCRIPTION="
sdl2_mixer is a simple multi-channel audio mixer library. It supports any \
number of simultaneously playing channels of 16 bit stereo audio, plus a \
single channel of music, mixed by the popular FLAC, MikMoD MOD, Timidity MIDI, \
Ogg Vorbis, and SMPEG MP3 libraries."
HOMEPAGE="https://www.libsdl.org/projects/SDL_mixer/"
COPYRIGHT="1997-2012 Sam Lantinga"
LICENSE="Zlib"
REVISION="1"
SOURCE_URI="https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-$portVersion.tar.gz"
CHECKSUM_SHA256="1cfb34c87b26dbdbc7afd68c4f545c0116ab5f90bbfecc5aebe2a9cb4bb31549"
SOURCE_DIR="SDL2_mixer-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sdl2_mixer$secondaryArchSuffix = $portVersion compat >= 2.0
lib:libSDL2_mixer_2.0$secondaryArchSuffix = 0.800.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libflac$secondaryArchSuffix
lib:libfluidsynth$secondaryArchSuffix >= 2
lib:libmad$secondaryArchSuffix
lib:libmpg123$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libxmp$secondaryArchSuffix
"
PROVIDES_devel="
sdl2_mixer${secondaryArchSuffix}_devel = $portVersion compat >= 2.0
devel:libSDL2_mixer$secondaryArchSuffix = 0.800.0 compat >= 0
devel:libSDL2_mixer_2.0$secondaryArchSuffix = 0.800.0 compat >= 0
"
REQUIRES_devel="
sdl2_mixer$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libflac$secondaryArchSuffix
devel:libfluidsynth$secondaryArchSuffix >= 2
devel:libmad$secondaryArchSuffix
devel:libmpg123$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libSDL2_2.0$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libxmp$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
libtoolize -fci
aclocal --force --install -I acinclude
autoconf
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
runConfigure ./configure --disable-music-wave
else
runConfigure ./configure
fi
make $jobArgs
}
INSTALL()
{
make install
#remove libtool file
rm $libDir/*.{a,la}
prepareInstalledDevelLibs libSDL2_mixer libSDL2_mixer-2.0
fixPkgconfig
packageEntries devel \
$developDir
}