mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 21:18:51 +02:00
libsdl2: add recipe for version 2.0.4.
* remove oldest recipes.
This commit is contained in:
88
media-libs/libsdl2/libsdl2-2.0.4.recipe
Normal file
88
media-libs/libsdl2/libsdl2-2.0.4.recipe
Normal file
@@ -0,0 +1,88 @@
|
||||
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/"
|
||||
COPYRIGHT="1997-2014 Sam Lantinga"
|
||||
LICENSE="Zlib"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://www.libsdl.org/release/SDL2-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="da55e540bf6331824153805d58b590a29c39d2d506c6d02fa409aedeab21174b"
|
||||
SOURCE_DIR="SDL2-$portVersion"
|
||||
PATCHES="libsdl2-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
libsdl2$secondaryArchSuffix = $portVersion compat >= 2.0
|
||||
lib:libSDL2$secondaryArchSuffix = 0.4.0 compat >= 0
|
||||
lib:libSDL2_2.0$secondaryArchSuffix = 0.4.0 compat >= 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libsdl2${secondaryArchSuffix}_devel = $portVersion compat >= 2.0
|
||||
cmd:sdl2_config$secondaryArchSuffix = $portVersion compat >= 2.0
|
||||
devel:libSDL2$secondaryArchSuffix = 0.4.0 compat >= 0
|
||||
devel:libSDL2main$secondaryArchSuffix = 0.4.0 compat >= 0
|
||||
devel:libSDL2_test$secondaryArchSuffix = 0.4.0 compat >= 0
|
||||
devel:libSDL2_2.0$secondaryArchSuffix = 0.4.0 compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libsdl2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:libtool
|
||||
cmd:aclocal
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:which
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:gettext
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
if [ $effectiveTargetArchitecture != "x86_gcc2" ]; then
|
||||
sed -i 's/lstdc++.r4/lstdc++/' configure.in
|
||||
fi
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# devel package
|
||||
prepareInstalledDevelLibs \
|
||||
libSDL2 \
|
||||
libSDL2main \
|
||||
libSDL2_test \
|
||||
libSDL2-2.0
|
||||
|
||||
fixPkgconfig
|
||||
fixDevelopLibDirReferences $binDir/sdl2-config
|
||||
|
||||
packageEntries devel \
|
||||
$developDir $binDir/sdl2-config $dataDir
|
||||
}
|
||||
Reference in New Issue
Block a user