git: b4f28195b268 - main - devel/godot: Unbundle multiple libraries

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 12 Feb 2026 19:35:09 UTC
The branch main has been updated by vvd:

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

commit b4f28195b2687bde1ab88ea853e65ebe9d11930d
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-02-12 19:29:57 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-02-12 19:29:57 +0000

    devel/godot: Unbundle multiple libraries
    
    archivers/brotli
    audio/libogg
    multimedia/libtheora
    audio/libvorbis
    graphics/webp
    net/miniupnpc
    graphics/openxr
    graphics/recastnavigation
    www/wslay
    archivers/zstd
    
    Explicitly enable the use of x11-fonts/fontconfig.
    
    PR:             288408
    Tested by:      Sure Beae <sure@disroot.org>
    Approved by:    Shane <FreeBSD@ShaneWare.Biz> (maintainer, timeout 6 months)
---
 devel/godot/Makefile | 34 +++++++++++++++++++++++++++++++---
 1 file changed, 31 insertions(+), 3 deletions(-)

diff --git a/devel/godot/Makefile b/devel/godot/Makefile
index 0cca61ce80f9..ae3631015b8f 100644
--- a/devel/godot/Makefile
+++ b/devel/godot/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	godot
 DISTVERSION=	4.4.1
 DISTVERSIONSUFFIX=	-stable
-PORTREVISION?=	2
+PORTREVISION?=	3
 CATEGORIES=	devel games
 
 MAINTAINER=	FreeBSD@Shaneware.biz
@@ -14,12 +14,26 @@ LICENSE_FILE_CC-BY-3.0=	${WRKSRC}/LOGO_LICENSE.txt
 LICENSE_FILE_MIT=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	yasm:devel/yasm
-LIB_DEPENDS=	libfreetype.so:print/freetype2 \
+LIB_DEPENDS=	libbrotlicommon.so:archivers/brotli \
+		libbrotlidec.so:archivers/brotli \
+		libfreetype.so:print/freetype2 \
 		libgraphite2.so:graphics/graphite2 \
 		libharfbuzz-icu.so:print/harfbuzz-icu \
 		libharfbuzz.so:print/harfbuzz \
+		libogg.so:audio/libogg \
+		libpng.so:graphics/png \
+		libtheora.so:multimedia/libtheora \
+		libtheoradec.so:multimedia/libtheora \
+		libvorbis.so:audio/libvorbis \
+		libvorbisfile.so:audio/libvorbis \
+		libwebp.so:graphics/webp \
+		libminiupnpc.so:net/miniupnpc \
+		libopenxr_loader.so:graphics/openxr \
 		libpcre2-32.so:devel/pcre2 \
-		libpng.so:graphics/png
+		libRecast.so:graphics/recastnavigation \
+		libwslay_shared.so:www/wslay \
+		libzstd.so:archivers/zstd \
+		libfontconfig.so:x11-fonts/fontconfig
 RUN_DEPENDS=	xdg-open:devel/xdg-utils \
 		xdg-user-dir:devel/xdg-user-dirs \
 		xmessage:x11/xmessage
@@ -32,12 +46,24 @@ USE_GL=		gl glew glu
 
 MAKE_ARGS+=		platform=linuxbsd \
 			dbus=True \
+			brotli=True \
+			builtin_brotli=False \
 			builtin_freetype=False \
 			builtin_graphite=False \
 			builtin_harfbuzz=False \
+			builtin_libogg=False \
 			builtin_libpng=False \
+			builtin_libtheora=False \
+			builtin_libvorbis=False \
+			builtin_libwebp=False \
+			builtin_miniupnpc=False \
+			builtin_openxr=False \
 			builtin_pcre2=False \
+			builtin_recastnavigation=False \
+			builtin_wslay=False \
 			builtin_zlib=False \
+			builtin_zstd=False \
+			fontconfig=True \
 			opengl3=True \
 			use_sowrap=True \
 			verbose=True \
@@ -119,6 +145,8 @@ MAKE_ARGS+=	module_embree_enabled=no \
 post-patch:
 	@${REINPLACE_CMD} -e 's|custom_build|${OPSYS}_Ports_build|' \
 		${WRKSRC}/methods.py
+	@${REINPLACE_CMD} -e 's|/usr/include/recastnavigation|${LOCALBASE}/include/recastnavigation|' \
+		${WRKSRC}/platform/linuxbsd/detect.py
 
 # The official godot binary name reflects options used to compile
 # We just want a simple name matching the portname