From cc3a1bde77a496b5f205e0bc00035c2508c7a931 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 30 May 2026 17:57:17 +0200 Subject: [PATCH] package/qt6/qt6positioning: new package Needed for GPS support in Stellarium. Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/qt6/Config.in | 1 + package/qt6/qt6positioning/Config.in | 7 +++++ .../qt6/qt6positioning/qt6positioning.hash | 7 +++++ package/qt6/qt6positioning/qt6positioning.mk | 31 +++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 package/qt6/qt6positioning/Config.in create mode 100644 package/qt6/qt6positioning/qt6positioning.hash create mode 100644 package/qt6/qt6positioning/qt6positioning.mk diff --git a/DEVELOPERS b/DEVELOPERS index 95fa87d448..beabe134b9 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -516,6 +516,7 @@ F: package/python-pyicu/ F: package/python-pylru/ F: package/python-requests-oauthlib/ F: package/python-slob/ +F: package/qt6/qt6positioning/ F: package/rrdtool/ F: package/rsync/ F: package/rtmpdump/ diff --git a/package/qt6/Config.in b/package/qt6/Config.in index 9c297b321e..d6ee9f3ea3 100644 --- a/package/qt6/Config.in +++ b/package/qt6/Config.in @@ -53,6 +53,7 @@ source "package/qt6/qt6languageserver/Config.in" source "package/qt6/qt6mqtt/Config.in" source "package/qt6/qt6multimedia/Config.in" source "package/qt6/qt6opcua/Config.in" +source "package/qt6/qt6positioning/Config.in" source "package/qt6/qt6quick3d/Config.in" source "package/qt6/qt6quicktimeline/Config.in" source "package/qt6/qt6scxml/Config.in" diff --git a/package/qt6/qt6positioning/Config.in b/package/qt6/qt6positioning/Config.in new file mode 100644 index 0000000000..37d2a2d273 --- /dev/null +++ b/package/qt6/qt6positioning/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_QT6POSITIONING + bool "qt6positioning" + help + This package provides Qt6 Positioning: + + https://doc.qt.io/qt-6/qtpositioning-index.html + https://code.qt.io/cgit/qt/qtpositioning.git diff --git a/package/qt6/qt6positioning/qt6positioning.hash b/package/qt6/qt6positioning/qt6positioning.hash new file mode 100644 index 0000000000..4e610c7e94 --- /dev/null +++ b/package/qt6/qt6positioning/qt6positioning.hash @@ -0,0 +1,7 @@ +# From https://download.qt.io/official_releases/qt/6.9/6.9.1/submodules/qtpositioning-everywhere-src-6.9.1.tar.xz.sha256 +sha256 7062734b4989248ca3f0e3e4aebb9aa2e7ed2d6bf19e779e520c6ef69706ff26 qtpositioning-everywhere-src-6.9.1.tar.xz + +# Hashes for license files +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSES/GPL-2.0-only.txt +sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSES/GPL-3.0-only.txt +sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 LICENSES/LGPL-3.0-only.txt diff --git a/package/qt6/qt6positioning/qt6positioning.mk b/package/qt6/qt6positioning/qt6positioning.mk new file mode 100644 index 0000000000..8ddd047f98 --- /dev/null +++ b/package/qt6/qt6positioning/qt6positioning.mk @@ -0,0 +1,31 @@ +################################################################################ +# +# qt6positioning +# +################################################################################ + +QT6POSITIONING_VERSION = $(QT6_VERSION) +QT6POSITIONING_SITE = $(QT6_SITE) +QT6POSITIONING_SOURCE = qtpositioning-$(QT6_SOURCE_TARBALL_PREFIX)-$(QT6POSITIONING_VERSION).tar.xz +QT6POSITIONING_INSTALL_STAGING = YES +QT6POSITIONING_SUPPORTS_IN_SOURCE_BUILD = NO +QT6POSITIONING_CMAKE_BACKEND = ninja + +QT6POSITIONING_LICENSE = GPL-2.0 or GPL-3.0 or LGPL-3.0 + +QT6POSITIONING_LICENSE_FILES = \ + LICENSES/GPL-2.0-only.txt \ + LICENSES/GPL-3.0-only.txt \ + LICENSES/LGPL-3.0-only.txt + +QT6POSITIONING_DEPENDENCIES = qt6base + +ifeq ($(BR2_PACKAGE_QT6DECLARATIVE)$(BR2_PACKAGE_QT6DECLARATIVE_QUICK),yy) +QT6POSITIONING_DEPENDENCIES += qt6declarative +endif + +ifeq ($(BR2_PACKAGE_QT6SERIALPORT),y) +QT6POSITIONING_DEPENDENCIES += qt6serialport +endif + +$(eval $(cmake-package))