ports/devel/pyside6/Makefile
Jason E. Hale 7e3e6797d2 Qt6: Update to 6.8.1
December 02, 2024

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

Announcement: https://www.qt.io/blog/qt-6.8.1-released
Release note: https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.8.1/release-note.md

We (kde@) skipped shipping Qt 6.8.0 due to waiting for a compatible
version of PyQt to be released, but here are the announcements and
release notes from Qt 6.8.0.

Announcement: https://www.qt.io/blog/qt-6.8-released
Release note: https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.8.0/release-note.md

PySide6: Update to 6.8.0.2

PySide6 and its related components have been updated alongside the Qt
release for compatibility. Older versions will not build with Qt 6.8.x.

Announcement: https://www.qt.io/blog/qt-for-python-release-6.8

PyQt6: Update to 6.8.0

This release also introduces x11-toolkits/py-qt6-graphs, python bindings
for the Qt Graphs module. As with PySide6, older versions of PyQt6 will
not build with Qt 6.8.x.

Support tools like py-sip and py-qtbuilder have also been updated to their
latest versions.

Announcement: https://www.riverbankcomputing.com/news/PyQt_v6.8.0_Released

Special thanks to Kenneth Raplee for testing and to SponiX for providing
access to build hardware!

PR:		283290
Exp-run by:	antoine (x2)
2025-01-05 01:28:11 -05:00

60 lines
2 KiB
Makefile

PORTNAME= pyside6
DISTVERSION= ${PYSIDE6_VERSION}
CATEGORIES= devel
MASTER_SITES= QT/official_releases/QtForPython/shiboken6/PySide6-${DISTVERSION}-src
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyside-setup-everywhere-src-${DISTVERSION:R}
DIST_SUBDIR= KDE/Qt/${PYSIDE6_VERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= Python Qt bindings for Qt 6
WWW= https://wiki.qt.io/Qt_for_Python
LICENSE= LGPL3
BUILD_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers
LIB_DEPENDS= libshiboken6.abi${PYTHON_MAJOR_VER}.so:devel/shiboken6@${PY_FLAVOR} \
libxkbcommon.so:x11/libxkbcommon
USES= cmake gl llvm:lib,min=17,noexport python qt:6 tar:xz
USE_GL= opengl
USE_LDCONFIG= yes
USE_PYTHON= flavors
USE_QT= 3d base charts connectivity datavis3d declarative doc graphs \
httpserver imageformats location multimedia networkauth pdf \
positioning quick3d quicktimeline remoteobjects scxml sensors \
serialbus serialport shadertools speech svg tools translations \
webchannel websockets
CONFIGURE_ENV= LLVM_INSTALL_DIR="${LLVM_PREFIX}/lib/cmake/llvm"
PATCH_WRKSRC= ${WRKSRC:H:H}
WRKSRC_SUBDIR= sources/pyside6
PLIST_SUB= PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER} \
SHLIB_VER=${DISTVERSION:R:R} \
SHLIB_VERSION=${DISTVERSION}
.include <bsd.port.pre.mk>
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386
PLIST_SUB+= WEBENGINE="" \
WEBVIEW=""
USE_QT+= webengine webview
.else
CMAKE_ON+= CMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineCore \
CMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineQuick \
CMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineWidgets \
CMAKE_DISABLE_FIND_PACKAGE_Qt6WebView
PLIST_SUB+= WEBENGINE="@comment " \
WEBVIEW="@comment "
.endif
post-install:
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PYTHONPREFIX_SITELIBDIR}/PySide6 \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PySide6
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PYTHONPREFIX_SITELIBDIR}/PySide6 \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PySide6
.include <bsd.port.post.mk>