Files
haikuports/media-libs/sdl_sound/sdl_sound-1.0.3.recipe

96 lines
2.5 KiB
Bash

SUMMARY="Simple Direct Media Layer sound library"
DESCRIPTION="sdl_sound handles the decoding of several popular file \
formats, such as .WAV and .MP3. It aims to make the programmer's sound \
playback tasks simpler."
HOMEPAGE="http://www.icculus.org/SDL_sound"
COPYRIGHT="2001-2009 Ryan C. Gordon"
LICENSE="GNU LGPL v2.1"
REVISION="4"
SOURCE_URI="hg+http://hg.icculus.org/icculus/SDL_sound#release-1.0.3"
SOURCE_DIR="SDL_sound-$portVersion"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
sdl_sound$secondaryArchSuffix = $portVersion
cmd:playsound$secondaryArchSuffix = $portVersion compat >= 2
cmd:playsound_simple$secondaryArchSuffix = $portVersion compat >= 2
lib:libSDL_sound$secondaryArchSuffix = 1.0_0.8.0 compat >= 1.0_0
lib:libSDL_sound_1.0$secondaryArchSuffix = 0.8.0 compat >= 1.0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libspeex$secondaryArchSuffix
# lib:libFlac$secondaryArchSuffix
# lib:libmikmod$secondaryArchSuffix
lib:libmodplug$secondaryArchSuffix
# lib:smpeg$secondaryArchSuffix
# lib:physfs$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
"
PROVIDES_devel="
sdl_sound${secondaryArchSuffix}_devel = $portVersion compat >= 1.0
devel:SDL_sound$secondaryArchSuffix = 0.8.0 compat >= 0
devel:libSDL_sound$secondaryArchSuffix = 1.0_0.8.0 compat >= 1.0_0
devel:libSDL_sound_1.0$secondaryArchSuffix = 0.8.0 compat >= 0
"
REQUIRES_devel="
sdl_sound$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsdl$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libspeex$secondaryArchSuffix
# devel:libFlac$secondaryArchSuffix
# devel:libmikmod$secondaryArchSuffix
devel:libmodplug$secondaryArchSuffix
# devel:smpeg$secondaryArchSuffix
# devel:physfs$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:sdl_config$secondaryArchSuffix
"
BUILD()
{
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in
libtoolize --force --copy --install
./bootstrap
aclocal --force --install -I acinclude
autoconf
runConfigure ./configure
make
}
INSTALL()
{
make install
# remove libtool library file
rm $libDir/libSDL_sound.la
prepareInstalledDevelLibs libSDL_sound \
libSDL_sound-1.0
fixPkgconfig
packageEntries devel \
$developDir
}