diff --git a/games-strategy/uqm/patches/uqm-0.7.0.patchset b/games-strategy/uqm/patches/uqm-0.7.0.patchset index d08b75ee8..7f486990b 100644 --- a/games-strategy/uqm/patches/uqm-0.7.0.patchset +++ b/games-strategy/uqm/patches/uqm-0.7.0.patchset @@ -1,4 +1,4 @@ -From ba90dc04b21cba15ba22fce0ac5f512107b23da7 Mon Sep 17 00:00:00 2001 +From 77fc282d827c9dcc5c4860ef8a5aa43470f69b7e Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 15 Jan 2014 23:08:55 +0100 Subject: Make buildsystem aware of Haiku. @@ -43,10 +43,10 @@ index 6e0466c..d95c6c9 100644 -- -2.19.1 +2.23.0 -From 656dbbf586a7eab79fc0b0a143731a4f222d00db Mon Sep 17 00:00:00 2001 +From be8543f8eb6681c8b03d974271d369c2ed518864 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 15 Jan 2014 23:09:08 +0100 Subject: Add missing include for use of select(). @@ -65,17 +65,17 @@ index 29159f8..4390eb8 100644 #include "netmanager_common.ci" #include "ndindex.ci" -- -2.19.1 +2.23.0 -From e9b21a336594b70f5e103df41ce7f220747bde67 Mon Sep 17 00:00:00 2001 +From c92675ee804117a509cc9964f5f14eb423944929 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> -Date: Tue, 15 Jan 2019 19:52:21 +1000 +Date: Sat, 21 Sep 2019 13:37:15 +1000 Subject: Change current dir to application dir diff --git a/src/uqm.c b/src/uqm.c -index a96f97a..cabcc3a 100644 +index a96f97a..b07ab7e 100644 --- a/src/uqm.c +++ b/src/uqm.c @@ -61,6 +61,10 @@ @@ -89,17 +89,21 @@ index a96f97a..cabcc3a 100644 struct bool_option { bool value; -@@ -267,6 +271,10 @@ main (int argc, char *argv[]) +@@ -267,6 +271,14 @@ main (int argc, char *argv[]) int gfxFlags; int i; +#ifdef __HAIKU__ -+ chdir(dirname(argv[0])); ++ char *binpath = realpath(argv[0], NULL); ++ if (binpath != NULL) { ++ chdir(dirname(binpath)); ++ free(binpath); ++ } +#endif + // NOTE: we cannot use the logging facility yet because we may have to // log to a file, and we'll only get the log file name after parsing // the options. -- -2.19.1 +2.23.0 diff --git a/games-strategy/uqm/uqm-0.7.0.recipe b/games-strategy/uqm/uqm-0.7.0.recipe index 05e8a84d1..f8722bf47 100644 --- a/games-strategy/uqm/uqm-0.7.0.recipe +++ b/games-strategy/uqm/uqm-0.7.0.recipe @@ -8,7 +8,7 @@ project and thus help make it even better. For more information, look at \ ourin HOMEPAGE="http://sc2.sourceforge.net/" COPYRIGHT="2005-2018 VCMI Team" LICENSE="GNU GPL v2" -REVISION="3" +REVISION="4" SOURCE_URI="https://sourceforge.net/projects/sc2/files/UQM/0.7/uqm-$portVersion-1-source.tgz" CHECKSUM_SHA256="136015af296b03e45a47cd19e6c4815de118c26e56548dc75d182f8d8bd028e7" SOURCE_DIR="uqm-$portVersion-1"