EndlessSky: new recipe (#4634)

This commit is contained in:
Vrondir
2020-01-22 20:44:07 +02:00
committed by Jérôme Duval
parent 13e9f876cc
commit b16beab563
2 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
SUMMARY="A 2D space trading and combat game"
DESCRIPTION="Endless Sky is a 2D space trading and combat game \
similar to the classic Escape Velocity series. Explore other star systems. \
Earn money by trading, carrying passengers, or completing missions. \
Use your earnings to buy a better ship or to upgrade the weapons and engines \
on your current one. Blow up pirates. Take sides in a civil war. \
Or leave human space behind and hope to find friendly aliens whose culture \
is more civilized than your own."
HOMEPAGE="http://endless-sky.github.io/"
COPYRIGHT="Michael Zahniser"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/endless-sky/endless-sky/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="58f2e405e171be8426004216df4df7bb3a2792a507a5d01f77a0f02346332f6f"
SOURCE_DIR="endless-sky-$portVersion"
PATCHES="endless_sky-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 !x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
endless_sky$secondaryArchSuffix = $portVersion
app:EndlessSky = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libglew$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libmad$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libGL$secondaryArchSuffix
devel:libglew$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix >= 9
devel:libmad$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libSDL2_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
cmd:scons
"
BUILD()
{
scons $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/EndlessSky
cp -r endless-sky credits.txt data images sounds $appsDir/EndlessSky/
addAppDeskbarSymlink $appsDir/EndlessSky/endless-sky EndlessSky
}

View File

@@ -0,0 +1,47 @@
From d6183ec99de4e362002f91ad64ed474abab9209c Mon Sep 17 00:00:00 2001
From: Vrondir <nikiporumbachanov@gmail.com>
Date: Tue, 21 Jan 2020 21:40:44 +0000
Subject: Remove call to SDL_ShowCursor
diff --git a/source/main.cpp b/source/main.cpp
index 323b594..1516d3c 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -329,7 +329,7 @@ int main(int argc, char *argv[])
if(shouldShowCursor != showCursor)
{
showCursor = shouldShowCursor;
- SDL_ShowCursor(showCursor);
+ //SDL_ShowCursor(showCursor);
}
// Tell all the panels to step forward, then draw them.
--
2.19.0
From 44998bc5259f493f5c46eb2e63a36e44fe1e9052 Mon Sep 17 00:00:00 2001
From: Vrondir <nikiporumbachanov@gmail.com>
Date: Wed, 22 Jan 2020 15:29:14 +0000
Subject: Add ifndef
diff --git a/source/main.cpp b/source/main.cpp
index 1516d3c..2ca3e41 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -329,7 +329,9 @@ int main(int argc, char *argv[])
if(shouldShowCursor != showCursor)
{
showCursor = shouldShowCursor;
- //SDL_ShowCursor(showCursor);
+ #ifndef __HAIKU__
+ SDL_ShowCursor(showCursor);
+ #endif
}
// Tell all the panels to step forward, then draw them.
--
2.19.0