git: c5874455ab80 - main - games/naev: Fix build

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Thu, 24 Apr 2025 04:38:44 UTC
The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c5874455ab80741410208d0a1ce73cb80741d9e8

commit c5874455ab80741410208d0a1ce73cb80741d9e8
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2025-04-24 04:38:11 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2025-04-24 04:38:11 +0000

    games/naev: Fix build
    
    Reported by:     pkg-fallout
---
 games/naev/Makefile                |  4 +++-
 games/naev/files/patch-meson.build | 13 +++++++++++--
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/games/naev/Makefile b/games/naev/Makefile
index 1f6139e1c274..e0c0f245ed4b 100644
--- a/games/naev/Makefile
+++ b/games/naev/Makefile
@@ -17,6 +17,7 @@ LIB_DEPENDS=	libamd.so:math/suitesparse-amd \
 		libbacktrace.so:devel/libbacktrace \
 		libblas.so:math/blas \
 		libcholmod.so:math/suitesparse-cholmod \
+		libcmark.so:textproc/cmark \
 		libcolamd.so:math/suitesparse-colamd \
 		libcxsparse.so:math/suitesparse-cxsparse \
 		libenet.so:net/enet \
@@ -31,11 +32,12 @@ LIB_DEPENDS=	libamd.so:math/suitesparse-amd \
 		libunibreak.so:textproc/libunibreak \
 		libvorbisfile.so:audio/libvorbis \
 		libwebp.so:graphics/webp \
+		libyaml.so:textproc/libyaml \
  		libzip.so:archivers/libzip
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR}
 
-USES=		desktop-file-utils gettext gl gnome localbase:ldflags \
+USES=		cmake:indirect desktop-file-utils gettext gl gnome localbase:ldflags \
 		luajit meson openal pkgconfig python sdl \
 		shebangfix tar:xz
 USE_GL=		gl glu
diff --git a/games/naev/files/patch-meson.build b/games/naev/files/patch-meson.build
index f00427132b7e..f72241a4d9a2 100644
--- a/games/naev/files/patch-meson.build
+++ b/games/naev/files/patch-meson.build
@@ -1,5 +1,14 @@
---- meson.build	2025-04-21 20:47:17.549934000 -0700
-+++ meson.build	2025-04-21 20:47:37.371972000 -0700
+--- meson.build	2025-04-06 20:26:44.000000000 -0700
++++ meson.build	2025-04-23 21:21:05.417597000 -0700
+@@ -111,7 +111,7 @@
+    yaml = dependency('yaml-0.1', required: true, version: '>=0.2.5', fallback: ['libyaml', 'yaml_dep'], static: get_option('steamruntime'))
+ 
+    # TODO replace nfd with SDL3 native functions when possible
+-   nfd = dependency('nfd', required: false, static: true)
++   nfd = dependency('nfd', required: true, static: false)
+    if not nfd.found()
+       nfd = dependency('nativefiledialog-extended', required: true, fallback: ['nativefiledialog-extended'], static: true)
+    endif
 @@ -293,7 +293,7 @@
     config_data.set10('HAVE_CBLAS_HYPHEN_OPENBLAS_H', cc.links('#include <cblas-openblas.h>' + cblas_test, dependencies: blas))
     config_data.set10('HAVE_OPENBLAS_CBLAS_H', cc.links('#include <openblas/cblas.h>' + cblas_test, dependencies: blas))