mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
defendguin, bump version (#9747)
This commit is contained in:
@@ -3,12 +3,11 @@ DESCRIPTION="Defendguin is a clone of the arcade game Defender,\
|
|||||||
but with a Linux theme. Your mission is to defend little penguinoids \
|
but with a Linux theme. Your mission is to defend little penguinoids \
|
||||||
from being captured and mutated."
|
from being captured and mutated."
|
||||||
HOMEPAGE="http://www.newbreedsoftware.com/defendguin/"
|
HOMEPAGE="http://www.newbreedsoftware.com/defendguin/"
|
||||||
COPYRIGHT="1999-2009 Bill Kendrick"
|
COPYRIGHT="1999-2023 Bill Kendrick"
|
||||||
LICENSE="GNU GPL v2"
|
LICENSE="GNU GPL v2"
|
||||||
REVISION="4"
|
REVISION="1"
|
||||||
SOURCE_URI="ftp://ftp.tuxpaint.org/unix/x/defendguin/src/defendguin-0.0.12.tar.gz"
|
SOURCE_URI="https://tuxpaint.org/ftp/unix/x/defendguin/src/defendguin-$portVersion.tar.gz"
|
||||||
CHECKSUM_SHA256="3c248bed480b291901b7509525dc952be6d28dfa47fd6f8e3fb9873f46017330"
|
CHECKSUM_SHA256="d552653d71ba396273d576cc1c7eb4c7ba3a06186782b625e3a7b6dd1bce5a81"
|
||||||
PATCHES="defendguin-$portVersion.patchset"
|
|
||||||
|
|
||||||
ARCHITECTURES="all"
|
ARCHITECTURES="all"
|
||||||
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
From 64c29df0298e2bd1c036047f47cb2dbc36f70972 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Abdur-Raheem Idowu <abdurraheemidowu@gmail.com>
|
|
||||||
Date: Wed, 15 Jan 2020 09:57:38 +0000
|
|
||||||
Subject: Loads&saves in Haiku's settings directory
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/defendguin.c b/src/defendguin.c
|
|
||||||
index 60f04e8..d4f1a18 100644
|
|
||||||
--- a/src/defendguin.c
|
|
||||||
+++ b/src/defendguin.c
|
|
||||||
@@ -33,6 +33,9 @@
|
|
||||||
#define M_PI 3.14159265358979323846 /* mmm... pi... */
|
|
||||||
#endif /* #ifndef M_PI */
|
|
||||||
|
|
||||||
+#ifdef __HAIKU__
|
|
||||||
+#include <FindDirectory.h>
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/* Image enumerations: */
|
|
||||||
|
|
||||||
@@ -5884,7 +5887,18 @@ void load_options(void)
|
|
||||||
|
|
||||||
if (getenv("HOME") != NULL)
|
|
||||||
{
|
|
||||||
+#ifdef __HAIKU__
|
|
||||||
+ char path[PATH_MAX];
|
|
||||||
+ dev_t bootdev = dev_for_path("/boot");
|
|
||||||
+ if (bootdev < 0)
|
|
||||||
+ bootdev = 0;
|
|
||||||
+ if (find_directory(B_USER_SETTINGS_DIRECTORY, bootdev, false,
|
|
||||||
+ path, sizeof(path) - 1) == B_OK) {
|
|
||||||
+ snprintf(fname, sizeof(fname), "%s/defendguinrc", path);
|
|
||||||
+ }
|
|
||||||
+#else
|
|
||||||
snprintf(fname, sizeof(fname), "%s/.defendguinrc", getenv("HOME"));
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
fi = fopen(fname, "r");
|
|
||||||
|
|
||||||
@@ -5948,7 +5962,18 @@ void save_options(void)
|
|
||||||
|
|
||||||
if (getenv("HOME") != NULL)
|
|
||||||
{
|
|
||||||
+#ifdef __HAIKU__
|
|
||||||
+ char path[PATH_MAX];
|
|
||||||
+ dev_t bootdev = dev_for_path("/boot");
|
|
||||||
+ if (bootdev < 0)
|
|
||||||
+ bootdev = 0;
|
|
||||||
+ if (find_directory(B_USER_SETTINGS_DIRECTORY, bootdev, false,
|
|
||||||
+ path, sizeof(path) - 1) == B_OK) {
|
|
||||||
+ snprintf(fname, sizeof(fname), "%s/defendguinrc", path);
|
|
||||||
+ }
|
|
||||||
+#else
|
|
||||||
snprintf(fname, sizeof(fname), "%s/.defendguinrc", getenv("HOME"));
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
fi = fopen(fname, "w");
|
|
||||||
|
|
||||||
--
|
|
||||||
2.19.0
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user