ports/devel/qt6-base/Makefile
Jason E. Hale 3c64225be5 Qt6: Update to 6.8.3
March 27, 2025 by Jani Heikkinen

We have released Qt 6.8.3 today. As a patch release, Qt 6.8.3 does not
introduce new features but contains more than 300 bug fixes, security updates,
and other improvements on top of the Qt 6.8.2 release. See more information
about the most important changes and bug fixes from Qt 6.8.3 release note.

Qt for Python 6.8.3 has also been released by its usual means along with the
Qt 6.8.3 release.

Announcement:
https://www.qt.io/blog/qt-6.8.3-released

Release note:
https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.8.3/release-note.md

Security:	7cb6642c-0c5a-11f0-8688-4ccc6adda413
2025-03-29 03:35:21 -04:00

111 lines
3.5 KiB
Makefile

PORTNAME= base
DISTVERSION= ${QT6_VERSION}
CATEGORIES= devel
PKGNAMEPREFIX= qt6-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt base (core, gui, widgets, network,...)
BUILD_DEPENDS= xml:textproc/xmlstarlet \
${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers \
${LOCALBASE}/include/linux/input.h:devel/evdev-proto
LIB_DEPENDS= libatk-1.0.so:accessibility/at-spi2-core \
libatk-bridge-2.0.so:accessibility/at-spi2-core \
libatspi.so:accessibility/at-spi2-core \
libb2.so:devel/libb2 \
libbrotlidec.so:archivers/brotli \
libdbus-1.so:devel/dbus \
libdouble-conversion.so:devel/double-conversion \
libdrm.so:graphics/libdrm \
libevdev.so:devel/libevdev \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libgraphite2.so:graphics/graphite2 \
libharfbuzz.so:print/harfbuzz \
libicui18n.so:devel/icu \
libinput.so:x11/libinput \
libintl.so:devel/gettext-runtime \
libjpeg.so:graphics/jpeg-turbo \
libmtdev.so:devel/libmtdev \
libpcre2-16.so:devel/pcre2 \
libpng16.so:graphics/png \
libudev.so:devel/libudev-devd \
libvulkan.so:graphics/vulkan-loader \
libwayland-client.so:graphics/wayland \
libxkbcommon.so:x11/libxkbcommon \
libzstd.so:archivers/zstd
USES= cmake compiler:c++17-lang gl gnome jpeg perl5 pkgconfig python \
qt-dist:6 shebangfix ssl
USE_GL= egl opengl
USE_GNOME= cairo gdkpixbuf glib20 gtk30 pango
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
USE_LOCALE= C.UTF-8
SHEBANG_FILES= ${WRKSRC}/libexec/qt-android-runner.py \
${WRKSRC}/mkspecs/features/uikit/device_destinations.sh \
${WRKSRC}/mkspecs/features/uikit/devices.py \
${WRKSRC}/util/testrunner/qt-testrunner.py \
${WRKSRC}/util/testrunner/sanitizer-testrunner.py
CMAKE_ARGS= -DOPENSSL_ROOT_DIR="${OPENSSLBASE}"
CMAKE_ON= CMAKE_DISABLE_FIND_PACKAGE_LTTngUST \
QT_AVOID_CMAKE_ARCHIVING_API \
QT_FIND_ALL_PACKAGES_ALWAYS \
QT_FEATURE_openssl_linked
CMAKE_OFF= QT_FEATURE_eglfs \
QT_FEATURE_gssapi
# sql drivers are handled in the databases/qt6-base_sqldriver port
CMAKE_OFF+= FEATURE_sql_mysql \
FEATURE_sql_odbc \
FEATURE_sql_psql \
FEATURE_sql_sqlite
# zstd from base fails to compress files during the build (error 11: unsupported argument)
BINARY_ALIAS= zstd=${LOCALBASE}/bin/zstd
OPTIONS_DEFINE= CUPS X11
OPTIONS_DEFAULT= CUPS X11
OPTIONS_SUB= yes
CUPS_LIB_DEPENDS= libcups.so:print/cups
CUPS_CMAKE_BOOL= FEATURE_cups
X11_LIB_DEPENDS= libxcb-cursor.so:x11/xcb-util-cursor \
libxcb-icccm.so:x11/xcb-util-wm \
libxcb-image.so:x11/xcb-util-image \
libxcb-keysyms.so:x11/xcb-util-keysyms \
libxcb-render-util.so:x11/xcb-util-renderutil
X11_USES= xorg
X11_USE= XORG=ice,pixman,sm,x11,xau,xcb,xcomposite,xcursor,xdamage,xdmcp,xext,xfixes,xi,xinerama,xrandr,xrender
X11_CMAKE_BOOL= FEATURE_xcb \
FEATURE_xlib
.include <bsd.port.pre.mk>
# LibreSSL does not currently support BIO_ADDR in DTLSv1_listen()
.if ${SSL_DEFAULT:Mlibressl*}
CMAKE_OFF+= QT_FEATURE_dtls
PLIST_SUB+= DTLS="@comment "
.else
PLIST_SUB+= DTLS=""
.endif
.if ${ARCH} == "armv6" || ${ARCH} == "armv7"
BUILD_DEPENDS+= as:devel/binutils
CMAKE_ARGS+= -DCMAKE_ASM_FLAGS=-no-integrated-as
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%OPENSSLLIB%%|${OPENSSLLIB}|g' \
${WRKSRC}/src/plugins/tls/openssl/qsslsocket_openssl_symbols.cpp
post-install:
# Install symlinks for user-facing tools
while read line; do \
source="$$(${ECHO_CMD} $${line} | ${AWK} '{print $$1}')"; \
target="${STAGEDIR}${PREFIX}/$$(${ECHO_CMD} $${line} | ${AWK} '{print $$2}')"; \
${RLN} $${source} $${target}; \
done <${BUILD_WRKSRC}/user_facing_tool_links.txt
.include <bsd.port.post.mk>