2017-04-01 18:36:19 +00:00
|
|
|
SUMMARY="An ARPG game engine"
|
2019-07-18 12:55:41 +00:00
|
|
|
DESCRIPTION="A lightweight, free and open-source game engine for Action-RPGs
|
|
|
|
|
|
|
|
* A 2D game engine written in C++, and executing games made in Lua.
|
|
|
|
* Specifically designed with 16-bit classic Action-RPGs in mind.
|
|
|
|
* Available on multiple platforms.
|
|
|
|
* Completely free and open-source, under GPL v3 License."
|
2017-04-01 18:36:19 +00:00
|
|
|
HOMEPAGE="http://solarus-games.org"
|
2019-12-24 11:27:47 +00:00
|
|
|
COPYRIGHT="2006-2019 Christopho, Solarus"
|
2017-04-01 18:36:19 +00:00
|
|
|
LICENSE="GNU GPL v3"
|
2019-07-18 12:55:41 +00:00
|
|
|
REVISION="1"
|
2019-12-24 11:27:47 +00:00
|
|
|
SOURCE_URI="https://gitlab.com/solarus-games/solarus/-/archive/v$portVersion/solarus-v$portVersion.tar.gz"
|
2020-12-27 06:58:07 +00:00
|
|
|
CHECKSUM_SHA256="dbcd74605e4101a9df310159389e6a2db89bf654e6ee24943b3c05f3ab0b13fd"
|
2019-12-24 11:27:47 +00:00
|
|
|
SOURCE_DIR="solarus-v$portVersion"
|
2017-04-01 18:36:19 +00:00
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2017-04-01 18:36:19 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
solarus$secondaryArchSuffix = $portVersion
|
2019-12-24 11:27:47 +00:00
|
|
|
app:Solarus
|
2017-06-04 21:34:15 +00:00
|
|
|
cmd:solarus = $portVersion
|
2019-07-18 13:18:21 +00:00
|
|
|
cmd:solarus_launcher = $portVersion
|
2017-04-01 18:36:19 +00:00
|
|
|
cmd:solarus_run = $portVersion
|
|
|
|
lib:libsolarus$secondaryArchSuffix
|
2017-06-04 21:34:15 +00:00
|
|
|
lib:libsolarus_gui$secondaryArchSuffix
|
2017-04-01 18:36:19 +00:00
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
2019-07-18 12:55:41 +00:00
|
|
|
lib:libGL$secondaryArchSuffix
|
2017-04-01 18:36:19 +00:00
|
|
|
lib:libluajit_5.1$secondaryArchSuffix
|
2018-08-09 08:27:19 +00:00
|
|
|
lib:libmodplug$secondaryArchSuffix >= 1.0
|
2017-04-01 18:36:19 +00:00
|
|
|
lib:libogg$secondaryArchSuffix
|
2018-08-09 08:27:19 +00:00
|
|
|
lib:libopenal$secondaryArchSuffix
|
|
|
|
lib:libphysfs$secondaryArchSuffix
|
2017-06-04 21:34:15 +00:00
|
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
2018-08-09 08:27:19 +00:00
|
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
|
|
lib:libSDL2_image_2.0$secondaryArchSuffix
|
|
|
|
lib:libSDL2_ttf_2.0$secondaryArchSuffix
|
|
|
|
lib:libvorbis$secondaryArchSuffix
|
2017-04-01 18:36:19 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
2020-12-27 06:58:07 +00:00
|
|
|
devel:glm
|
2017-04-01 18:36:19 +00:00
|
|
|
devel:libluajit_5.1$secondaryArchSuffix
|
2018-08-09 08:27:19 +00:00
|
|
|
devel:libmodplug$secondaryArchSuffix >= 1.0
|
2017-04-01 18:36:19 +00:00
|
|
|
devel:libogg$secondaryArchSuffix
|
2018-08-09 08:27:19 +00:00
|
|
|
devel:libopenal$secondaryArchSuffix
|
|
|
|
devel:libphysfs$secondaryArchSuffix
|
2017-06-04 21:34:15 +00:00
|
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
2018-08-09 08:27:19 +00:00
|
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
|
|
devel:libSDL2_image_2.0$secondaryArchSuffix
|
|
|
|
devel:libSDL2_ttf_2.0$secondaryArchSuffix
|
|
|
|
devel:libvorbis$secondaryArchSuffix
|
2017-04-01 18:36:19 +00:00
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:cmake
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:ld$secondaryArchSuffix
|
|
|
|
cmd:libtoolize
|
2019-07-18 12:55:41 +00:00
|
|
|
cmd:lrelease$secondaryArchSuffix
|
2018-08-09 08:27:19 +00:00
|
|
|
cmd:make
|
2017-04-01 18:36:19 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
2019-12-24 11:27:47 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="$prefix" \
|
|
|
|
-DSOLARUS_HEADERS_INSTALL_DESTINATION=$includeDir \
|
|
|
|
-DSOLARUS_LIBRARY_INSTALL_DESTINATION=$libDir \
|
|
|
|
-DSOLARUS_MANUAL_INSTALL_DESTINATION=$manDir \
|
|
|
|
-DSOLARUS_WRITE_DIR=$settingsDir . -L
|
2017-04-01 18:36:19 +00:00
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
make install
|
|
|
|
|
2017-09-29 16:53:32 +00:00
|
|
|
rm -rf $prefix/share
|
2019-12-24 11:27:47 +00:00
|
|
|
addAppDeskbarSymlink $prefix/bin/solarus-launcher Solarus
|
2017-04-01 18:36:19 +00:00
|
|
|
}
|