From d437f843f4a8707c9aa82f23aec1ee045d365008 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Mon, 14 Oct 2013 03:04:45 -0700 Subject: [PATCH] Fixed sdl_sound recipe. --- media-libs/sdl_sound/sdl_sound-1.0.3.recipe | 73 +++++++++++++++++---- 1 file changed, 60 insertions(+), 13 deletions(-) diff --git a/media-libs/sdl_sound/sdl_sound-1.0.3.recipe b/media-libs/sdl_sound/sdl_sound-1.0.3.recipe index 4f5b773e0..76e780272 100644 --- a/media-libs/sdl_sound/sdl_sound-1.0.3.recipe +++ b/media-libs/sdl_sound/sdl_sound-1.0.3.recipe @@ -1,26 +1,73 @@ -DESCRIPTION="sdl-sound" +SUMMARY="Library that handles decoding of several popular sound file formats." +DESCRIPTION="sdl-sound is a library that handles the decoding of several popular file formats, such as .WAV and .MP3. It is meant to make the programmer's sound playback tasks simpler." HOMEPAGE="http://www.icculus.org/SDL_sound" SRC_URI="hg+http://hg.icculus.org/icculus/SDL_sound#release-1.0.3" +LICENSE="GNU LGPL v2.1" +COPYRIGHT="2001-2009 Ryan C. Gordon" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="media-libs/libogg >= 1.1.4" + +ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + sdl_sound =$portVersion + cmd:playsound = $portVersion compat >= 2 + cmd:playsound_simple = $portVersion compat >= 2 + lib:libSDL_sound_1.0 = $portVersion compat >= 1.0 + " + +REQUIRES=" + haiku + libsdl + " + +BUILD_REQUIRES=" + devel:libsdl + devel:libogg + " + +BUILD_PREREQUIRES=" + haiku_devel + cmd:aclocal + cmd:autoconf + cmd:gcc + cmd:ld + cmd:libtool + cmd:make + cmd:pkg_config + cmd:sdl_config + " + +SOURCE_DIR="SDL_sound-$portVersion" + BUILD() { - cd sdl-sound-1.0.3 - libtoolize --copy --force --install + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in + libtoolize --force --copy --install ./bootstrap - MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man - LIBDIR=`finddir B_COMMON_LIB_DIRECTORY` - ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ - --libdir=$LIBDIR \ - --mandir=$MANDIR + aclocal --force --install -I acinclude + autoconf + runConfigure ./configure make } INSTALL() { - cd sdl-sound-1.0.3 make install + + prepareInstalledDevelLib libSDL_sound + fixPkgconfig + + packageEntries devel \ + $developDir } -LICENSE="GNU LGPL v2.1" -COPYRIGHT="2001-2009 Ryan C. Gordon" + +PROVIDES_devel=" + devel:SDL_sound = 0.8.0 compat >= 0 + devel:libSDL_sound = 0.8.0 compat >= 0 +# devel:libSDL_sound = $portVersion compat >= 1.0 + devel:sdl_sound = 0.0.0 compat >= 0 + " + +REQUIRES_devel=" + sdl_sound == $portVersion base + "