solarus-1.5.1: Add new 1.5.1 version working with luajit

This commit is contained in:
Alexander von Gluck IV
2017-04-01 13:36:19 -05:00
parent dd4a006059
commit 3f1df3e8ad

View File

@@ -0,0 +1,66 @@
SUMMARY="An ARPG game engine"
DESCRIPTION="
Solarus is an open-source Zelda-like 2D game engine."
HOMEPAGE="http://solarus-games.org"
COPYRIGHT="2006-2017 Christopho, Solarus"
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="http://www.solarus-games.org/downloads/solarus/solarus-${portVersion}-src.tar.gz"
CHECKSUM_SHA256="6cd3928a024f7c18a163a1679a92dfff3c37139c5c49fa5348704df5357e8da3"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
solarus$secondaryArchSuffix = $portVersion
cmd:solarus_run = $portVersion
lib:libsolarus$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libSDL2$secondaryArchSuffix
lib:libSDL2_ttf$secondaryArchSuffix
lib:libSDL2_image$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libmodplug$secondaryArchSuffix >= 1.0
lib:libphysfs$secondaryArchSuffix
lib:libluajit_5.1$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libSDL2$secondaryArchSuffix
devel:libSDL2_ttf$secondaryArchSuffix
devel:libSDL2_image$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libmodplug$secondaryArchSuffix >= 1.0
devel:libphysfs$secondaryArchSuffix
devel:libluajit_5.1$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
"
BUILD()
{
cmake -DCMAKE_INSTALL_PREFIX="$prefix" \
-DCMAKE_BUILD_TYPE=Release -DSOLARUS_GUI=off .
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $includeDir
mv $prefix/include/* $includeDir/
rm -rf $prefix/include
}