git: ec1275fb977c - main - devel/godot: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Aug 2025 15:33:27 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ec1275fb977cb1f4bef9fb052e2c7cd77e2e80bb
commit ec1275fb977cb1f4bef9fb052e2c7cd77e2e80bb
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-08-13 15:26:09 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-08-13 15:33:18 +0000
devel/godot: fix build on powerpc64*
JPH_DVECTOR_ALIGNMENT needs to match with JPH_VECTOR_ALIGNMENT.
---
devel/godot/Makefile | 2 +-
.../files/patch-thirdparty_jolt__physics_Jolt_Core_Core.h | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/devel/godot/Makefile b/devel/godot/Makefile
index a6db516d4139..787eb3c3150b 100644
--- a/devel/godot/Makefile
+++ b/devel/godot/Makefile
@@ -109,7 +109,7 @@ X11_MAKE_ARGS_OFF= x11=False
.include <bsd.port.options.mk>
-.if ${ARCH:Mpowerpc*} || ${ARCH:Mriscv64*}
+.if ${ARCH} == powerpc || ${ARCH:Mriscv64*}
MAKE_ARGS+= module_embree_enabled=no \
module_raycast_enabled=no \
module_webm_enabled=no
diff --git a/devel/godot/files/patch-thirdparty_jolt__physics_Jolt_Core_Core.h b/devel/godot/files/patch-thirdparty_jolt__physics_Jolt_Core_Core.h
new file mode 100644
index 000000000000..41a7d11c20b0
--- /dev/null
+++ b/devel/godot/files/patch-thirdparty_jolt__physics_Jolt_Core_Core.h
@@ -0,0 +1,11 @@
+--- thirdparty/jolt_physics/Jolt/Core/Core.h.orig 2025-08-13 15:24:56 UTC
++++ thirdparty/jolt_physics/Jolt/Core/Core.h
+@@ -215,7 +215,7 @@
+ #define JPH_CPU_BIG_ENDIAN
+ #endif
+ #define JPH_VECTOR_ALIGNMENT 16
+- #define JPH_DVECTOR_ALIGNMENT 8
++ #define JPH_DVECTOR_ALIGNMENT 16
+ #elif defined(__loongarch__)
+ // LoongArch CPU architecture
+ #define JPH_CPU_LOONGARCH