mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
72
games-action/powermanga/patches/powermanga-0.93.1.patchset
Normal file
72
games-action/powermanga/patches/powermanga-0.93.1.patchset
Normal file
@@ -0,0 +1,72 @@
|
||||
From 40817bc1c231d878d803df2bb1b487785b946824 Mon Sep 17 00:00:00 2001
|
||||
From: Abdur-Raheem Idowu <abdurraheemidowu@gmail.com>
|
||||
Date: Thu, 26 Dec 2019 11:56:43 +0000
|
||||
Subject: Correcting install and score directories
|
||||
|
||||
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index 0327a54..d9aceae 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
-gamesdir = $(prefix)/games
|
||||
-scoredir = /var/games/powermanga
|
||||
+gamesdir = $(prefix)/apps/Powermanga
|
||||
+scoredir = $(prefix)/settings/Powermanga
|
||||
score = powermanga.hi
|
||||
|
||||
games_PROGRAMS = powermanga
|
||||
--
|
||||
2.19.0
|
||||
|
||||
|
||||
From c55862a616f8925a26c7bdf7b83ad772ac868b58 Mon Sep 17 00:00:00 2001
|
||||
From: Abdur-Raheem Idowu <abdurraheemidowu@gmail.com>
|
||||
Date: Thu, 26 Dec 2019 11:59:04 +0000
|
||||
Subject: Correcting data directory
|
||||
|
||||
|
||||
diff --git a/src/tools.c b/src/tools.c
|
||||
index 07fbad0..a8d1eb3 100644
|
||||
--- a/src/tools.c
|
||||
+++ b/src/tools.c
|
||||
@@ -622,7 +622,12 @@ locate_data_file (const char *const name)
|
||||
#else
|
||||
struct stat s;
|
||||
#endif
|
||||
+
|
||||
+#ifdef __HAIKU__
|
||||
+ const char *subdir = "/data/games/powermanga/";
|
||||
+#else
|
||||
const char *subdir = "/share/games/powermanga/";
|
||||
+#endif
|
||||
|
||||
if (name == NULL)
|
||||
{
|
||||
--
|
||||
2.19.0
|
||||
|
||||
|
||||
From bbeef8bf68c94dfa91b6091ca758565bbac93970 Mon Sep 17 00:00:00 2001
|
||||
From: Abdur-Raheem Idowu <abdurraheemidowu@gmail.com>
|
||||
Date: Thu, 26 Dec 2019 12:02:08 +0000
|
||||
Subject: Defaults to windowed, instead of fullscreen
|
||||
|
||||
|
||||
diff --git a/src/config_file.c b/src/config_file.c
|
||||
index f354c5c..f81e440 100644
|
||||
--- a/src/config_file.c
|
||||
+++ b/src/config_file.c
|
||||
@@ -50,7 +50,7 @@ static void configfile_reset_values ();
|
||||
void
|
||||
configfile_reset_values ()
|
||||
{
|
||||
- power_conf->fullscreen = TRUE;
|
||||
+ power_conf->fullscreen = FALSE;
|
||||
power_conf->nosound = FALSE;
|
||||
power_conf->resolution = 640;
|
||||
power_conf->verbose = 0;
|
||||
--
|
||||
2.19.0
|
||||
|
||||
72
games-action/powermanga/powermanga-0.93.1.recipe
Normal file
72
games-action/powermanga/powermanga-0.93.1.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
SUMMARY="A 2D arcade shoot-em-up game"
|
||||
DESCRIPTION="Powermanga is an arcade 2D shoot-em-up game with 41 levels \
|
||||
and more than 200 sprites.
|
||||
Join POWERMANGA, an elite unit tasked to clear space of pirates, \
|
||||
and improve the safety of peaceful voyagers and navigators.
|
||||
Collect gems to upgrade your ship (red, green), restore energy (purple) \
|
||||
and gain satellite shields (yellow).
|
||||
Upgrades include mobility boost, guided missiles, rear fire shot, and more.
|
||||
|
||||
Controls:
|
||||
ARROW KEYS -> Move spaceship
|
||||
SPACE -> Shoot
|
||||
CTRL -> Aquire an activated option
|
||||
ESC -> Display menu
|
||||
P -> Pause the game
|
||||
F -> Toggle fullscreen"
|
||||
HOMEPAGE="http://linux.tlk.fr/games/Powermanga"
|
||||
REVISION="1"
|
||||
COPYRIGHT="1998-2019 TLK Games"
|
||||
LICENSE="GNU GPL v3"
|
||||
SOURCE_URI="https://github.com/brunonymous/powermanga/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="010987a3cb27a1f9388a212f637977692284b5616952efa1efae09d2464e9249"
|
||||
SOURCE_DIR="Powermanga-$portVersion"
|
||||
PATCHES="powermanga-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/Powermanga directory keep-old
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
powermanga$secondaryArchSuffix = $portVersion
|
||||
app:Powermanga
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libSDL_1.2$secondaryArchSuffix
|
||||
lib:libSDL_mixer_1.2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libSDL_1.2$secondaryArchSuffix
|
||||
devel:libSDL_mixer_1.2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./bootstrap
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
addAppDeskbarSymlink $appsDir/Powermanga/powermanga "Powermanga"
|
||||
}
|
||||
Reference in New Issue
Block a user