mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 04:58:52 +02:00
93 lines
2.5 KiB
Plaintext
93 lines
2.5 KiB
Plaintext
SUMMARY="Simple Direct Media Layer 2.0"
|
|
DESCRIPTION="
|
|
Simple DirectMedia Layer is a cross-platform development library designed to \
|
|
provide low level access to audio, keyboard, mouse, joystick, and graphics \
|
|
hardware via OpenGL and Direct3D. It is used by video playback software, \
|
|
emulators, and popular games.
|
|
"
|
|
HOMEPAGE="http://www.libsdl.org/"
|
|
SRC_URI="http://www.libsdl.org/release/SDL2-2.0.1.tar.gz"
|
|
CHECKSUM_MD5="0eb97039488bf463e775295f7b18b227"
|
|
REVISION="2"
|
|
LICENSE="Zlib"
|
|
COPYRIGHT="1997-2013 Sam Lantinga"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libsdl2$secondaryArchSuffix = $portVersion compat >= 2.0
|
|
cmd:sdl2_config = $portVersion
|
|
lib:libSDL2$secondaryArchSuffix = 2.0_0.1.0 compat >= 2.0_0.0
|
|
lib:libSDL2_2.0$secondaryArchSuffix = 0.1.0 compat >= 0.0
|
|
lib:libSDL2_2.0.1$secondaryArchSuufix = 0.1.0 compat >= 0.0
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix >= $haikuVersion
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libglu$secondaryArchSuffix
|
|
lib:libpng$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libglu$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
"
|
|
# devel:libtiff$secondaryArchSuffix # haiku_devel missing devel_libtiff
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:libtool
|
|
cmd:aclocal
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
"
|
|
|
|
SOURCE_DIR="SDL2-$portVersion"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# devel package
|
|
prepareInstalledDevelLibs \
|
|
libSDL2 \
|
|
libSDL2main \
|
|
libSDL2_test \
|
|
libSDL2-2.0
|
|
|
|
fixPkgconfig
|
|
fixDevelopLibDirReferences $binDir/sdl2-config$secondaryArchSuffix
|
|
|
|
packageEntries devel \
|
|
$developDir $binDir/sdl2-config$secondaryArchSuffix $dataDir
|
|
}
|
|
|
|
# ----- devel package -------------------------------------
|
|
PROVIDES_devel="
|
|
libsdl2${secondaryArchSuffix}_devel = $portVersion compat >= 2.0
|
|
cmd:sdl2_config$secondaryArchSuffix = $portVersion compat >= 2.0
|
|
devel:libSDL2$secondaryArchSuffix = 2.0_0.1.0 compat >= 2.0_0
|
|
devel:libSDL2main$secondaryArchSuffix = 2.0_0.1.0 compat >= 2.0_0
|
|
devel:libSDL2_test$secondaryArchSuffix = 2.0_0.1.0 compat >= 2.0_0
|
|
devel:libSDL2_2.0$secondaryArchSuffix = 0.1.0 compat >= 0.0
|
|
devel:libSDL2_2.0.1$secondaryArchSuffix = 0.1.0 compat >= 0.0
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
libsdl2$secondaryArchSuffix == $portVersion base
|
|
"
|