mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
Qt, bump to version 6.10.3 (#13935)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From aa289a7053c97a43612232238815b7e2551914e2 Mon Sep 17 00:00:00 2001
|
||||
From 45da92907c5a8b6a31e748f0bbb043614cf354e6 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 7 Nov 2021 10:47:17 +1000
|
||||
Subject: Don't link with librt for Haiku
|
||||
@@ -1,22 +0,0 @@
|
||||
From 02cbd0b4790530dc32f3d307ea27263ebd03a2bc Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 7 Nov 2021 10:47:17 +1000
|
||||
Subject: Don't link with librt for Haiku
|
||||
|
||||
|
||||
diff --git a/src/plugins/sensors/dummy/CMakeLists.txt b/src/plugins/sensors/dummy/CMakeLists.txt
|
||||
index 8d001ed..24a8e90 100644
|
||||
--- a/src/plugins/sensors/dummy/CMakeLists.txt
|
||||
+++ b/src/plugins/sensors/dummy/CMakeLists.txt
|
||||
@@ -21,7 +21,7 @@ qt_internal_add_plugin(dummySensorPlugin
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
-qt_internal_extend_target(dummySensorPlugin CONDITION UNIX AND NOT ANDROID AND NOT APPLE AND NOT OPENBSD AND NOT QNX
|
||||
+qt_internal_extend_target(dummySensorPlugin CONDITION UNIX AND NOT ANDROID AND NOT APPLE AND NOT OPENBSD AND NOT QNX AND NOT HAIKU
|
||||
LIBRARIES
|
||||
rt
|
||||
)
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -11,12 +11,12 @@ LICENSE="GNU LGPL v2.1
|
||||
REVISION="1"
|
||||
QT_MIRROR_URI="https://download.qt.io/official_releases"
|
||||
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtsensors-everywhere-src-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="91e6515b7cebbfae3696861933f5359cc303dfe82f7849cf5a10df378c8ef581"
|
||||
CHECKSUM_SHA256="c821ca985040f2326923d1ca05f2e91f7a45a1bf8bb8c072b712dfe1f7cb8d6e"
|
||||
SOURCE_DIR="qtsensors-everywhere-src-$portVersion"
|
||||
PATCHES="qt6_sensors-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
@@ -53,7 +53,7 @@ REQUIRES_devel="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcrypto$secondaryArchSuffix
|
||||
devel:libcrypto$secondaryArchSuffix >= 3
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libQt6Core$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Gui$secondaryArchSuffix == $portVersion
|
||||
@@ -62,7 +62,7 @@ BUILD_REQUIRES="
|
||||
devel:libQt6Quick$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Svg$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6SvgWidgets$secondaryArchSuffix == $portVersion
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix >= 3
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
@@ -1,115 +0,0 @@
|
||||
SUMMARY="Provide access to sensor hardware and motion gesture recognition"
|
||||
DESCRIPTION="Qt is a cross-platform application framework that is widely \
|
||||
used for developing software with a graphical user interface, and also used \
|
||||
for developing non-GUI programs such as command-line tools and consoles for \
|
||||
servers."
|
||||
HOMEPAGE="https://qt.io/"
|
||||
COPYRIGHT="2015-2024 The Qt Company Ltd."
|
||||
LICENSE="GNU LGPL v2.1
|
||||
GNU LGPL v3
|
||||
GNU FDL v1"
|
||||
REVISION="1"
|
||||
QT_MIRROR_URI="https://qt-mirror.dannhauer.de/archive"
|
||||
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtsensors-everywhere-src-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="ead1dec787c56ed4dc02ed810af54ff1e1f6875cb5cc2506c74eeb9554e6bb59"
|
||||
SOURCE_DIR="qtsensors-everywhere-src-$portVersion"
|
||||
PATCHES="qt6_sensors-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qt6_sensors$secondaryArchSuffix = $portVersion compat >= 6
|
||||
lib:libQt6Sensors$secondaryArchSuffix = $portVersion compat >= 6
|
||||
lib:libQt6SensorsQuick$secondaryArchSuffix = $portVersion compat >= 6
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
lib:libQt6Qml$secondaryArchSuffix
|
||||
lib:libQt6QmlModels$secondaryArchSuffix
|
||||
lib:libQt6Quick$secondaryArchSuffix
|
||||
lib:libQt6Svg$secondaryArchSuffix
|
||||
lib:libQt6SvgWidgets$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
qt6_sensors${secondaryArchSuffix}_devel = $portVersion compat >= 6
|
||||
devel:libQt6Sensors$secondaryArchSuffix = $portVersion compat >= 6
|
||||
devel:libQt6SensorsQuick$secondaryArchSuffix = $portVersion compat >= 6
|
||||
"
|
||||
REQUIRES_devel="
|
||||
qt6_sensors$secondaryArchSuffix == $portVersion base
|
||||
qt6_base${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcrypto$secondaryArchSuffix >= 3
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libQt6Core$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Gui$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Qml$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Quick$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Svg$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6SvgWidgets$secondaryArchSuffix == $portVersion
|
||||
devel:libssl$secondaryArchSuffix >= 3
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:cmake
|
||||
cmd:find
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:ninja
|
||||
cmd:perl
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3
|
||||
cmd:sed
|
||||
cmd:xargs
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export DISABLE_ASLR=1
|
||||
|
||||
cmake -B build -S $sourceDir -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_FLAGS=-fPIC
|
||||
|
||||
find -name cmake_install.cmake -exec sed -i "s|set(CMAKE_INSTALL_PREFIX.*|set(CMAKE_INSTALL_PREFIX \"$prefix\")|" {} \;
|
||||
|
||||
ninja -v -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -v -C build install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libQt6Sensors \
|
||||
libQt6SensorsQuick
|
||||
|
||||
# fix pkgconfig files
|
||||
fixPkgconfig
|
||||
sed -i "s|includedir=.*|includedir=$includeDir/Qt6|" \
|
||||
$developLibDir/pkgconfig/*.pc
|
||||
|
||||
cd $libDir
|
||||
for i in lib*.so.6.*;do
|
||||
ln -fs $i $(echo $i | cut -f1,2 -d.)
|
||||
done
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake \
|
||||
$dataDir/Qt6/mkspecs
|
||||
}
|
||||
Reference in New Issue
Block a user