git: cec9fc8ffc85 - main - sysutils/UEFITool: flavorize for both qt5 and qt6

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 04 Oct 2022 07:27:05 UTC
The branch main has been updated by pkubaj:

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

commit cec9fc8ffc8570db29f2525e147c89484d9b7fa2
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-10-04 07:25:42 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-10-04 07:26:27 +0000

    sysutils/UEFITool: flavorize for both qt5 and qt6
---
 sysutils/UEFITool/Makefile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/sysutils/UEFITool/Makefile b/sysutils/UEFITool/Makefile
index 517fa9b1502d..bc4dfd8e5744 100644
--- a/sysutils/UEFITool/Makefile
+++ b/sysutils/UEFITool/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	UEFITool
 DISTVERSIONPREFIX=	A
 DISTVERSION=	62
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	pkubaj@FreeBSD.org
@@ -10,10 +11,16 @@ WWW=		https://github.com/LongSoft/UEFITool
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/../LICENSE.md
 
-USES=		compiler:c++11-lang gl qmake:outsource qt:5
+USES=		compiler:c++11-lang gl qmake:outsource qt:${FLAVOR:S/qt//}
+FLAVORS=	qt5 qt6
+FLAVOR?=	qt5
+qt5_PKGNAMESUFFIX=	-qt5
+qt6_PKGNAMESUFFIX=	-qt6
 USE_GITHUB=	yes
 USE_GL=		gl
-USE_QT=		core gui widgets buildtools:build qmake:build
+_USE_QT5=		core gui widgets buildtools:build qmake:build
+_USE_QT6=		base
+USE_QT=		${_USE_QT${FLAVOR:S/qt//}}
 
 WRKSRC_SUBDIR=	${PORTNAME}
 GH_ACCOUNT=	LongSoft