git: f1a513d44768 - main - cad/freecad: use webengine only on aarch64, amd64 and i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Sep 2022 18:56:41 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f1a513d44768ebcfa09ed2d5aa4c2f135a706af0
commit f1a513d44768ebcfa09ed2d5aa4c2f135a706af0
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-09-27 17:59:17 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-09-27 18:56:36 +0000
cad/freecad: use webengine only on aarch64, amd64 and i386
---
cad/freecad/Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/cad/freecad/Makefile b/cad/freecad/Makefile
index ed6b37266a62..a02fde1c3cfe 100644
--- a/cad/freecad/Makefile
+++ b/cad/freecad/Makefile
@@ -41,8 +41,8 @@ USE_GITHUB= yes
USE_XORG= ice sm x11 xext xt
USE_GL= gl glu
USE_QT= buildtools concurrent core declarative gui location network \
- opengl printsupport qmake:build svg webchannel webengine \
- widgets xml xmlpatterns
+ opengl printsupport qmake:build svg webchannel widgets xml \
+ xmlpatterns
USE_LDCONFIG= yes
CPE_VENDOR= freecad_project
@@ -78,6 +78,14 @@ COLLADA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycollada>0:graphics/py-pycollada@${
DESKTOP_ENTRIES=${PORTNAME} "" "${PREFIX}/FreeCAD/data/freecad.svg" \
${PORTNAME} "Graphics;Engineering;" false
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386
+USE_QT+= webengine
+.else
+USE_QT+= webkit
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/self\.rev/s/Unknown/${DISTVERSION:C/.*-//}/' \
${WRKSRC}/src/Tools/SubWCRev.py