git: 3826a1480f8e - main - emulators/yuzu: split qt5-linguisttools from QT5 option

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 20 Jan 2022 10:31:23 UTC
The branch main has been updated by jbeich:

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

commit 3826a1480f8e116ed23a10a8249ebfc0f7c143a8
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-01-20 09:35:14 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-01-20 10:26:34 +0000

    emulators/yuzu: split qt5-linguisttools from QT5 option
---
 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 \