summaryrefslogtreecommitdiff
path: root/www/qt5-webengine/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/qt5-webengine/Makefile')
-rw-r--r--www/qt5-webengine/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/www/qt5-webengine/Makefile b/www/qt5-webengine/Makefile
index 82986332de6c..acaab60994f2 100644
--- a/www/qt5-webengine/Makefile
+++ b/www/qt5-webengine/Makefile
@@ -75,7 +75,7 @@ SNDIO_VARS_OFF= QMAKE_CONFIGURE_ARGS+=-no-sndio
# We pass `norecursive' to USES=qmake because src/plugins/plugins.pro checks
# whether webenginewidgets is available, which fails when qmake processes all
# .pro files at once.
-USES= gl gnome gperf jpeg minizip ninja:build nodejs:build,lts \
+USES= gl gnome gperf jpeg minizip ninja:build \
perl5 pkgconfig python:build qmake:norecursive,outsource \
qt-dist:5,webengine shebangfix xorg
USE_GL= gl
@@ -117,7 +117,13 @@ MAKE_ENV+= CC="${CC}" CXX="${CXX}" \
QT_BINARIES= yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mi386}
+USES+= nodejs:build,20
+.else
+USES+= nodejs:build,lts
+.endif
.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*}
PLIST_SUB+= BE="" LE="@comment "
@@ -171,4 +177,10 @@ post-build:
${BUILD_WRKSRC}/lib/cmake/Qt5${module}/Qt5${module}Config.cmake
.endfor
-.include <bsd.port.post.mk>
+post-install:
+ for lib in ${STAGEDIR}${PREFIX}/${QT_LIBDIR_REL}/*.so.${_QT_VERSION:C/-.*//} ; \
+ do \
+ ${BRANDELF} -t FreeBSD $$lib ; \
+ done
+
+.include <bsd.port.mk>