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="http://www.libsdl.org/projects/SDL_mixer/" COPYRIGHT="1997-2012 Sam Lantinga" LICENSE="Zlib" REVISION="2" SOURCE_URI="http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-$portVersion.tar.gz" CHECKSUM_SHA256="5a24f62a610249d744cbd8d28ee399d8905db7222bf3bdbc8a8b4a76e597695f" SOURCE_DIR="SDL2_mixer-$portVersion" PATCHES="sdl2_mixer-${portVersion}.patch" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" PROVIDES=" sdl2_mixer$secondaryArchSuffix = $portVersion compat >= 2.0 lib:libSDL2_mixer$secondaryArchSuffix = $portVersion compat >= 2.0 lib:libSDL2_mixer_2.0$secondaryArchSuffix = 0.0.1 compat >= 0 " REQUIRES=" haiku$secondaryArchSuffix lib:libgl$secondaryArchSuffix lib:libsdl2_2.0$secondaryArchSuffix lib:libogg$secondaryArchSuffix lib:libflac$secondaryArchSuffix lib:libfluidsynth$secondaryArchSuffix lib:libmad$secondaryArchSuffix lib:libvorbis$secondaryArchSuffix lib:libmikmod$secondaryArchSuffix # requires libSDL lib:libsmpeg$secondaryArchSuffix # requires libSDL " PROVIDES_devel=" sdl2_mixer${secondaryArchSuffix}_devel = $portVersion compat >= 2.0 devel:libSDL2_mixer$secondaryArchSuffix = $portVersion compat >= 2.0 devel:libSDL2_mixer_2.0$secondaryArchSuffix = 0.0.1 compat >= 0 " REQUIRES_devel=" sdl2_mixer$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" devel:libsdl2$secondaryArchSuffix devel:libogg$secondaryArchSuffix devel:libflac$secondaryArchSuffix devel:libfluidsynth$secondaryArchSuffix devel:libmad$secondaryArchSuffix devel:libvorbis$secondaryArchSuffix devel:libmikmod$secondaryArchSuffix # requires libSDL devel:libsmpeg$secondaryArchSuffix # requires libSDL " BUILD_PREREQUIRES=" haiku${secondaryArchSuffix}_devel cmd:aclocal cmd:autoconf cmd:automake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:libtool cmd:make cmd:pkg_config$secondaryArchSuffix " BUILD() { libtoolize -fci aclocal --force --install -I acinclude autoconf runConfigure ./configure make $jobArgs } INSTALL() { make install prepareInstalledDevelLibs libSDL2_mixer prepareInstalledDevelLibs libSDL2_mixer-2.0 fixPkgconfig packageEntries devel \ $developDir }