mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
devel/godot: add proper architecture detection
uname -p should be used instead of uname -m.
This commit is contained in:
parent
f068b81ecf
commit
10bd356a9c
21
devel/godot/files/patch-platform__methods.py
Normal file
21
devel/godot/files/patch-platform__methods.py
Normal file
@ -0,0 +1,21 @@
|
||||
--- platform_methods.py.orig 2023-03-23 23:40:42 UTC
|
||||
+++ platform_methods.py
|
||||
@@ -92,6 +92,9 @@ architecture_aliases = {
|
||||
"rv": "rv64",
|
||||
"riscv": "rv64",
|
||||
"riscv64": "rv64",
|
||||
+ "powerpc64le": "ppc64",
|
||||
+ "powerpc64": "ppc64",
|
||||
+ "powerpc": "ppc32",
|
||||
"ppcle": "ppc32",
|
||||
"ppc": "ppc32",
|
||||
"ppc64le": "ppc64",
|
||||
@@ -99,7 +102,7 @@ def detect_arch():
|
||||
|
||||
|
||||
def detect_arch():
|
||||
- host_machine = platform.machine().lower()
|
||||
+ host_machine = platform.processor().lower()
|
||||
if host_machine in architectures:
|
||||
return host_machine
|
||||
elif host_machine in architecture_aliases.keys():
|
Loading…
Reference in New Issue
Block a user