git: c4d7a6a8f127 - main - emulators/rpcs3: respect USES=llvm when multiple are installed

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 18 Nov 2025 00:19:41 UTC
The branch main has been updated by jbeich:

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

commit c4d7a6a8f127feb477a1a319f8a27b1371dd7dc9
Author:     alt2600 <alt2600@icloud.com>
AuthorDate: 2025-11-10 06:09:14 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2025-11-17 23:05:31 +0000

    emulators/rpcs3: respect USES=llvm when multiple are installed
    
    Avoid auto-detecting LLVM version which may be too old for build or
    cause mismatch with LIB_DEPENDS.
    
    PR:             285437
---
 emulators/rpcs3/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emulators/rpcs3/Makefile b/emulators/rpcs3/Makefile
index 4b868c0f35c2..35582fad668b 100644
--- a/emulators/rpcs3/Makefile
+++ b/emulators/rpcs3/Makefile
@@ -49,6 +49,7 @@ CMAKE_ON=	CMAKE_SKIP_RPATH
 CMAKE_ON+=	${GLSLANG FFMPEG FLATBUFFERS HIDAPI LIBPNG LIBUSB MINIUPNPC PUGIXML RTMIDI XXHASH ZSTD:L:S/^/USE_SYSTEM_/}
 CMAKE_ON+=	BUNDLE_SPEEX # only used by cubeb tests
 CMAKE_OFF=	USE_NATIVE_INSTRUCTIONS USE_PRECOMPILED_HEADERS
+CMAKE_ARGS+=	-DLLVM_DIR:PATH="${LLVM_PREFIX}/lib/cmake/llvm"
 LDFLAGS+=	-Wl,--as-needed # GLU
 
 OPTIONS_DEFINE=	ALSA EVDEV FAUDIO JACK LTO OPENCV PULSEAUDIO SDL SNDIO VULKAN