mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
terrarium, bump, disable (not really usefull) (#4524)
This commit is contained in:
34
games-action/terrarium/patches/terrarium-0.1.9.patchset
Normal file
34
games-action/terrarium/patches/terrarium-0.1.9.patchset
Normal file
@@ -0,0 +1,34 @@
|
||||
From aa7a6ad417dfd0499380cc2c0f426022928e7afe Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Fri, 3 Jan 2020 12:18:18 +0100
|
||||
Subject: Fix launch from Tracker and Deskbar
|
||||
|
||||
|
||||
diff --git a/src/main.cpp b/src/main.cpp
|
||||
index dc75c72..86ba129 100644
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -29,10 +29,20 @@ using std::string;
|
||||
#include <vector>
|
||||
using std::vector;
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+#include <libgen.h>
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
const string VERSION = "0.1.9";
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
+ char *binpath = realpath(argv[0], NULL);
|
||||
+ if (binpath != NULL) {
|
||||
+ chdir(dirname(binpath));
|
||||
+ free(binpath);
|
||||
+ }
|
||||
srand(time(null));
|
||||
int screenWidth = 640, screenHeight = 480;
|
||||
bool fullscreen = false, centered=false;
|
||||
--
|
||||
2.24.1
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
SUMMARY="Open source Terraria clone"
|
||||
DESCRIPTION="Terrarium is a free and open source Terraria clone game, \
|
||||
possibly with some new features."
|
||||
HOMEPAGE="https://github.com/hydren/terrarium"
|
||||
COPYRIGHT="hydren"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/hydren/terrarium/releases/download/$portVersion/terrarium-$portVersion-source.tar.gz"
|
||||
CHECKSUM_SHA256="83a4dbd88da1c3b93fd8e1ebeeee973114ba4a473bbd25f32f56fd55801100d6"
|
||||
SOURCE_DIR="terrarium-$portVersion"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
terrarium = $portVersion
|
||||
app:terrarium = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libbox2d
|
||||
lib:libSDL2_2.0
|
||||
lib:libsdl2_gfx_1.0
|
||||
lib:libSDL2_image_2.0
|
||||
lib:libSDL2_mixer_2.0
|
||||
lib:libSDL2_ttf_2.0
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libbox2d
|
||||
devel:libSDL2_2.0
|
||||
devel:libsdl2_gfx
|
||||
devel:libSDL2_image_2.0
|
||||
devel:libSDL2_mixer_2.0
|
||||
devel:libSDL2_ttf_2.0
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
cmd:which
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cp -r build/linux-gcc-sdl2.0-release/ .
|
||||
cd linux-gcc-sdl2.0-release
|
||||
runConfigure ./configure.sh
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/Terrarium
|
||||
cp terrarium $appsDir/Terrarium/Terrarium
|
||||
cp -r resources $appsDir/Terrarium/resources/
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Terrarium/Terrarium
|
||||
}
|
||||
64
games-action/terrarium/terrarium-0.1.9.recipe
Normal file
64
games-action/terrarium/terrarium-0.1.9.recipe
Normal file
@@ -0,0 +1,64 @@
|
||||
SUMMARY="Open source Terraria clone"
|
||||
DESCRIPTION="Terrarium is a free and open source Terraria clone game, \
|
||||
possibly with some new features."
|
||||
HOMEPAGE="https://github.com/hydren/terrarium"
|
||||
COPYRIGHT="hydren"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/hydren/terrarium/releases/download/$portVersion/terrarium-$portVersion-source.tar.gz"
|
||||
CHECKSUM_SHA256="26820ee03f61559e1b32334501db2017d193a99c05a4ad0b1bf2ad28c2b9c4c8"
|
||||
SOURCE_DIR="terrarium-$portVersion"
|
||||
PATCHES="terrarium-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
terrarium$secondaryArchSuffix = $portVersion
|
||||
app:Terrarium = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libBox2D$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libsdl2_gfx_1.0$secondaryArchSuffix
|
||||
lib:libSDL2_image_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_ttf_2.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libBox2D$secondaryArchSuffix
|
||||
devel:libSDL2_2.0$secondaryArchSuffix
|
||||
devel:libsdl2_gfx$secondaryArchSuffix
|
||||
devel:libSDL2_image_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_ttf_2.0$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:which
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cp -r build/linux-gcc-sdl2.0-release/ .
|
||||
cd linux-gcc-sdl2.0-release
|
||||
runConfigure ./configure.sh
|
||||
make clean
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/Terrarium
|
||||
cp linux-gcc-sdl2.0-release/terrarium $appsDir/Terrarium/Terrarium
|
||||
cp -r resources $appsDir/Terrarium/resources/
|
||||
# The config file is needed to play the game
|
||||
cp config.properties $appsDir/Terrarium
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Terrarium/Terrarium
|
||||
}
|
||||
Reference in New Issue
Block a user