Files
haikuports/media-libs/libsdl/libsdl-1.2.15.recipe
2013-10-31 03:31:37 -07:00

163 lines
2.9 KiB
Plaintext

SUMMARY="Simple Direct Media Layer"
DESCRIPTION="Simple Direct Media Layer"
HOMEPAGE="http://www.libsdl.org/"
SRC_URI="http://www.libsdl.org/release/SDL-1.2.15.tar.gz"
CHECKSUM_MD5="9d96df8417572a2afb781a7c4c811a85"
REVISION="1"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1997-2012 Sam Lantinga"
ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
libsdl$secondaryArchSuffix = $portVersion
lib:libSDL$secondaryArchSuffix = 0.11.4 compat >= 0
lib:libSDL_1.2$secondaryArchSuffix = 1.2_0.11.4 compat >= 1.2_0
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
# lib:libGL$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
lib:libpng
lib:libjpeg
lib:libtiff
"
BUILD_REQUIRES="
# devel:libGL$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libpng
devel:libjpeg
# devel:libtiff
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:autoconf
cmd:libtool
cmd:aclocal
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:nasm
"
SOURCE_DIR="SDL-$portVersion"
PATCH()
{
sed -i 's/AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)/have_alsa=no/' configure.in
sed -i 's/AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)/have_esd=no/' configure.in
echo "AC_CONFIG_MACRO_DIR([acinclude])" >> configure.in
}
BUILD()
{
libtoolize --force --copy --install
aclocal -I acinclude
autoconf
runConfigure ./configure --includedir=$includeDir
make $jobArgs
}
INSTALL()
{
make install
# devel package
prepareInstalledDevelLibs \
libSDL libSDL-1.2 \
libSDLmain
fixPkgconfig
fixDevelopLibDirReferences $binDir/sdl-config
packageEntries devel \
$developDir $binDir/sdl-config
}
TEST()
{
cd test
runConfigure ./configure
make $jobArgs
echo testvidoinfo
testvidinfo
echo testgl
testgl
echo testwm
testwm
echo testhread
testhread
echo testsprite
testsprite
echo testdyngl
testdyngl
echo testoverlay
testoverlay
echo testoverlay2
testoverlay2
echo threadwin
threadwin
echo testalpha
testalpha
echo testiconv
testiconv
echo testtimer
testtimer
echo graywin
graywin
echo testerror
testerror
echo torturethread
torturethread
echo testbitmap
testbitmap
echo testjoystick
testjoystick
echo testver
testver
echo testfile
testfile
echo testpalette
testpalette
echo loopwave
loopwave
echo testblitspeed
testblitspeed
echo testkeys
testkeys
echo testcursor
testcursor
echo checkkeys
checkkeys
echo testgamma
testgamma
echo testplatform
testplatform
echo testcdrom
testcdrom
echo testloadso
testloadso
echo testwim
testwin
echo testsem
testsem
echo testlock
testlock
}
# ----- devel package ------------------------
PROVIDES_devel="
libsdl${secondaryArchSuffix}_devel = 1.2.15 compat >= 1.2
cmd:sdl_config = $portVersion compat >= 1.2
devel:libSDL$secondaryArchSuffix = 0.11.4 compat >= 0
devel:libSDLmain$secondaryArchSuffix = 0.11.4 compat >= 0
devel:libSDL_1.2$secondaryArchSuffix = 1.2_0.11.4 compat >= 1.2_0
"
REQUIRES_devel="
libsdl${secondaryArchSuffix} == $portVersion base
"