mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
72 lines
1.6 KiB
Bash
72 lines
1.6 KiB
Bash
SUMMARY="A scripting language for games"
|
|
DESCRIPTION="SurgeScript is a scripting language for games.
|
|
Use it to unleash your creativity and build your own amazing interactive content!
|
|
It's such a joy to use SurgeScript! You will love it!"
|
|
HOMEPAGE="https://github.com/alemart/surgescript/"
|
|
COPYRIGHT="2016-2021 Alexandre Martins"
|
|
LICENSE="Apache v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/alemart/surgescript/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="c9f59131d5cd921a11fb1335fe93bd754f4b1eefa1ed95aaa0343a28437f3f78"
|
|
PATCHES="surgescript-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
surgescript$secondaryArchSuffix = $portVersion
|
|
cmd:surgescript
|
|
lib:libsurgescript$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
surgescript${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsurgescript$secondaryArchSuffix = $portVersion
|
|
devel:libsurgescript_static$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
surgescript$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DLIB_SUFFIX=$secondaryArchSubDir \
|
|
-DINCLUDE_PATH=$includeDir
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
rm -rf $prefix/share
|
|
|
|
prepareInstalledDevelLibs libsurgescript \
|
|
libsurgescript-static
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make tests
|
|
}
|