git: 0bb7044e0ec2 - main - games/Bugdom2: fix build on powerpc*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Apr 2024 21:21:41 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=0bb7044e0ec23afad4ae9b9fb1e138d052c0c09a commit 0bb7044e0ec23afad4ae9b9fb1e138d052c0c09a Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-04-18 14:37:20 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-04-24 21:21:07 +0000 games/Bugdom2: fix build on powerpc* /wrkdirs/usr/ports/games/Bugdom2/work/Bugdom2-4.0.0/Source/3D/3DMath.c:1541:5: error: assigning to '__vector float' (vector of 4 'float' values) from incompatible type 'int' C3 = vec_madd( vec_splat( A3, 2 ), B3, C3 ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- games/Bugdom2/files/patch-Source_3D_3DMath.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/games/Bugdom2/files/patch-Source_3D_3DMath.c b/games/Bugdom2/files/patch-Source_3D_3DMath.c new file mode 100644 index 000000000000..97dcc833beb2 --- /dev/null +++ b/games/Bugdom2/files/patch-Source_3D_3DMath.c @@ -0,0 +1,12 @@ +--- Source/3D/3DMath.c.orig 2024-04-18 14:30:18 UTC ++++ Source/3D/3DMath.c +@@ -12,6 +12,9 @@ + + #include "game.h" + ++#if defined(__VEC__) ++#include <altivec.h> ++#endif + + /****************************/ + /* PROTOTYPES */