mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
154 lines
2.5 KiB
Plaintext
154 lines
2.5 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 = $portVersion compat >= 1.2
|
|
lib:libsdl = $portVersion compat >= 1.2
|
|
lib:libSDL = $portVersion compat >= 1.2
|
|
lib:libSDL_1.2 = 0.11.4 compat >= 0.11
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libGLU
|
|
"
|
|
BUILD_REQUIRES="
|
|
lib:libpng
|
|
lib:libjpeg
|
|
lib:libtiff
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc
|
|
cmd:ld
|
|
cmd:libtool
|
|
cmd:make
|
|
"
|
|
|
|
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="
|
|
cmd:sdl_config = $portVersion compat >= 1.2
|
|
devel:libSDL_1.2 = 0.11.4 compat >= 0.11
|
|
devel:libSDL = 0.11.4 compat >= 0.11
|
|
devel:libSDLmain = 0.11.4 compat >= 0.11
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
libsdl == $portVersion base
|
|
"
|