git: 622e8f6fa3ba - 2022Q1 - emulators/yuzu: split qt5-linguisttools from QT5 option

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 22 Jan 2022 00:59:52 UTC
The branch 2022Q1 has been updated by jbeich:

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

commit 622e8f6fa3bad1b53c48aa903dc7c1ef55f81ed9
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-01-20 09:35:14 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-01-22 00:59:42 +0000

    emulators/yuzu: split qt5-linguisttools from QT5 option
    
    (cherry picked from commit 3826a1480f8e116ed23a10a8249ebfc0f7c143a8)
---
 emulators/yuzu/Makefile | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/emulators/yuzu/Makefile b/emulators/yuzu/Makefile
index 38c777655347..d038cabbe3d6 100644
--- a/emulators/yuzu/Makefile
+++ b/emulators/yuzu/Makefile
@@ -69,7 +69,7 @@ LDFLAGS+=	-static-libstdc++ # avoid libc++ conflict, requires files/patch-fmt
 LDFLAGS+=	-Wl,--as-needed # Qt5Network
 PLIST_FILES=	bin/${PORTNAME}-cmd
 
-OPTIONS_DEFINE=	ALSA PULSEAUDIO JACK QT5 SNDIO VAAPI VULKAN WEBENGINE
+OPTIONS_DEFINE=	ALSA PULSEAUDIO JACK NLS QT5 SNDIO VAAPI VULKAN WEBENGINE
 OPTIONS_DEFAULT=PULSEAUDIO JACK QT5 SNDIO VAAPI VULKAN WEBENGINE
 
 ALSA_BUILD_DEPENDS=	alsa-lib>0:audio/alsa-lib
@@ -78,12 +78,17 @@ ALSA_CMAKE_BOOL=	USE_ALSA
 JACK_BUILD_DEPENDS=	jackit>0:audio/jack
 JACK_CMAKE_BOOL=	USE_JACK
 
+NLS_DESC=		UI translations (implies QT5)
+NLS_USE=		QT=linguisttools_build
+NLS_CMAKE_BOOL=		ENABLE_QT_TRANSLATION
+NLS_IMPLIES=		QT5
+
 PULSEAUDIO_BUILD_DEPENDS=pulseaudio>0:audio/pulseaudio
 PULSEAUDIO_CMAKE_BOOL=	USE_PULSE
 
 QT5_USES=		desktop-file-utils qt:5 shared-mime-info
-QT5_USE=		QT=qmake_build,buildtools_build,linguisttools_build,concurrent_build,core,gui,widgets
-QT5_CMAKE_BOOL=		ENABLE_QT ENABLE_QT_TRANSLATION
+QT5_USE=		QT=qmake_build,buildtools_build,concurrent_build,core,gui,widgets
+QT5_CMAKE_BOOL=		ENABLE_QT
 QT5_PLIST_FILES=	bin/${PORTNAME} \
 			share/applications/${PORTNAME}.desktop \
 			share/icons/hicolor/scalable/apps/${PORTNAME}.svg \