diff options
Diffstat (limited to 'www/qt6-webengine/Makefile')
-rw-r--r-- | www/qt6-webengine/Makefile | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/www/qt6-webengine/Makefile b/www/qt6-webengine/Makefile index 625fa2976dc4..9939ff2dc4d5 100644 --- a/www/qt6-webengine/Makefile +++ b/www/qt6-webengine/Makefile @@ -12,22 +12,25 @@ PORTNAME?= webengine DISTVERSION= ${QT6_VERSION} -PORTREVISION?= 1 # Master port for print/qt6-pdf. Please keep this line. +# This is the parent port of print/qt6-pdf. Please always keep 'PORTREVISION?=' +# and reset the value to '0' only after increasing QT6_VERSION in Mk/Uses/qt.mk. +PORTREVISION?= 0 CATEGORIES?= www PKGNAMEPREFIX= qt6- MAINTAINER= kde@FreeBSD.org COMMENT?= Qt 6 library to render web content -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} \ - ${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers +# 32-bit platforms are not supported by upstream, but we're limping them along. +ONLY_FOR_ARCHS= aarch64 amd64 armv7 i386 + +BUILD_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers LIB_DEPENDS= libfreetype.so:print/freetype2 \ libnss3.so:security/nss \ libopenjp2.so:graphics/openjpeg \ libxkbcommon.so:x11/libxkbcommon -USES= bison cmake compiler:c++20-lang gl gperf \ - localbase:ldflags ninja:build nodejs:build,lts \ +USES= cmake compiler:c++20-lang gl localbase:ldflags ninja:build \ pkgconfig python:build qt-dist:6,webengine USE_GL= opengl USE_QT= base declarative tools @@ -45,11 +48,13 @@ CMAKE_OFF+= QT_FEATURE_qtwebengine_build SYS_LIBS= freetype .else -BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat +BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat \ + ${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} LIB_DEPENDS+= libabsl_base.so:devel/abseil \ libavcodec.so:multimedia/ffmpeg \ libdbus-1.so:devel/dbus \ libdrm.so:graphics/libdrm \ + libepoll-shim.so:devel/libepoll-shim \ libevent.so:devel/libevent \ libexpat.so:textproc/expat2 \ libfontconfig.so:x11-fonts/fontconfig \ @@ -63,10 +68,11 @@ LIB_DEPENDS+= libabsl_base.so:devel/abseil \ libre2.so:devel/re2 \ libsnappy.so:archivers/snappy \ libtiff.so:graphics/tiff \ + libudev.so:devel/libudev-devd \ libvpx.so:multimedia/libvpx \ libwebp.so:graphics/webp -USES+= gnome jpeg minizip xorg +USES+= bison gnome gperf jpeg minizip xorg USE_GL+= gbm USE_QT+= positioning quick3d:build webchannel USE_GNOME+= glib20 libxml2 libxslt @@ -76,6 +82,8 @@ USE_XORG+= x11 xcb xcomposite xcursor xdamage xext xfixes xi xkbfile \ CMAKE_ON+= QT_FEATURE_qtwebengine_build CMAKE_OFF+= QT_FEATURE_qtpdf_build +CXXFLAGS+= -I${LOCALBASE}/include/libepoll-shim + SYS_LIBS= freetype harfbuzz-ng libdrm libevent libpng libxml libxslt openh264 opus .endif @@ -135,10 +143,14 @@ SNDIO_CMAKE_ON= -DQT_FEATURE_webengine_system_sndio:BOOL=ON SNDIO_CMAKE_OFF= -DQT_FEATURE_webengine_system_sndio:BOOL=OFF .endif -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if ${ARCH} == i386 || ${ARCH} == armv7 -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-32bit-compress_files_js +.if !defined(BUILD_QTPDF) +. if ${ARCH:Mi386} +USES+= nodejs:build,20 +. else +USES+= nodejs:build,lts +. endif .endif post-extract: @@ -180,4 +192,4 @@ post-install-DRIVER-on: .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |