git: 9b5de677a8cf - main - games/lugaru: fix build with cmake 4, undeprecate and adopt
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Sep 2026 12:50:09 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9b5de677a8cf0a2e94c2f64b7d173e11bcb2a2cb
commit 9b5de677a8cf0a2e94c2f64b7d173e11bcb2a2cb
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-09-18 15:45:17 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-09-19 12:49:30 +0000
games/lugaru: fix build with cmake 4, undeprecate and adopt
- fix build with cmake 4
- adopt this unmaintained port
- fix a nuisance warning while we are at it
- move to github, a gitlab upstream exists, too,
but bitbucket no longer does
This game is fun. It should not go the way of the dodo just because of
some silly cmake 4 issues.
---
games/lugaru/Makefile | 15 +++++----------
games/lugaru/distinfo | 6 +++---
games/lugaru/files/patch-CMakeLists.txt | 13 ++++++++++++-
games/lugaru/files/patch-Source_Math_XYZ.hpp | 20 ++++++++++++++++++++
4 files changed, 40 insertions(+), 14 deletions(-)
diff --git a/games/lugaru/Makefile b/games/lugaru/Makefile
index d5abfae610c2..9baacb783fe7 100644
--- a/games/lugaru/Makefile
+++ b/games/lugaru/Makefile
@@ -1,20 +1,16 @@
PORTNAME= lugaru
-PORTVERSION= 1.2
-PORTREVISION= 3
+DISTVERSION= 1.2
+PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= games
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= fuz@FreeBSD.org
COMMENT= 3D arcade with unique fighting system and anthropomorphic characters
-WWW= https://bitbucket.org/osslugaru/lugaru/wiki/Home
LICENSE= GPLv2+ CC-BY-SA-3.0 CC-BY-SA-4.0
LICENSE_COMB= multi
LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING.txt
-DEPRECATED= No release in 9 years, does not build with CMake 4
-EXPIRATION_DATE=2026-11-30
-
LIB_DEPENDS= libpng.so:graphics/png \
libvorbis.so:audio/libvorbis \
libogg.so:audio/libogg
@@ -25,9 +21,8 @@ USE_GL= gl glu
USE_SDL= sdl2
USE_XORG= sm
-USE_GITLAB= yes
-GL_ACCOUNT= osslugaru
-GL_TAGNAME= c7b99378439735c60f84869b05c6ebde53083667
+USE_GITHUB= yes
+GH_ACCOUNT= osslugaru
CMAKE_ON= SYSTEM_INSTALL
diff --git a/games/lugaru/distinfo b/games/lugaru/distinfo
index 1a3fdb89c77e..1329076f095d 100644
--- a/games/lugaru/distinfo
+++ b/games/lugaru/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1617891357
-SHA256 (osslugaru-lugaru-c7b99378439735c60f84869b05c6ebde53083667_GL0.tar.gz) = d2dd63bab1681d3cb9ccb685e4094a6a9cbaae9c58ded093aaef7aff6d7dc3f8
-SIZE (osslugaru-lugaru-c7b99378439735c60f84869b05c6ebde53083667_GL0.tar.gz) = 35792508
+TIMESTAMP = 1789745990
+SHA256 (osslugaru-lugaru-1.2_GH0.tar.gz) = 6e2acc14d62f2bf6b329ddbed8d50d1428ae159b986be1d7833c004a7bfa5a9f
+SIZE (osslugaru-lugaru-1.2_GH0.tar.gz) = 35789210
diff --git a/games/lugaru/files/patch-CMakeLists.txt b/games/lugaru/files/patch-CMakeLists.txt
index 149c82d06fc5..616128e0f54b 100644
--- a/games/lugaru/files/patch-CMakeLists.txt
+++ b/games/lugaru/files/patch-CMakeLists.txt
@@ -1,6 +1,17 @@
--- CMakeLists.txt.orig 2017-02-11 19:09:37 UTC
+++ CMakeLists.txt
-@@ -234,7 +234,7 @@ include_directories(
+@@ -1,8 +1,7 @@
++cmake_minimum_required(VERSION 3.10)
++
+ project(lugaru)
+
+-cmake_minimum_required(VERSION 3.0)
+-cmake_policy(SET CMP0004 OLD)
+-
+ include(FindPkgConfig)
+ include(GNUInstallDirs)
+
+@@ -234,7 +233,7 @@ include_directories(
${CMAKE_SOURCE_DIR}/Source
)
diff --git a/games/lugaru/files/patch-Source_Math_XYZ.hpp b/games/lugaru/files/patch-Source_Math_XYZ.hpp
new file mode 100644
index 000000000000..3874afa04daa
--- /dev/null
+++ b/games/lugaru/files/patch-Source_Math_XYZ.hpp
@@ -0,0 +1,20 @@
+--- Source/Math/XYZ.hpp.orig 2026-09-18 15:42:30 UTC
++++ Source/Math/XYZ.hpp
+@@ -55,7 +55,7 @@ inline float normaldotproduct(XYZ point1, XYZ point2);
+ inline void CrossProduct(XYZ P, XYZ Q, XYZ* V);
+ inline void Normalise(XYZ* vectory);
+ inline float normaldotproduct(XYZ point1, XYZ point2);
+-inline float fast_sqrt(register float arg);
++inline float fast_sqrt(float arg);
+ bool PointInTriangle(XYZ* p, XYZ normal, XYZ* p1, XYZ* p2, XYZ* p3);
+ bool LineFacet(XYZ p1, XYZ p2, XYZ pa, XYZ pb, XYZ pc, XYZ* p);
+ float LineFacetd(XYZ p1, XYZ p2, XYZ pa, XYZ pb, XYZ pc, XYZ* p);
+@@ -203,7 +203,7 @@ inline void CrossProduct(XYZ P, XYZ Q, XYZ* V)
+ V->z = P.x * Q.y - P.y * Q.x;
+ }
+
+-inline float fast_sqrt(register float arg)
++inline float fast_sqrt(float arg)
+ {
+ return sqrtf(arg);
+ }