git: 2b2ae540cae8 - main - devel/qt6-positioning: new port - provides positioning information via QML and C++

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Mon, 29 Aug 2022 18:20:09 UTC
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b2ae540cae83e5c4fc3f5f39190e3336c1e8b52

commit 2b2ae540cae83e5c4fc3f5f39190e3336c1e8b52
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-08-29 17:52:27 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-08-29 18:20:03 +0000

    devel/qt6-positioning: new port - provides positioning information via QML and C++
---
 Mk/Uses/qt-dist.mk              |   2 +-
 Mk/Uses/qt.mk                   |   6 +-
 devel/Makefile                  |   1 +
 devel/qt6-positioning/Makefile  |  16 +++++
 devel/qt6-positioning/distinfo  |   3 +
 devel/qt6-positioning/pkg-descr |   7 ++
 devel/qt6-positioning/pkg-plist | 150 ++++++++++++++++++++++++++++++++++++++++
 7 files changed, 183 insertions(+), 2 deletions(-)

diff --git a/Mk/Uses/qt-dist.mk b/Mk/Uses/qt-dist.mk
index dc6a88b4d173..c60b4c98a618 100644
--- a/Mk/Uses/qt-dist.mk
+++ b/Mk/Uses/qt-dist.mk
@@ -28,7 +28,7 @@ _COMMON_DISTS=		3d base charts datavis3d declarative imageformats multimedia \
 _QT5_DISTS=		connectivity gamepad graphicaleffects location quickcontrols \
 			quickcontrols2 script speech webengine webglplugin webview \
 			x11extras xmlpatterns
-_QT6_DISTS=		5compat doc languageserver lottie shadertools
+_QT6_DISTS=		5compat doc languageserver lottie positioning shadertools
 
 _QT_DISTS=		${_COMMON_DISTS} \
 			${_QT${_QT_VER}_DISTS}
diff --git a/Mk/Uses/qt.mk b/Mk/Uses/qt.mk
index de8a8a628330..98c60ae1e2f2 100644
--- a/Mk/Uses/qt.mk
+++ b/Mk/Uses/qt.mk
@@ -148,7 +148,8 @@ _USE_QT5_ONLY=		assistant buildtools concurrent connectivity core dbus \
 _USE_QT5_ONLY+=		sql-ibase
 .  endif
 
-_USE_QT6_ONLY=		5compat base languageserver lottie shadertools tools translations
+_USE_QT6_ONLY=		5compat base languageserver lottie positioning shadertools \
+			tools translations
 
 # Dependency tuples: _LIB should be preferred if possible.
 qt-3d_PORT=		graphics/${_QT_RELNAME}-3d
@@ -257,6 +258,9 @@ qt-pixeltool_PATH=	${LOCALBASE}/${QT_BINDIR_REL}/pixeltool
 qt-phonon4_PORT=	multimedia/phonon
 qt-phonon4_LIB=		libphonon4${_QT_RELNAME}.so
 
+qt-positioning_PORT=	devel/${_QT_RELNAME}-positioning
+qt-positioning_LIB=	libQt${_QT_LIBVER}Positioning.so
+
 qt-plugininfo_PORT=	sysutils/${_QT_RELNAME}-qtplugininfo
 qt-plugininfo_PATH=	${LOCALBASE}/${QT_BINDIR_REL}/qtplugininfo
 
diff --git a/devel/Makefile b/devel/Makefile
index c58078c72d36..ebdb095b0146 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5628,6 +5628,7 @@
     SUBDIR += qt6-5compat
     SUBDIR += qt6-base
     SUBDIR += qt6-languageserver
+    SUBDIR += qt6-positioning
     SUBDIR += qt6-remoteobjects
     SUBDIR += qt6-scxml
     SUBDIR += qt6-tools
diff --git a/devel/qt6-positioning/Makefile b/devel/qt6-positioning/Makefile
new file mode 100644
index 000000000000..9e7ed0981892
--- /dev/null
+++ b/devel/qt6-positioning/Makefile
@@ -0,0 +1,16 @@
+PORTNAME=	positioning
+PORTVERSION=	${QT6_VERSION}
+CATEGORIES=	devel
+PKGNAMEPREFIX=	qt6-
+
+MAINTAINER=	kde@FreeBSD.org
+COMMENT=	Qt 6 API to provide positioning information via QML and C++
+
+BUILD_DEPENDS=	vulkan-headers>0:graphics/vulkan-headers
+LIB_DEPENDS=	libxkbcommon.so:x11/libxkbcommon
+
+USES=		cmake compiler:c++11-lang gl pkgconfig qt-dist:6
+USE_GL=		gl opengl
+USE_QT=		base declarative serialbus serialport
+
+.include <bsd.port.mk>
diff --git a/devel/qt6-positioning/distinfo b/devel/qt6-positioning/distinfo
new file mode 100644
index 000000000000..5f6e7d50cf38
--- /dev/null
+++ b/devel/qt6-positioning/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661795269
+SHA256 (KDE/Qt/6.3.1/qtpositioning-everywhere-src-6.3.1.tar.xz) = 06788e4ecae1920094b30e4046f0abd23c8189d8a51e9c939b02f0b6abe2e86c
+SIZE (KDE/Qt/6.3.1/qtpositioning-everywhere-src-6.3.1.tar.xz) = 1493356
diff --git a/devel/qt6-positioning/pkg-descr b/devel/qt6-positioning/pkg-descr
new file mode 100644
index 000000000000..559abe3bb377
--- /dev/null
+++ b/devel/qt6-positioning/pkg-descr
@@ -0,0 +1,7 @@
+The Qt Positioning API lets you to determine a position by using a variety of
+possible sources, including satellite, wifi, or text files. That information
+can then be used to, for example, determine a position on a map. In addition,
+you can use to the API to retrieve satellite information and perform area based
+monitoring.
+
+WWW: https://qt.io
diff --git a/devel/qt6-positioning/pkg-plist b/devel/qt6-positioning/pkg-plist
new file mode 100644
index 000000000000..8f1a8d8e0860
--- /dev/null
+++ b/devel/qt6-positioning/pkg-plist
@@ -0,0 +1,150 @@
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qclipperutils_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qdoublematrix4x4_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qdoublevector2d_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qdoublevector3d_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeoaddress_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeocircle_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeocoordinate_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeocoordinateobject_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeolocation_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeopath_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeopolygon_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeopositioninfo_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeopositioninfosource_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeorectangle_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeosatelliteinfo_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeosatelliteinfosource_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qgeoshape_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qlocationutils_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qnmeapositioninfosource_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qnmeasatelliteinfosource_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qpositioningglobal_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qtpositioning-config_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qtpositioningexports_p.h
+%%QT_INCDIR%%/QtPositioning/%%FULLVER%%/QtPositioning/private/qwebmercator_p.h
+%%QT_INCDIR%%/QtPositioning/QGeoAddress
+%%QT_INCDIR%%/QtPositioning/QGeoAreaMonitorInfo
+%%QT_INCDIR%%/QtPositioning/QGeoAreaMonitorSource
+%%QT_INCDIR%%/QtPositioning/QGeoCircle
+%%QT_INCDIR%%/QtPositioning/QGeoCoordinate
+%%QT_INCDIR%%/QtPositioning/QGeoLocation
+%%QT_INCDIR%%/QtPositioning/QGeoPath
+%%QT_INCDIR%%/QtPositioning/QGeoPolygon
+%%QT_INCDIR%%/QtPositioning/QGeoPositionInfo
+%%QT_INCDIR%%/QtPositioning/QGeoPositionInfoSource
+%%QT_INCDIR%%/QtPositioning/QGeoPositionInfoSourceFactory
+%%QT_INCDIR%%/QtPositioning/QGeoRectangle
+%%QT_INCDIR%%/QtPositioning/QGeoSatelliteInfo
+%%QT_INCDIR%%/QtPositioning/QGeoSatelliteInfoSource
+%%QT_INCDIR%%/QtPositioning/QGeoShape
+%%QT_INCDIR%%/QtPositioning/QNmeaPositionInfoSource
+%%QT_INCDIR%%/QtPositioning/QNmeaSatelliteInfoSource
+%%QT_INCDIR%%/QtPositioning/QtPositioning
+%%QT_INCDIR%%/QtPositioning/QtPositioningDepends
+%%QT_INCDIR%%/QtPositioning/QtPositioningVersion
+%%QT_INCDIR%%/QtPositioning/qgeoaddress.h
+%%QT_INCDIR%%/QtPositioning/qgeoareamonitorinfo.h
+%%QT_INCDIR%%/QtPositioning/qgeoareamonitorsource.h
+%%QT_INCDIR%%/QtPositioning/qgeocircle.h
+%%QT_INCDIR%%/QtPositioning/qgeocoordinate.h
+%%QT_INCDIR%%/QtPositioning/qgeolocation.h
+%%QT_INCDIR%%/QtPositioning/qgeopath.h
+%%QT_INCDIR%%/QtPositioning/qgeopolygon.h
+%%QT_INCDIR%%/QtPositioning/qgeopositioninfo.h
+%%QT_INCDIR%%/QtPositioning/qgeopositioninfosource.h
+%%QT_INCDIR%%/QtPositioning/qgeopositioninfosourcefactory.h
+%%QT_INCDIR%%/QtPositioning/qgeorectangle.h
+%%QT_INCDIR%%/QtPositioning/qgeosatelliteinfo.h
+%%QT_INCDIR%%/QtPositioning/qgeosatelliteinfosource.h
+%%QT_INCDIR%%/QtPositioning/qgeoshape.h
+%%QT_INCDIR%%/QtPositioning/qnmeapositioninfosource.h
+%%QT_INCDIR%%/QtPositioning/qnmeasatelliteinfosource.h
+%%QT_INCDIR%%/QtPositioning/qpositioningglobal.h
+%%QT_INCDIR%%/QtPositioning/qtpositioning-config.h
+%%QT_INCDIR%%/QtPositioning/qtpositioningexports.h
+%%QT_INCDIR%%/QtPositioning/qtpositioningversion.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/locationsingleton_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qdeclarativegeoaddress_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qdeclarativegeolocation_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qdeclarativepluginparameter_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qdeclarativeposition_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qdeclarativepositionsource_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qpositioningquickglobal_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qpositioningquickmodule_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qquickgeocoordinateanimation_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qquickgeocoordinateanimation_p_p.h
+%%QT_INCDIR%%/QtPositioningQuick/%%FULLVER%%/QtPositioningQuick/private/qtpositioningquickexports_p.h
+%%QT_INCDIR%%/QtPositioningQuick/QtPositioningQuick
+%%QT_INCDIR%%/QtPositioningQuick/QtPositioningQuickDepends
+%%QT_INCDIR%%/QtPositioningQuick/QtPositioningQuickVersion
+%%QT_INCDIR%%/QtPositioningQuick/qpositioningquickglobal.h
+%%QT_INCDIR%%/QtPositioningQuick/qtpositioningquickexports.h
+%%QT_INCDIR%%/QtPositioningQuick/qtpositioningquickversion.h
+lib/cmake/Qt6/FindGconf.cmake
+lib/cmake/Qt6/FindGypsy.cmake
+lib/cmake/Qt6BuildInternals/StandaloneTests/QtPositioningTestsConfig.cmake
+lib/cmake/Qt6Bundled_Clip2Tri/Qt6Bundled_Clip2TriDependencies.cmake
+lib/cmake/Qt6Positioning/Qt6PositioningAdditionalTargetInfo.cmake
+lib/cmake/Qt6Positioning/Qt6PositioningConfig.cmake
+lib/cmake/Qt6Positioning/Qt6PositioningConfigVersion.cmake
+lib/cmake/Qt6Positioning/Qt6PositioningConfigVersionImpl.cmake
+lib/cmake/Qt6Positioning/Qt6PositioningDependencies.cmake
+lib/cmake/Qt6Positioning/Qt6PositioningTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6Positioning/Qt6PositioningTargets.cmake
+lib/cmake/Qt6Positioning/Qt6PositioningVersionlessTargets.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryGeoclue2PluginAdditionalTargetInfo.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryGeoclue2PluginConfig.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryGeoclue2PluginConfigVersion.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryGeoclue2PluginConfigVersionImpl.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryGeoclue2PluginTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryGeoclue2PluginTargets.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryNmeaPluginAdditionalTargetInfo.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryNmeaPluginConfig.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryNmeaPluginConfigVersion.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryNmeaPluginConfigVersionImpl.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryNmeaPluginTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryNmeaPluginTargets.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryPollPluginAdditionalTargetInfo.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryPollPluginConfig.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryPollPluginConfigVersion.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryPollPluginConfigVersionImpl.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryPollPluginTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6Positioning/Qt6QGeoPositionInfoSourceFactoryPollPluginTargets.cmake
+lib/cmake/Qt6PositioningQuick/Qt6PositioningQuickAdditionalTargetInfo.cmake
+lib/cmake/Qt6PositioningQuick/Qt6PositioningQuickConfig.cmake
+lib/cmake/Qt6PositioningQuick/Qt6PositioningQuickConfigVersion.cmake
+lib/cmake/Qt6PositioningQuick/Qt6PositioningQuickConfigVersionImpl.cmake
+lib/cmake/Qt6PositioningQuick/Qt6PositioningQuickDependencies.cmake
+lib/cmake/Qt6PositioningQuick/Qt6PositioningQuickTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6PositioningQuick/Qt6PositioningQuickTargets.cmake
+lib/cmake/Qt6PositioningQuick/Qt6PositioningQuickVersionlessTargets.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6positioningquickpluginAdditionalTargetInfo.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6positioningquickpluginConfig.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6positioningquickpluginConfigVersion.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6positioningquickpluginConfigVersionImpl.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6positioningquickpluginTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Qt6Qml/QmlPlugins/Qt6positioningquickpluginTargets.cmake
+%%QT_LIBDIR%%/libQt6Positioning.prl
+%%QT_LIBDIR%%/libQt6Positioning.so
+%%QT_LIBDIR%%/libQt6Positioning.so.6
+%%QT_LIBDIR%%/libQt6Positioning.so.%%FULLVER%%
+%%QT_LIBDIR%%/libQt6PositioningQuick.prl
+%%QT_LIBDIR%%/libQt6PositioningQuick.so
+%%QT_LIBDIR%%/libQt6PositioningQuick.so.6
+%%QT_LIBDIR%%/libQt6PositioningQuick.so.%%FULLVER%%
+%%QT_LIBDIR%%/metatypes/qt6positioning_%%CMAKE_BUILD_TYPE%%_metatypes.json
+%%QT_LIBDIR%%/metatypes/qt6positioningquick_%%CMAKE_BUILD_TYPE%%_metatypes.json
+%%QT_MKSPECDIR%%/modules/qt_lib_positioning.pri
+%%QT_MKSPECDIR%%/modules/qt_lib_positioning_private.pri
+%%QT_MKSPECDIR%%/modules/qt_lib_positioningquick.pri
+%%QT_MKSPECDIR%%/modules/qt_lib_positioningquick_private.pri
+%%QT_PLUGINDIR%%/position/libqtposition_geoclue2.so
+%%QT_PLUGINDIR%%/position/libqtposition_nmea.so
+%%QT_PLUGINDIR%%/position/libqtposition_positionpoll.so
+%%QT_QMLDIR%%/QtPositioning/libpositioningquickplugin.so
+%%QT_QMLDIR%%/QtPositioning/plugins.qmltypes
+%%QT_QMLDIR%%/QtPositioning/qmldir
+libdata/pkgconfig/Qt6Positioning.pc
+libdata/pkgconfig/Qt6PositioningQuick.pc
+%%QT_DATADIR%%/modules/Positioning.json
+%%QT_DATADIR%%/modules/PositioningQuick.json