git: 8895473c09d3 - main - net/qt6-mqtt: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Jan 2025 08:13:58 UTC
The branch main has been updated by jhale:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8895473c09d36c06f87014ec122a3b47b46288d4
commit 8895473c09d36c06f87014ec122a3b47b46288d4
Author: Schaich, Alonso <alonsoschaich@fastmail.fm>
AuthorDate: 2024-11-12 00:31:40 +0000
Commit: Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-01-15 08:13:35 +0000
net/qt6-mqtt: New port
Qt module implementing the MQTT protocol
PR: 282703
MFH: 2025Q1 (to keep the Qt stack in sync)
Co-authored-by: Jason E. Hale <jhale@FreeBSD.org>
---
Mk/Uses/qt-dist.mk | 22 +++++++++----------
Mk/Uses/qt.mk | 17 +++++++++------
devel/qt6/Makefile | 1 +
net/Makefile | 1 +
net/qt6-mqtt/Makefile | 16 ++++++++++++++
net/qt6-mqtt/distinfo | 3 +++
net/qt6-mqtt/pkg-descr | 6 ++++++
net/qt6-mqtt/pkg-plist | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++
8 files changed, 107 insertions(+), 17 deletions(-)
diff --git a/Mk/Uses/qt-dist.mk b/Mk/Uses/qt-dist.mk
index 1ac27eb742c3..07c0fd70cfd0 100644
--- a/Mk/Uses/qt-dist.mk
+++ b/Mk/Uses/qt-dist.mk
@@ -21,16 +21,16 @@ qmake_ARGS?= # empty
.include "${USESDIR}/qmake.mk"
# Supported distribution arguments
-_COMMON_DISTS= 3d base charts connectivity datavis3d declarative imageformats location multimedia \
- networkauth quick3d quicktimeline remoteobjects scxml sensors \
- serialbus serialport speech svg tools translations virtualkeyboard \
+_COMMON_DISTS= 3d base charts connectivity datavis3d declarative \
+ imageformats location multimedia networkauth quick3d \
+ quicktimeline remoteobjects scxml sensors serialbus \
+ serialport speech svg tools translations virtualkeyboard \
wayland webchannel webengine websockets webview
-_QT5_DISTS= gamepad graphicaleffects quickcontrols \
- quickcontrols2 script webglplugin \
- x11extras xmlpatterns
-_QT6_DISTS= 5compat coap doc graphs grpc httpserver languageserver lottie positioning \
- quick3dphysics quickeffectmaker shadertools
-
+_QT5_DISTS= gamepad graphicaleffects quickcontrols quickcontrols2 \
+ script webglplugin x11extras xmlpatterns
+_QT6_DISTS= 5compat coap doc graphs grpc httpserver languageserver \
+ lottie mqtt positioning quick3dphysics quickeffectmaker \
+ shadertools
_QT_DISTS= ${_COMMON_DISTS} \
${_QT${_QT_VER}_DISTS}
@@ -96,8 +96,8 @@ _QT5_DISTNAME_kde= ${_QT_DIST:S,^,kde-qt,:S,$,-${DISTVERSION},}
_QT6_DISTNAME= ${_QT_DIST:S,^,qt,:S,$,-everywhere-src-${DISTVERSION},}
# Effective master sites and distfile values
-# net/qt6-coap has no submodule distfile and uses USE_GITHUB
-. if ${_QT_DIST} != coap
+# net/qt6-coap and net/qt6-mqtt have no submodule distfiles and use USE_GITHUB
+. if ${_QT_DIST} != coap && ${_QT_DIST} != mqtt
MASTER_SITES= ${_QT${_QT_VER}_MASTER_SITES${_KDE_${_QT_DIST}:D_kde}}
MASTER_SITE_SUBDIR= ${_QT${_QT_VER}_MASTER_SITE_SUBDIR${_KDE_${_QT_DIST}:D_kde}}
DISTNAME= ${_QT${_QT_VER}_DISTNAME${_KDE_${_QT_DIST}:D_kde}}
diff --git a/Mk/Uses/qt.mk b/Mk/Uses/qt.mk
index 50ef6aada57f..e4a35515a7f0 100644
--- a/Mk/Uses/qt.mk
+++ b/Mk/Uses/qt.mk
@@ -152,9 +152,10 @@ _USES_POST+= qt
_QT_MK_POST_INCLUDED= qt.mk
# The Qt components supported by qt.mk: list of shared, and version specific ones
-_USE_QT_COMMON= 3d charts connectivity datavis3d declarative doc examples imageformats location \
- multimedia networkauth quick3d quicktimeline remoteobjects scxml \
- sensors serialbus serialport speech svg virtualkeyboard wayland \
+_USE_QT_COMMON= 3d charts connectivity datavis3d declarative doc \
+ examples imageformats location multimedia networkauth \
+ quick3d quicktimeline remoteobjects scxml sensors \
+ serialbus serialport speech svg virtualkeyboard wayland \
webchannel webengine websockets webview
_USE_QT5_ONLY= assistant buildtools concurrent core dbus \
@@ -167,9 +168,10 @@ _USE_QT5_ONLY= assistant buildtools concurrent core dbus \
uitools webglplugin websockets-qml \
widgets x11extras xml xmlpatterns
-_USE_QT6_ONLY= 5compat base coap graphs grpc httpserver languageserver lottie pdf positioning \
- quick3dphysics quickeffectmaker shadertools tools translations \
- sqldriver-sqlite sqldriver-mysql sqldriver-psql sqldriver-odbc
+_USE_QT6_ONLY= 5compat base coap graphs grpc httpserver languageserver \
+ lottie mqtt pdf positioning quick3dphysics quickeffectmaker \
+ shadertools tools translations sqldriver-sqlite \
+ sqldriver-mysql sqldriver-psql sqldriver-odbc
# Dependency tuples: _LIB should be preferred if possible.
qt-3d_PORT= graphics/${_QT_RELNAME}-3d
@@ -269,6 +271,9 @@ qt-location_LIB= libQt${_QT_LIBVER}Location.so
qt-l10n_PORT= misc/${_QT_RELNAME}-l10n
qt-l10n_PATH= ${_QT_RELNAME}-l10n>=${_QT_VERSION:R:R}
+qt-mqtt_PORT= net/${_QT_RELNAME}-mqtt
+qt-mqtt_LIB= libQt${_QT_LIBVER}Mqtt.so
+
qt-multimedia_PORT= multimedia/${_QT_RELNAME}-multimedia
qt-multimedia_LIB= libQt${_QT_LIBVER}Multimedia.so
diff --git a/devel/qt6/Makefile b/devel/qt6/Makefile
index c4e795320e42..ef815c0d2e94 100644
--- a/devel/qt6/Makefile
+++ b/devel/qt6/Makefile
@@ -1,5 +1,6 @@
PORTNAME= qt6
DISTVERSION= ${QT6_VERSION}
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= kde@FreeBSD.org
diff --git a/net/Makefile b/net/Makefile
index 9093da9bdb0b..99e1aeb6450c 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1208,6 +1208,7 @@
SUBDIR += qt5-network
SUBDIR += qt5-networkauth
SUBDIR += qt6-coap
+ SUBDIR += qt6-mqtt
SUBDIR += qt6-networkauth
SUBDIR += quagga
SUBDIR += quiche
diff --git a/net/qt6-mqtt/Makefile b/net/qt6-mqtt/Makefile
new file mode 100644
index 000000000000..477674f0cf2f
--- /dev/null
+++ b/net/qt6-mqtt/Makefile
@@ -0,0 +1,16 @@
+PORTNAME= mqtt
+DISTVERSIONPREFIX= v
+DISTVERSION= ${QT6_VERSION}
+CATEGORIES= net
+PKGNAMEPREFIX= qt6-
+
+MAINTAINER= kde@FreeBSD.org
+COMMENT= Qt module implementing the MQTT protocol
+
+USES= cmake compiler:c++17-lang qt-dist:6
+USE_GITHUB= yes
+GH_TUPLE= qt:qtmqtt:${DISTVERSIONFULL}
+USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
+USE_QT= base
+
+.include <bsd.port.mk>
diff --git a/net/qt6-mqtt/distinfo b/net/qt6-mqtt/distinfo
new file mode 100644
index 000000000000..d0bc91c95b96
--- /dev/null
+++ b/net/qt6-mqtt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1736717113
+SHA256 (KDE/Qt/6.8.1/qt-qtmqtt-v6.8.1_GH0.tar.gz) = d831d6f912d446507f3d786e2a399f203710375bcdd9073c592c6e38f896b2b3
+SIZE (KDE/Qt/6.8.1/qt-qtmqtt-v6.8.1_GH0.tar.gz) = 208545
diff --git a/net/qt6-mqtt/pkg-descr b/net/qt6-mqtt/pkg-descr
new file mode 100644
index 000000000000..f3b9ee4b4774
--- /dev/null
+++ b/net/qt6-mqtt/pkg-descr
@@ -0,0 +1,6 @@
+MQTT is an OASIS standard messaging protocol for the Internet of Things
+(IoT). It is designed as an extremely lightweight publish/subscribe
+messaging transport that is ideal for connecting remote devices with a
+small code footprint and minimal network bandwidth. MQTT is used in a
+wide variety of industries, such as automotive, manufacturing, telecom,
+oil and gas, etc.
diff --git a/net/qt6-mqtt/pkg-plist b/net/qt6-mqtt/pkg-plist
new file mode 100644
index 000000000000..8aee4279cac4
--- /dev/null
+++ b/net/qt6-mqtt/pkg-plist
@@ -0,0 +1,58 @@
+%%QT_INCDIR%%/QtMqtt/%%FULLVER%%/QtMqtt/private/qmqttclient_p.h
+%%QT_INCDIR%%/QtMqtt/%%FULLVER%%/QtMqtt/private/qmqttconnection_p.h
+%%QT_INCDIR%%/QtMqtt/%%FULLVER%%/QtMqtt/private/qmqttconnectionproperties_p.h
+%%QT_INCDIR%%/QtMqtt/%%FULLVER%%/QtMqtt/private/qmqttcontrolpacket_p.h
+%%QT_INCDIR%%/QtMqtt/%%FULLVER%%/QtMqtt/private/qmqttmessage_p.h
+%%QT_INCDIR%%/QtMqtt/%%FULLVER%%/QtMqtt/private/qmqttpublishproperties_p.h
+%%QT_INCDIR%%/QtMqtt/%%FULLVER%%/QtMqtt/private/qmqttsubscription_p.h
+%%QT_INCDIR%%/QtMqtt/QMqttAuthenticationProperties
+%%QT_INCDIR%%/QtMqtt/QMqttClient
+%%QT_INCDIR%%/QtMqtt/QMqttConnectionProperties
+%%QT_INCDIR%%/QtMqtt/QMqttLastWillProperties
+%%QT_INCDIR%%/QtMqtt/QMqttMessage
+%%QT_INCDIR%%/QtMqtt/QMqttMessageStatusProperties
+%%QT_INCDIR%%/QtMqtt/QMqttPublishProperties
+%%QT_INCDIR%%/QtMqtt/QMqttServerConnectionProperties
+%%QT_INCDIR%%/QtMqtt/QMqttStringPair
+%%QT_INCDIR%%/QtMqtt/QMqttSubscription
+%%QT_INCDIR%%/QtMqtt/QMqttSubscriptionProperties
+%%QT_INCDIR%%/QtMqtt/QMqttTopicFilter
+%%QT_INCDIR%%/QtMqtt/QMqttTopicName
+%%QT_INCDIR%%/QtMqtt/QMqttUnsubscriptionProperties
+%%QT_INCDIR%%/QtMqtt/QMqttUserProperties
+%%QT_INCDIR%%/QtMqtt/QtMqtt
+%%QT_INCDIR%%/QtMqtt/QtMqttDepends
+%%QT_INCDIR%%/QtMqtt/QtMqttVersion
+%%QT_INCDIR%%/QtMqtt/qmqttauthenticationproperties.h
+%%QT_INCDIR%%/QtMqtt/qmqttclient.h
+%%QT_INCDIR%%/QtMqtt/qmqttconnectionproperties.h
+%%QT_INCDIR%%/QtMqtt/qmqttglobal.h
+%%QT_INCDIR%%/QtMqtt/qmqttmessage.h
+%%QT_INCDIR%%/QtMqtt/qmqttpublishproperties.h
+%%QT_INCDIR%%/QtMqtt/qmqttsubscription.h
+%%QT_INCDIR%%/QtMqtt/qmqttsubscriptionproperties.h
+%%QT_INCDIR%%/QtMqtt/qmqtttopicfilter.h
+%%QT_INCDIR%%/QtMqtt/qmqtttopicname.h
+%%QT_INCDIR%%/QtMqtt/qmqtttype.h
+%%QT_INCDIR%%/QtMqtt/qtmqttexports.h
+%%QT_INCDIR%%/QtMqtt/qtmqttversion.h
+lib/cmake/Qt6BuildInternals/StandaloneTests/QtMqttTestsConfig.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttAdditionalTargetInfo.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttConfig.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttConfigVersion.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttConfigVersionImpl.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttDependencies.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttTargets.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttVersionlessAliasTargets.cmake
+lib/cmake/Qt6Mqtt/Qt6MqttVersionlessTargets.cmake
+%%QT_LIBDIR%%/libQt6Mqtt.prl
+%%QT_LIBDIR%%/libQt6Mqtt.so
+%%QT_LIBDIR%%/libQt6Mqtt.so.6
+%%QT_LIBDIR%%/libQt6Mqtt.so.%%FULLVER%%
+%%QT_LIBDIR%%/metatypes/qt6mqtt_%%CMAKE_BUILD_TYPE%%_metatypes.json
+%%QT_MKSPECDIR%%/modules/qt_lib_mqtt.pri
+%%QT_MKSPECDIR%%/modules/qt_lib_mqtt_private.pri
+%%QT_SBOMDIR%%/qtmqtt-%%FULLVER%%.spdx
+libdata/pkgconfig/Qt6Mqtt.pc
+%%QT_DATADIR%%/modules/Mqtt.json