SUMMARY="Simple Direct Media Layer is a cross-platform media development library" DESCRIPTION=" Simple Direct Media Layer is a cross-platform development library designed to \ provide low level access to audio, keyboard, mouse, joystick, and graphics via \ OpenGL. " HOMEPAGE="http://www.libsdl.org/" SRC_URI="http://www.libsdl.org/release/SDL-1.2.15.tar.gz" CHECKSUM_MD5="9d96df8417572a2afb781a7c4c811a85" REVISION="3" LICENSE="GNU LGPL v2.1" COPYRIGHT="1997-2012 Sam Lantinga" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" PROVIDES=" libsdl$secondaryArchSuffix = $portVersion lib:libSDL$secondaryArchSuffix = 1.2_0.11.4 compat >= 1.2_0 lib:libSDL_1.2$secondaryArchSuffix = 0.11.4 compat >= 0 " REQUIRES=" haiku$secondaryArchSuffix >= $haikuVersion lib:libGL$secondaryArchSuffix lib:libglu$secondaryArchSuffix lib:libpng$secondaryArchSuffix lib:libjpeg$secondaryArchSuffix # lib:libtiff$secondaryArchSuffix " BUILD_REQUIRES=" devel:libGL$secondaryArchSuffix devel:libglu$secondaryArchSuffix devel:libpng$secondaryArchSuffix devel:libjpeg$secondaryArchSuffix # devel:libtiff$secondaryArchSuffix " 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" PATCHES="libsdl-1.2.15.patchset" 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 \ $dataDir \ $documentationDir } 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$secondaryArchSuffix = $portVersion compat >= 1.2 devel:libSDL$secondaryArchSuffix = 1.2_0.11.4 compat >= 1.2_0 devel:libSDLmain$secondaryArchSuffix = 1.2_0.11.4 compat >= 1.2_0 devel:libSDL_1.2$secondaryArchSuffix = 0.11.4 compat >= 0 " REQUIRES_devel=" libsdl${secondaryArchSuffix} == $portVersion base "