sdl2_mixer: Add sdl2_mixer recipe

This commit is contained in:
Alexander von Gluck IV
2013-12-26 00:07:32 -06:00
parent 1e01e0e265
commit bfd53c6e2f
2 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/configure.in b/configure.in
index f71c002..cd41fc0 100644
--- a/configure.in
+++ b/configure.in
@@ -493,7 +493,7 @@ if test x$enable_music_ogg = xyes; then
fi
else
AC_CHECK_HEADER([vorbis/vorbisfile.h], [have_ogg_hdr=yes])
- AC_CHECK_LIB([vorbisfile -lvorbis -logg -lm], [ov_open_callbacks], [have_ogg_lib=yes])
+ AC_CHECK_LIB([vorbisfile -lvorbis -logg], [ov_open_callbacks], [have_ogg_lib=yes])
if test x$have_ogg_hdr = xyes -a x$have_ogg_lib = xyes; then
case "$host" in
*-*-darwin*)

View File

@@ -0,0 +1,89 @@
SUMMARY="Simple Direct Layer Mixer 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/"
SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.0.tar.gz"
CHECKSUM_MD5="65f6d80df073a1fb3bb537fbda031b50"
LICENSE="Zlib"
COPYRIGHT="1997-2012 Sam Lantinga"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
PATCHES="sdl2_mixer-${portVersion}.patch"
PROVIDES="
sdl2_mixer$secondaryArchSuffix = $portVersion compat >= 2.0
lib:libSDL2_mixer$secondaryArchSuffix = 2.0
lib:libSDL2_mixer_2.0$secondaryArchSuffix = 0.0
cmd:playwave$secondaryArchSuffix
cmd:playmus$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libSDL2$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
"
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 >= $haikuVersion
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
SOURCE_DIR="SDL2_mixer-$portVersion"
BUILD()
{
libtoolize --force --copy --install
aclocal --force --install -I acinclude
autoconf
runConfigure ./configure \
SMPEG_CONFIG=smpeg_config$secondaryArchSuffix
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libSDL2_mixer
fixPkgconfig
packageEntries devel \
$developDir
}
PROVIDES_devel="
sdl2_mixer${secondaryArchSuffix}_devel = $portVersion compat >= 2.0
devel:sdl2_mixer$secondaryArchSuffix = $portVersion compat >= 2.0
devel:libSDL2_mixer$secondaryArchSuffix = $portVersion compat >= 2.0
"
REQUIRES_devel="
sdl2_mixer$secondaryArchSuffix == $portVersion base
"