mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Improved Slime Volley.
* Renamed recipe and its folder to "slimevolley" as that is the name under PROVIDES. Hopefully that makes it finally installable from HDS. * Added a vector icon rdef and I-O-M file. * Added a patch putting the settings file into B_USER_SETTINGS_DIRECTORY.
This commit is contained in:
BIN
games-arcade/slimevolley/additional-files/slimevolley.iom
Normal file
BIN
games-arcade/slimevolley/additional-files/slimevolley.iom
Normal file
Binary file not shown.
30
games-arcade/slimevolley/additional-files/slimevolley.rdef
Normal file
30
games-arcade/slimevolley/additional-files/slimevolley.rdef
Normal file
@@ -0,0 +1,30 @@
|
||||
resource app_signature "application/x-vnd.tuxfamily.slimevolley";
|
||||
|
||||
resource app_flags B_SINGLE_LAUNCH;
|
||||
|
||||
resource vector_icon array {
|
||||
$"6E63696606020106023E10000000000000003D60004900004A80000065FF21FF"
|
||||
$"011E0105FF05CA0501020116023D5FC8326AB4B225F53CFFCE4A14594559B7FF"
|
||||
$"0200D501010000620606033E264B50583E6A5342373BC15B3B293B0204C040C3"
|
||||
$"02C15FC3B2BF21C251BC99C3E9BD7EC2B9BBB4C519BD01C74EBBE2C69EBE20C7"
|
||||
$"FFC019C5F2BF7BC70EC0CFC4A906033E4C47504D4E4C514A4E465047C4D2C1E3"
|
||||
$"02043F48C00248BEB1483C4B3CC3793CC4CA3F4EBEB14EC0024E424B42C4CA42"
|
||||
$"C37902044C24C62E24C2E124442C44B62144B96E4C34C2E134C62E34542C54B9"
|
||||
$"6E54B62106033E402E5037423A50374438493B3F330C0A050100023FFBD6B8E1"
|
||||
$"CA385D433F44A54566E447A2960A0301001001178402040A000100000A030201"
|
||||
$"021001178300040A010101000A020102000A030103000A030103023E00000000"
|
||||
$"000000003E000049E0004840000A04010420271F0A03010430271F0117810004"
|
||||
$"0A03010520271F0A030105023EC27B0000000000003EC27B47F88E46710D"
|
||||
};
|
||||
|
||||
resource app_version {
|
||||
major = 2,
|
||||
middle = 4,
|
||||
minor = 2,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "Slime Volley",
|
||||
long_info = "Play volleyball as a blob of slime"
|
||||
};
|
||||
38
games-arcade/slimevolley/patches/slimevolley-2.4.2.patchset
Normal file
38
games-arcade/slimevolley/patches/slimevolley-2.4.2.patchset
Normal file
@@ -0,0 +1,38 @@
|
||||
From 924ce773527465b27a61eeabf5a7f4a44bc32bde Mon Sep 17 00:00:00 2001
|
||||
From: Humdinger <humdingerb@gmail.com>
|
||||
Date: Sat, 5 Sep 2015 09:03:25 +0200
|
||||
Subject: Put settings file into /boot/home/config/settings
|
||||
|
||||
|
||||
diff --git a/src/slime.c b/src/slime.c
|
||||
index 683d04a..84c3beb 100644
|
||||
--- a/src/slime.c
|
||||
+++ b/src/slime.c
|
||||
@@ -29,6 +29,7 @@ $Id: slime.c 257 2008-11-23 10:03:21Z vinduv $
|
||||
#include <SDL.h>
|
||||
#include <SDL_ttf.h>
|
||||
#include <SDL_image.h>
|
||||
+#include <storage/FindDirectory.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "slime.h"
|
||||
@@ -237,11 +238,11 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
#ifndef MACOS9
|
||||
- if(getenv(DOSS_PREFS) != NULL) {
|
||||
- conf_chemin[0] = '\0';
|
||||
- strncat(conf_chemin, getenv(DOSS_PREFS), sizeof(conf_chemin));
|
||||
- strncat(conf_chemin, SEP, sizeof(conf_chemin));
|
||||
- strncat(conf_chemin, CONFIG_NOM, sizeof(conf_chemin));
|
||||
+ conf_chemin[256] = '\0';
|
||||
+ find_directory(B_USER_SETTINGS_DIRECTORY, 0, true, conf_chemin, sizeof(conf_chemin));
|
||||
+ if(conf_chemin != NULL) {
|
||||
+ strncat(conf_chemin, "/", sizeof(conf_chemin));
|
||||
+ strncat(conf_chemin, "Slime_Volley", sizeof(conf_chemin));
|
||||
}
|
||||
#endif
|
||||
|
||||
--
|
||||
2.2.2
|
||||
|
||||
@@ -6,17 +6,18 @@ play against the computer."
|
||||
HOMEPAGE="http://slime.tuxfamily.org/"
|
||||
COPYRIGHT="2008-2014 VinDuv, McMic"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="http://slime.tuxfamily.org/down.php?id=1&os=src"
|
||||
SOURCE_FILENAME="slimevolley-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="be8f461c6f1188ba709b1fbcbe64edffca4b8eb358bd2ed8825f8ebf30e660d3"
|
||||
SOURCE_DIR="slimevolley"
|
||||
PATCHES="slimevolley-2.4.2.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
slimevolley = $portVersion
|
||||
cmd:slimevolley
|
||||
app:slimevolley
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
@@ -41,23 +42,27 @@ BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
USER_SETTINGS_FILES="
|
||||
settings/Slime_Volley
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=$prefix -DI10N_DIR=$dataDir/locale \
|
||||
-DDATA_DIR=$dataDir/games/slimevolley
|
||||
make $jobArgs
|
||||
|
||||
addResourcesToBinaries $portDir/additional-files/slimevolley.rdef slimevolley
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mkdir -p $dataDir
|
||||
mkdir -p $dataDir $appsDir
|
||||
mv $prefix/share/locale $dataDir
|
||||
rm -r $prefix/share
|
||||
mv $binDir/slimevolley "$appsDir/Slime Volley"
|
||||
|
||||
mkdir $appsDir
|
||||
cp slimevolley $appsDir
|
||||
|
||||
addAppDeskbarSymlink $binDir/slimevolley "Slime Volley"
|
||||
addAppDeskbarSymlink "$appsDir/Slime Volley"
|
||||
}
|
||||
Reference in New Issue
Block a user