git: 5c3a500e5e54 - main - emulators/ares: Remove librashader from BUILD_DEPENDS

From: Yusuf Yaman <nxjoseph_at_FreeBSD.org>
Date: Tue, 20 Oct 2026 21:57:25 UTC
The branch main has been updated by nxjoseph:

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

commit 5c3a500e5e5495d74c10afeaed85f0aca28b610a
Author:     Stefan Schlosser <bsdcode@disroot.org>
AuthorDate: 2026-10-16 12:16:11 +0000
Commit:     Yusuf Yaman <nxjoseph@FreeBSD.org>
CommitDate: 2026-10-20 21:57:16 +0000

    emulators/ares: Remove librashader from BUILD_DEPENDS
    
    Ares always needs the librashader headers to build, even if building
    without shader support by disabling the LIBRASHADER option. Because of
    this, devel/librashader is an unconditional build dependency.
    
    This requires every user who wants to build the port to also build
    devel/librashader, which needs Rust. This is undesired by some users who
    don't need/want shader support in the emulator.
    
    To provide a way for such users to compile the ares port without needing
    a Rust toolchain, devel/librashader is removed from BUILD_DEPENDS. The
    required headers are bundled with the distfile and the port extracts
    them now if the LIBRASHADER option is disabled. They are then picked up
    by ares' build process.
    
    Building with LIBRASHADER enabled is unchanged: thirdparty/librashader
    is excluded from extraction and the build process picks up the headers
    provided by the devel/librashader port.
    
    PR:             297886
    Approved by:    osa, vvd (Mentors, implicit)
---
 emulators/ares/Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/emulators/ares/Makefile b/emulators/ares/Makefile
index 899484424b3e..d1fc28c67418 100644
--- a/emulators/ares/Makefile
+++ b/emulators/ares/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	ares
 DISTVERSIONPREFIX=	v
 DISTVERSION=	148
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	emulators
 MASTER_SITES=	https://github.com/${PORTNAME}-emulator/${PORTNAME}/releases/download/${DISTVERSIONFULL}/
 DISTNAME=	${PORTNAME}-source
@@ -18,8 +18,6 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 # https://github.com/ares-emulator/ares/issues/2350
 BROKEN_i386=	unsigned long long to size_type narrowing conversion issue introduced in version 147
 
-BUILD_DEPENDS=	librashader>0:devel/librashader
-
 USES=		cmake compiler:c++20-lang gl gnome pkgconfig xorg
 USE_GL=		opengl
 USE_GNOME=	gtk30
@@ -37,7 +35,6 @@ CMAKE_OFF=	ARES_BUILD_LOCAL \
 EXTRACT_AFTER_ARGS=	--exclude thirdparty/GL \
 			--exclude thirdparty/KHR \
 			--exclude thirdparty/libchdr \
-			--exclude thirdparty/librashader \
 			--exclude thirdparty/sse2neon.h \
 			--exclude thirdparty/xxhash.h \
 			--no-same-owner --no-same-permissions
@@ -187,6 +184,10 @@ WS_VARS=			_CORES+=ws
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MLIBRASHADER}
+EXTRACT_AFTER_ARGS+=	--exclude thirdparty/librashader
+.endif
+
 .if ${PORT_OPTIONS:MTOOLS} && (${PORT_OPTIONS:MGBA} || ${PORT_OPTIONS:MSFC})
 PLIST_SUB+=	TOOLSARM7TDMI=""
 .else