Download raw body.
games/foobillard fix for llvm 22
Old code probably full of other bugs (the #if condition in the patch
is also true on amd64 for example...) just making sure it builds with
llvm 22.
ok?
Index: Makefile
===================================================================
RCS file: /local/cvs/ports/games/foobillard/Makefile,v
diff -u -p -u -r1.14 Makefile
--- Makefile 7 Nov 2023 14:19:29 -0000 1.14
+++ Makefile 17 May 2026 19:34:54 -0000
@@ -1,7 +1,7 @@
COMMENT = OpenGL billard game
DISTNAME = foobillard-3.0a
-REVISION = 2
+REVISION = 3
CATEGORIES = games x11
HOMEPAGE = https://foobillard.sourceforge.net/
Index: patches/patch-src_billard3d_c
===================================================================
RCS file: patches/patch-src_billard3d_c
diff -N patches/patch-src_billard3d_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_billard3d_c 17 May 2026 19:34:54 -0000
@@ -0,0 +1,14 @@
+Build fix for llvm 22
+
+Index: src/billard3d.c
+--- src/billard3d.c.orig
++++ src/billard3d.c
+@@ -5100,7 +5100,7 @@ int main( int argc, char *argv[] )
+
+ #if __BYTE_ORDER == __BIG_ENDIAN
+ {
+- char *snd=ball_ball_snd.data;
++ char *snd=(char *)ball_ball_snd.data;
+ for(i=0;i<ball_ball_snd.len;i+=2)
+ {
+ char t=snd[i];
--
Matthieu Herrb
games/foobillard fix for llvm 22