git: 9a3b512fbe4c - main - x11/radare-cutter: don't use webengine where it's not available

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 25 Feb 2022 20:25:39 UTC
The branch main has been updated by pkubaj:

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

commit 9a3b512fbe4ca0bc90a8ec13f72f1f70a9e55758
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-02-25 20:23:20 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-02-25 20:23:20 +0000

    x11/radare-cutter: don't use webengine where it's not available
    
    Builds fine without it.
---
 x11/radare-cutter/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/x11/radare-cutter/Makefile b/x11/radare-cutter/Makefile
index f3b90a2dea43..56ee7d9c0bbf 100644
--- a/x11/radare-cutter/Makefile
+++ b/x11/radare-cutter/Makefile
@@ -22,13 +22,19 @@ GH_PROJECT=	r2cutter
 GH_TUPLE=	radareorg:cutter-translations:8e1d24b:translations/translations
 
 USE_QT=		core declarative gui linguist location network printsupport svg \
-		webchannel webengine widgets buildtools_build
+		webchannel widgets buildtools_build
 USE_GL=		gl
 
 WRKSRC_SUBDIR=	src
 
 CMAKE_INSTALL_PREFIX=	${STAGEDIR}${PREFIX}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386
+USE_QT+=	webengine
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} 's/python3/python-${PYTHON_VER}/' ${WRKSRC}/Cutter.pro