From 474d6b724ad6547cf741e0f36a50c1e39cc03c06 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Sun, 13 Oct 2013 02:48:59 -0700 Subject: [PATCH] Fixed sdl_mixer recipe. --- media-libs/sdl_mixer/sdl_mixer-1.2.12.recipe | 84 +++++++++++++++----- 1 file changed, 64 insertions(+), 20 deletions(-) diff --git a/media-libs/sdl_mixer/sdl_mixer-1.2.12.recipe b/media-libs/sdl_mixer/sdl_mixer-1.2.12.recipe index 18c50b697..19e265b7a 100644 --- a/media-libs/sdl_mixer/sdl_mixer-1.2.12.recipe +++ b/media-libs/sdl_mixer/sdl_mixer-1.2.12.recipe @@ -1,36 +1,80 @@ +SUMMARY="sdl_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." DESCRIPTION="Simple Direct Layer Mixer Library" HOMEPAGE="http://www.libsdl.org/projects/SDL_mixer/" SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz" CHECKSUM_MD5="e03ff73d77a55e3572ad0217131dc4a1" +LICENSE="Zlib" +COPYRIGHT="1997-2012 Sam Lantinga" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="libsdl >= 1.2.14 - media-libs/flac >= 1.2.1 - media-libs/libmad >= 0.15.1 - media-libs/libvorbis >= 1.3.1 - media-libs/libmikmod >= 3.1.11 - media-libs/libogg >= 1.2.0 - media-libs/smpeg >= 0.4.5" +ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + sdl_net =$portVersion + lib:libSDL_mixer_1.2 = $portVersion compat >= 1.2 + devel:libSDL_mixer = $portVersion compat >= 1.2 + " + +REQUIRES=" + haiku + libsdl + flac + libmad + libvorbis + libogg +# libmikmod +# smpeg + " + +BUILD_REQUIRES=" + devel:libsdl + " + +BUILD_PREREQUIRES=" + haiku_devel + cmd:aclocal + cmd:autoconf + cmd:gcc + cmd:ld + cmd:libtool + cmd:make + cmd:pkg_config + cmd:sdl_config + devel:libogg + devel:flac + devel:libmad + devel:libvorbis + devel:libogg +# devel:libmikmod +# devel:smpeg + " + +SOURCE_DIR="SDL_mixer-$portVersion" BUILD() { - cd SDL_mixer-1.2.12 libtoolize --force --copy --install - aclocal --install -I acinclude - ./autogen.sh - MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man - LIBDIR=`finddir B_COMMON_LIB_DIRECTORY` - ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ - --libdir=$LIBDIR \ - --mandir=$MANDIR \ - --enable-music-midi + aclocal --force --install -I acinclude + autoconf + runConfigure ./configure make } INSTALL() { - cd SDL_mixer-1.2.12 make install + + prepareInstalledDevelLib libSDL_mixer + fixPkgconfig + + packageEntries devel \ + $developDir } -LICENSE="Zlib" -COPYRIGHT="1997-2012 Sam Lantinga" + +PROVIDES_devel=" + devel:SDL_mixer = 0.0.0 compat >= 0 + devel:libSDL_mixer = 0.0.0 compat >= 0 + " + +REQUIRES_devel=" + sdl_mixer == $portVersion base + "