Qt, bump to version 6.10.3 (#13935)

This commit is contained in:
Schrijvers Luc
2026-04-13 14:15:19 +02:00
committed by GitHub
parent 9aadbc5e80
commit 6ea379be33
80 changed files with 174 additions and 5625 deletions

View File

@@ -11,11 +11,11 @@ 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/qt3d-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="febbca9d491feca0fa2d770e912590b4ef18e461f739ca6e855ea62a488bbb6d"
CHECKSUM_SHA256="f53e47187be2487d8a23ef6fe5ed72f7c3c5fab706de3b61e165b0124c09ecd7"
SOURCE_DIR="qt3d-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,148 +0,0 @@
SUMMARY="C++ and QML APIs for easy inclusion of 3D graphics"
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/qt3d-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="8bc087d904973133186e58471845c5df376bbfdcfcf079fda287e1cda27c8adf"
SOURCE_DIR="qt3d-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_3d$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DAnimation$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DCore$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DExtras$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DInput$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DLogic$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DQuick$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DQuickAnimation$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DQuickExtras$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DQuickInput$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DQuickRender$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DQuickScene2D$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt63DRender$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:libQt6ShaderTools$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_3d${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt63DAnimation$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DCore$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DExtras$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DInput$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DLogic$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DQuick$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DQuickAnimation$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DQuickExtras$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DQuickInput$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DQuickRender$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DQuickScene2D$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt63DRender$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_3d$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:libQt6ShaderTools$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
local cmakeFlags
# disable simd code for x86_gcc2
if [ $targetArchitecture == x86_gcc2 ]; then
cmakeFlags="-DFEATURE_sse2=OFF -DFEATURE_avx2=OFF"
fi
cmake -B build -S $sourceDir -G Ninja $cmakeFlags \
-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 -C build install
prepareInstalledDevelLibs \
libQt63DAnimation \
libQt63DCore \
libQt63DExtras \
libQt63DInput \
libQt63DLogic \
libQt63DQuick \
libQt63DQuickAnimation \
libQt63DQuickExtras \
libQt63DQuickInput \
libQt63DQuickRender \
libQt63DQuickScene2D \
libQt63DRender
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qt5compat-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="3fa418f0fac02eb9efc5f762fbe25f20647b0ebb7fa92faf07e6de85044161c2"
CHECKSUM_SHA256="60e8980a8eaedd65a6e4092e8acbbec61aa50ce907d0a69a1e52ad256373d3f4"
SOURCE_DIR="qt5compat-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,113 +0,0 @@
SUMMARY="Module that contains unsupported Qt 5 APIs"
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/qt5compat-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="8826b5189efc4d9bdb64fdb1aa89d0fdf4e53c60948ed7995621ed046e38c003"
SOURCE_DIR="qt5compat-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_5compat$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Core5Compat$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libicudata$secondaryArchSuffix >= 74
lib:libicui18n$secondaryArchSuffix >= 74
lib:libicuuc$secondaryArchSuffix >= 74
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Qml$secondaryArchSuffix
lib:libQt6QmlModels$secondaryArchSuffix
lib:libQt6Quick$secondaryArchSuffix
lib:libQt6ShaderTools$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_5compat${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Core5Compat$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_5compat$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
qt6_tools${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix >= 3
devel:libiconv$secondaryArchSuffix
devel:libicuuc$secondaryArchSuffix >= 74
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Gui$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$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 -C build install
prepareInstalledDevelLibs \
libQt6Core5Compat
# 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
}

View File

@@ -1,4 +1,4 @@
From edb1d2579e54a45439326442622d43a742df4a71 Mon Sep 17 00:00:00 2001
From 227d8f48538fa21d5d3f4b75951899081783ebde Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Sat, 26 Apr 2025 10:50:40 +0200
Subject: Build fix

View File

@@ -1,4 +1,4 @@
From 88175dce0d2b55a3dd15612bd4a2f483fdd47183 Mon Sep 17 00:00:00 2001
From d6973d23a890295f13fd1782823753e8d6750177 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 10:16:14 +1000
Subject: Make sure libs are searched in the develop/ dir by CMake
@@ -22,7 +22,7 @@ index 24ed125..52f637e 100644
2.52.0
From 9e5e7b403370d0eb4a62435f4159834f6ddfffaa Mon Sep 17 00:00:00 2001
From fa98ef7f53d2b12cccf3a3fd6e328292ff34f1ab Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 10:16:34 +1000
Subject: Fix QStandartPaths for Haiku
@@ -84,7 +84,7 @@ index f473ebe..2560722 100644
2.52.0
From 5d3665a9f6bad82cf4a4df2648f973e049b76c9c Mon Sep 17 00:00:00 2001
From 0514fab15af6d8a775a51f6fe315f0f3318791ad Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 10:16:55 +1000
Subject: QSslSocketPrivate::unixRootCertDirectories(): add ssl path for Haiku.
@@ -106,7 +106,7 @@ index 46859a2..7be4dd0 100644
2.52.0
From daf05ae386ca890cfc46343aa00a63e2a9754324 Mon Sep 17 00:00:00 2001
From d4ebb4d5f36a0ce51a50316062098531144155a5 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 10:45:27 +1000
Subject: Fix build for Haiku platform
@@ -129,7 +129,7 @@ index 13bf7f1..aaa22ee 100644
2.52.0
From a698082881961b56dc98fce39df6dff054644440 Mon Sep 17 00:00:00 2001
From 6c01a6815c1cd9933f66529141d527437b6ca31a Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 10:45:56 +1000
Subject: Fix endian detection
@@ -156,7 +156,7 @@ index 0baac93..1d48cbc 100644
2.52.0
From 716f1acc4c9d5841ffd57e0c310448035d1b8a0b Mon Sep 17 00:00:00 2001
From 40aa54bdd7e7887bbbc68ee912cc5e2a35e35887 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:11:52 +1000
Subject: Disable LibResolv for Haiku
@@ -179,7 +179,7 @@ index 1883f41..1e10854 100644
2.52.0
From f2ceafe45c54353e73029d0273276245e07a508b Mon Sep 17 00:00:00 2001
From 6a008ae397583f5d8569c9bb1266968e198e782c Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:15:38 +1000
Subject: Don't use ifaddrs for Haiku
@@ -202,7 +202,7 @@ index 5313e17..03bb881 100644
2.52.0
From dae3b6f4a2766ef63bf0bb6af314855dddacdef7 Mon Sep 17 00:00:00 2001
From f3b16e0809d615b9c2ed2a94bc8db1aca4faefa4 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:15:58 +1000
Subject: Disable sharedmemory feature for bootstrap
@@ -224,7 +224,7 @@ index 4ed8169..bbfc3d6 100644
2.52.0
From 855e44989cade9cea1ca0d8d79470a0ae683a61a Mon Sep 17 00:00:00 2001
From 1f82f717f7d74a8b610f0c0d869b5ed3b058af15 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:16:20 +1000
Subject: Fix build for x86_gcc2
@@ -247,7 +247,7 @@ index 465258e..4cb6b0c 100644
2.52.0
From 688cd526d534a89ec27fa2520c86bd0e6c40a72a Mon Sep 17 00:00:00 2001
From ab31d6f4c9df8aaa507bf99356a263554cff7c5c Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:17:49 +1000
Subject: Implement QFilesystemWatcher for Haiku
@@ -645,7 +645,7 @@ index 0000000..0ae4bdf
2.52.0
From 12111f1bfdfe725d7b11838f702a1e1ea462faf6 Mon Sep 17 00:00:00 2001
From 5eb4027e1cd24c906d497771f2c2d9dc0ad7e9af Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:18:17 +1000
Subject: Don't use AF_INET6 for new sockets
@@ -672,7 +672,7 @@ index 6d49943..8b12671 100644
2.52.0
From 1846d25a3247697f59962ed3898a4f9ab2abf743 Mon Sep 17 00:00:00 2001
From ecf32b2da609a99c2f2a3628378ab50ce6019876 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:18:41 +1000
Subject: Disable Haswell CPU feature for plugins
@@ -695,14 +695,14 @@ index f03eba3..0a21b64 100644
2.52.0
From 7ad1d1030480b80a3a88b28e22a37f366caa8e48 Mon Sep 17 00:00:00 2001
From fd76ee62fb7470d2f4d92bc692ea4b2d61de023d Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:19:25 +1000
Subject: Haiku build setup
diff --git a/cmake/QtBuildHelpers.cmake b/cmake/QtBuildHelpers.cmake
index da3c954..59bf687 100644
index df43ac1..360b7a8 100644
--- a/cmake/QtBuildHelpers.cmake
+++ b/cmake/QtBuildHelpers.cmake
@@ -43,7 +43,7 @@ endmacro()
@@ -748,7 +748,7 @@ index da6c871..bd085e2 100644
2.52.0
From 3f7d48fb3de511d4622cfcb93d1105ebd6cbe3db Mon Sep 17 00:00:00 2001
From c10ca1bf0b424323be06a34c21c0c1bc044e003d Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:21:18 +1000
Subject: Haiku: link against libnetwork
@@ -774,7 +774,7 @@ index 1112f10..1bc87a5 100644
2.52.0
From 06aaf29220a31133e7c3e09617baefead04b03b7 Mon Sep 17 00:00:00 2001
From f1c68fcf110ffc468f244e6beffba728833e9a3a Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:28:46 +1000
Subject: Fix elf parser for Haiku
@@ -861,7 +861,7 @@ index 78c9be0..6cc9db8 100644
2.52.0
From efa55591c8647c6c15110ce6168e0bd53cd1cf95 Mon Sep 17 00:00:00 2001
From 9dc140b01bb96b0208d9b3fcd8ac93e21ae0df96 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:29:03 +1000
Subject: Don't use nl_langinfo
@@ -884,7 +884,7 @@ index 310b011..9dff974 100644
2.52.0
From d2cbc972b0ec0638ac6271deac7e1334f31fdc6c Mon Sep 17 00:00:00 2001
From 7b1f28ab854aa45966b8d4c7bfac7096b5f3c350 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 20 Oct 2023 12:30:12 +1000
Subject: Workaround for shm_open
@@ -909,17 +909,17 @@ index fa215c3..7a0978c 100644
2.52.0
From 18a32823a5ada939947ac346fafe2d5036a0cc74 Mon Sep 17 00:00:00 2001
From 6bee673c1ce15125e0dcce91faa15f384d70c1e5 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sun, 14 Apr 2024 12:20:21 +1000
Subject: Disable DisconnectControllingTerminal
diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp
index a6131f1..453c3d3 100644
index 32c0851..ad1b87f 100644
--- a/src/corelib/io/qprocess_unix.cpp
+++ b/src/corelib/io/qprocess_unix.cpp
@@ -879,6 +879,7 @@ static const char *applyProcessParameters(const QProcess::UnixProcessParameters
@@ -881,6 +881,7 @@ static const char *applyProcessParameters(const QProcess::UnixProcessParameters
return "setsid";
}
@@ -927,7 +927,7 @@ index a6131f1..453c3d3 100644
// Disconnect from the controlling TTY. This probably won't fail. Must be
// done after the session settings from above.
if (params.flags.testFlag(QProcess::UnixProcessFlag::DisconnectControllingTerminal)) {
@@ -895,6 +896,7 @@ static const char *applyProcessParameters(const QProcess::UnixProcessParameters
@@ -897,6 +898,7 @@ static const char *applyProcessParameters(const QProcess::UnixProcessParameters
}
#endif
}
@@ -939,7 +939,7 @@ index a6131f1..453c3d3 100644
2.52.0
From a1d49197d96886d334e2ca2e90661620f027653a Mon Sep 17 00:00:00 2001
From 406ab97e0d0c80097bf2167fd94171cd33f7a3e8 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Fri, 4 Oct 2024 18:22:17 +1000
Subject: Use ICU backend for QTimeZone
@@ -962,7 +962,7 @@ index 7b43aab..0061b1e 100644
2.52.0
From 6e298692ca3c675e8d82463a956f493223c4812d Mon Sep 17 00:00:00 2001
From efba3c6479127ffb113b4835c99a7ca582fbb9b2 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 5 Oct 2024 19:48:13 +1000
Subject: Use ICU backend for ianaId
@@ -985,7 +985,7 @@ index 0061b1e..542f54c 100644
2.52.0
From 9bc4852fcda4347443fc0b913ebb67b51bb8dc72 Mon Sep 17 00:00:00 2001
From a567088fbde88b4d53e1854f579054c30ce7950a Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 5 Oct 2024 19:48:35 +1000
Subject: Disable tz backend for Haiku
@@ -1008,7 +1008,7 @@ index 0e101c4..c88104b 100644
2.52.0
From f16637446b1a03474831299397f7ba089a35dd17 Mon Sep 17 00:00:00 2001
From d23d0b706c0d46891917f1831fcc9ba1cf84290b Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Sun, 29 Jun 2025 09:30:39 +0200
Subject: Build fix*
@@ -1032,7 +1032,7 @@ index d66a542..81ccaaf 100644
2.52.0
From 28f1adfc1c5ecb5a1c2ff124d5a1903b899fc290 Mon Sep 17 00:00:00 2001
From 7d99626e6aabfbbd9583fcf5506f9b2dda627323 Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Thu, 9 Oct 2025 10:52:56 +0200
Subject: Include Qt warning
@@ -1064,7 +1064,7 @@ index 0ae4bdf..0339487 100644
2.52.0
From 338171278a762ad5a5abde6ce3a75535ce03fdd6 Mon Sep 17 00:00:00 2001
From 50c238c9d6d404130769b395f5699b74281af232 Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Fri, 13 Feb 2026 16:08:03 +0100
Subject: Fix error for static_assert

File diff suppressed because it is too large Load Diff

View File

@@ -11,7 +11,7 @@ LICENSE="GNU LGPL v3
REVISION="1"
QT_MIRROR_URI="https://download.qt.io/official_releases"
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtbase-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="aeb78d29291a2b5fd53cb55950f8f5065b4978c25fb1d77f627d695ab9adf21e"
CHECKSUM_SHA256="383dc907816338f0cba72088a524c07458dfc69ce684ca9132fcc4fe91c24b0b"
SOURCE_DIR="qtbase-everywhere-src-$portVersion"
PATCHES="qt6_base-$portVersion.patchset"
srcGitRev2="1d255f2f8e58d66c1d3f2fc12cf651e4ca0aa80d"
@@ -20,8 +20,8 @@ CHECKSUM_SHA256_2="ca54435a744b3d036b241a82380edaf3ffe7ed13501fd0529996dbf31e4f4
SOURCE_DIR_2="qt6-haikuplugins-$srcGitRev2"
PATCHES_2="qt6_base-$portVersion-source2.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,235 +0,0 @@
SUMMARY="A cross-platform application and UI framework"
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 v3
GNU GPL v3
GNU FDL v1"
REVISION="8"
QT_MIRROR_URI="https://mirrors.ukfast.co.uk/sites/qt.io/archive"
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtbase-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="c5f22a5e10fb162895ded7de0963328e7307611c688487b5d152c9ee64767599"
SOURCE_DIR="qtbase-everywhere-src-$portVersion"
srcGitRev2="1d255f2f8e58d66c1d3f2fc12cf651e4ca0aa80d"
SOURCE_URI_2="https://github.com/threedeyes/qt6-haikuplugins/archive/$srcGitRev2.tar.gz"
CHECKSUM_SHA256_2="ca54435a744b3d036b241a82380edaf3ffe7ed13501fd0529996dbf31e4f4558"
SOURCE_DIR_2="qt6-haikuplugins-$srcGitRev2"
PATCHES="qt6_base-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_base$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Concurrent$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Core$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6DBus$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6EglFSDeviceIntegration$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Gui$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Network$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6OpenGL$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6OpenGLWidgets$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6PrintSupport$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Sql$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Test$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Widgets$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Xml$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
haiku_svg_icon_theme
lib:libbrotlidec$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libdouble_conversion$secondaryArchSuffix
lib:libegl$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libfontconfig$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
lib:libharfbuzz$secondaryArchSuffix
lib:libicudata$secondaryArchSuffix
lib:libicui18n$secondaryArchSuffix
lib:libicuuc$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpcre2_16$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
lib:libvulkan$secondaryArchSuffix
lib:libz$secondaryArchSuffix
cmd:qsystray
cmd:qnotify
"
PROVIDES_devel="
qt6_base${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Concurrent$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Core$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6DBus$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6DeviceDiscoverySupport$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6EdidSupport$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6EglFSDeviceIntegration$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6ExampleIcons$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6FBSupport$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Gui$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Network$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6OpenGL$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6OpenGLWidgets$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6PrintSupport$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Sql$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Test$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Widgets$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Xml$secondaryArchSuffix = $portVersion compat >= 6
cmd:qmake6$secondaryArchSuffix = $portVersion compat >= 6
cmd:qtpaths6$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
qt6_base$secondaryArchSuffix == $portVersion base
devel:libgl$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix
devel:libharfbuzz_gobject$secondaryArchSuffix
devel:libvulkan$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbrotlidec$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix >= 3
devel:libdouble_conversion$secondaryArchSuffix >= 3
devel:libegl$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libgl$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix
devel:libharfbuzz_gobject$secondaryArchSuffix
devel:libicuuc$secondaryArchSuffix >= 74
devel:libjpeg$secondaryArchSuffix
devel:libpcre2_16$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libsqlite3$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libvulkan$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
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_C_FLAGS="-fPIC -D_DEFAULT_SOURCE" \
-DCMAKE_CXX_FLAGS="-fPIC -D_DEFAULT_SOURCE" \
-DCMAKE_INSTALL_PREFIX=$prefix \
-DBUILD_WITH_PCH=ON \
-DINSTALL_BINDIR=$libDir/Qt6 \
-DINSTALL_PUBLICBINDIR=$binDir \
-DINSTALL_PLUGINSDIR=$addOnsDir/Qt6 \
-DINSTALL_LIBDIR=$libDir \
-DINSTALL_LIBEXECDIR=$libDir/Qt6 \
-DINSTALL_DOCDIR=$docDir \
-DINSTALL_ARCHDATADIR=$dataDir/Qt6 \
-DINSTALL_DATADIR=$dataDir/Qt6 \
-DINSTALL_INCLUDEDIR=$includeDir/Qt6 \
-DINSTALL_MKSPECSDIR=$dataDir/Qt6/mkspecs \
-DINSTALL_EXAMPLESDIR=$developDir/sources/Qt6 \
-DINSTALL_QMLDIR=$dataDir/Qt6/qml \
-DINSTALL_TRANSLATIONSDIR=$dataDir/Qt6/translations \
-DQT_QMAKE_TARGET_MKSPEC=haiku-g++ \
-DQT_FEATURE_openssl_linked=ON \
-DQT_FEATURE_system_sqlite=ON \
-DQT_FEATURE_glib=OFF \
-DFEATURE_rpath=OFF
ninja -v -C build $jobArgs
}
INSTALL()
{
ninja -C build install
# build platform plugins
PATH=$PATH:$binDir:$libDir/Qt6
LIBRARY_PATH=$LIBRARY_PATH:$libDir
mkdir -p $sourceDir2/build
cd $sourceDir2/build
qmake6 ../src
make $jobArgs
# install platform plugins
mkdir -p $addOnsDir/Qt6/{platforms,imageformats,styles} $preferencesDir
cp platform/libqhaiku.so $addOnsDir/Qt6/platforms
cp imageformats/hvif/libqhvif.so $addOnsDir/Qt6/imageformats
cp style/libqhaikustyle.so $addOnsDir/Qt6/styles
cp preferences/Qt6Configurator $preferencesDir
prepareInstalledDevelLibs \
libQt6Concurrent \
libQt6Core \
libQt6DBus \
libQt6DeviceDiscoverySupport \
libQt6EglFSDeviceIntegration \
libQt6FbSupport \
libQt6ExampleIcons \
libQt6Gui \
libQt6Network \
libQt6OpenGL \
libQt6OpenGLWidgets \
libQt6PrintSupport \
libQt6Sql \
libQt6Test \
libQt6Widgets \
libQt6Xml
# fix pkgconfig & cmake files
fixPkgconfig
sed -i "s|includedir=.*|includedir=$includeDir/Qt6|" \
$developLibDir/pkgconfig/*.pc
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6FbSupportPrivate/Qt6FbSupportPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6DeviceDiscoverySupportPrivate/Qt6DeviceDiscoverySupportPrivateTargets-release.cmake
sed -i "s,\${_IMPORT_PREFIX}/$relativeLibDir/libQt6ExampleIcons.a,\${_IMPORT_PREFIX}/$relativeDevelopLibDir/libQt6ExampleIcons.a," \
$libDir/cmake/Qt6ExampleIconsPrivate/Qt6ExampleIconsPrivateTargets-release.cmake
mkdir -p $binDir
ln -s -t $binDir $libDir/Qt6/{qmake6,qtpaths6}
rm -rf $(dirname "$docDir")
cd $libDir
for i in lib*.so.6.*;do
ln -fs $i $(echo $i | cut -f1,2 -d.)
done
packageEntries devel \
$developDir \
$binDir \
$libDir/cmake \
$dataDir/Qt6/mkspecs
addPreferencesDeskbarSymlink $preferencesDir/Qt6Configurator "Qt6 Configurator"
}

View File

@@ -11,11 +11,11 @@ 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/qtcharts-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="405116b4c5eded981484c4c154eb392d44b69b587342f1193181175e309f2c00"
CHECKSUM_SHA256="ab64abd0ff99f90cf290041f5e4283a702f6c2434d30eb460fd3765081e86f15"
SOURCE_DIR="qtcharts-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,111 +0,0 @@
SUMMARY="Provides a set of easy to use chart components"
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/qtcharts-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="00f6a437458b7f2c4e81d748dbe2a077567a9e6ad8d8e3820b36c39dc5279bda"
SOURCE_DIR="qtcharts-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_charts$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Charts$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6ChartsQml$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:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_charts${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Charts$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6ChartsQml$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_charts$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:libQt6Multimedia$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$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 -C build install
prepareInstalledDevelLibs \
libQt6Charts \
libQt6ChartsQml
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qtconnectivity-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="cf58f021f32857b5b6799cd4404ef613399ecc1c515492f0f620ce338a311a32"
CHECKSUM_SHA256="6f675f3165ca3d06ee7a7bd234e2d58fe72f02e68c1e9c4ccb21fe8b1a93d478"
SOURCE_DIR="qtconnectivity-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,110 +0,0 @@
SUMMARY="Provides acess to Bluetooth hardware"
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/qtconnectivity-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="8ed321b242f0e956473a295fa31670271f9b3acb797508644cb740f89f6c08e8"
SOURCE_DIR="qtconnectivity-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_connectivity$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Bluetooth$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Nfc$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:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_connectivity${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Bluetooth$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Nfc$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_connectivity$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: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 -C build install
prepareInstalledDevelLibs \
libQt6Bluetooth \
libQt6Nfc
# 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
}

View File

@@ -1,14 +1,14 @@
From 259e550c37c06de69b762bc0b4adffefb8a85af9 Mon Sep 17 00:00:00 2001
From 4c0530d47020b18060a29216622a184275453c14 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Tue, 3 May 2022 16:16:08 +1000
Subject: Enable GLES for Haiku
diff --git a/src/datavisualization/utils/utils.cpp b/src/datavisualization/utils/utils.cpp
index fd81dbe..893b6b3 100644
index f69860a..3ef2428 100644
--- a/src/datavisualization/utils/utils.cpp
+++ b/src/datavisualization/utils/utils.cpp
@@ -312,9 +312,13 @@ QQuaternion Utils::calculateRotation(const QVector3D &xyzRotations)
@@ -314,9 +314,13 @@ QQuaternion Utils::calculateRotation(const QVector3D &xyzRotations)
bool Utils::isOpenGLES()
{

View File

@@ -1,27 +0,0 @@
From 887fdc42173080bf1d89ab2541080e16e9cda6ba Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Tue, 3 May 2022 16:16:08 +1000
Subject: Enable GLES for Haiku
diff --git a/src/datavisualization/utils/utils.cpp b/src/datavisualization/utils/utils.cpp
index 7d5a4c0..7f0058c 100644
--- a/src/datavisualization/utils/utils.cpp
+++ b/src/datavisualization/utils/utils.cpp
@@ -336,9 +336,13 @@ QQuaternion Utils::calculateRotation(const QVector3D &xyzRotations)
bool Utils::isOpenGLES()
{
+#ifdef Q_OS_HAIKU
+ return true;
+#else
if (!staticsResolved)
resolveStatics();
return isES;
+#endif
}
void Utils::resolveStatics()
--
2.30.2

View File

@@ -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/qtdatavis3d-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="b769408bf4a3d03220331d5de59636fdf97a21831d01d3fd141c36c698355bc1"
CHECKSUM_SHA256="230aa12d87965fe0554590b6f3d1d8a81ed4e355ba0b99586220ab3a51b1b370"
SOURCE_DIR="qtdatavis3d-everywhere-src-$portVersion"
PATCHES="qt6_datavis3d-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,116 +0,0 @@
SUMMARY="Qt6 Data Visualization module"
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/qtdatavis3d-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="c0ebc87d95deb595106fc68ed7e6de05149a18917d68cff40905c57fc6694e53"
SOURCE_DIR="qtdatavis3d-everywhere-src-$portVersion"
PATCHES="qt6_datavis3d-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_datavis3d$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6DataVisualization$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6DataVisualizationQml$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:libQt6QuickTimeline$secondaryArchSuffix
lib:libQt6ShaderTools$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_datavis3d${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6DataVisualization$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6DataVisualizationQml$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_datavis3d$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:libQt6OpenGL$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6QuickTimeline$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$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 -C build install
prepareInstalledDevelLibs \
libQt6DataVisualization \
libQt6DataVisualizationQml
# 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
}

View File

@@ -1,4 +1,4 @@
From 8fa0e7815a0b4fc6944118de0e3a4a7c52ff3e98 Mon Sep 17 00:00:00 2001
From 2d13cae48f45384d947f67bc9342dd611f05ac9f Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Tue, 9 Apr 2024 21:29:50 +1000
Subject: Fix for Haiku
@@ -62,10 +62,10 @@ index 47c5e37..0bb056a 100644
class PlatformAssembler_X86_64_SysV : public JSC::MacroAssembler<JSC::MacroAssemblerX86_64>
{
diff --git a/src/qml/memory/qv4stacklimits.cpp b/src/qml/memory/qv4stacklimits.cpp
index 5e43900..02b31b5 100644
index 9494c62..cf2022c 100644
--- a/src/qml/memory/qv4stacklimits.cpp
+++ b/src/qml/memory/qv4stacklimits.cpp
@@ -36,6 +36,10 @@
@@ -37,6 +37,10 @@
# include <taskLib.h>
#elif defined(Q_OS_WASM)
# include <emscripten/stack.h>
@@ -76,7 +76,7 @@ index 5e43900..02b31b5 100644
#endif
QT_BEGIN_NAMESPACE
@@ -60,6 +64,9 @@ enum StackDefaults : qsizetype {
@@ -61,6 +65,9 @@ enum StackDefaults : qsizetype {
// On linux, we assume 8MB stacks if rlimit doesn't work.
PlatformStackSize = 8 * 1024 * 1024,
PlatformSafetyMargin = DefaultSafetyMargin,
@@ -86,7 +86,7 @@ index 5e43900..02b31b5 100644
#elif defined(Q_OS_QNX)
// QNX's stack is only 512k by default
PlatformStackSize = 512 * 1024,
@@ -80,7 +87,7 @@ static StackProperties createStackProperties(void *base, qsizetype size = Platfo
@@ -81,7 +88,7 @@ static StackProperties createStackProperties(void *base, qsizetype size = Platfo
};
}

View File

@@ -1,100 +0,0 @@
From bbfa8a4b14e236a3da204a77ee2d47e426f22ee5 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Tue, 9 Apr 2024 21:29:50 +1000
Subject: Fix for Haiku
diff --git a/src/3rdparty/masm/wtf/PageBlock.cpp b/src/3rdparty/masm/wtf/PageBlock.cpp
index 28d4239..9559e3b 100644
--- a/src/3rdparty/masm/wtf/PageBlock.cpp
+++ b/src/3rdparty/masm/wtf/PageBlock.cpp
@@ -40,7 +40,14 @@ namespace WTF {
static size_t s_pageSize;
static size_t s_pageMask;
-#if OS(UNIX)
+#if OS(HAIKU)
+
+inline size_t systemPageSize()
+{
+ return 4096;
+}
+
+#elif OS(UNIX)
inline size_t systemPageSize()
{
diff --git a/src/3rdparty/masm/wtf/Platform.h b/src/3rdparty/masm/wtf/Platform.h
index 4146879..8e35d08 100644
--- a/src/3rdparty/masm/wtf/Platform.h
+++ b/src/3rdparty/masm/wtf/Platform.h
@@ -422,6 +422,11 @@
#define WTF_OS_QNX 1
#endif
+/* OS(HAIKU) - Haiku */
+#if defined(__HAIKU__)
+#define WTF_OS_HAIKU 1
+#endif
+
/* OS(SOLARIS) - Solaris */
#if defined(sun) || defined(__sun)
#define WTF_OS_SOLARIS 1
@@ -461,6 +466,7 @@
|| OS(HURD) \
|| OS(INTEGRITY) \
|| OS(LINUX) \
+ || OS(HAIKU) \
|| OS(NETBSD) \
|| OS(OPENBSD) \
|| OS(QNX) \
diff --git a/src/qml/jit/qv4assemblercommon_p.h b/src/qml/jit/qv4assemblercommon_p.h
index e83608a..5b0f517 100644
--- a/src/qml/jit/qv4assemblercommon_p.h
+++ b/src/qml/jit/qv4assemblercommon_p.h
@@ -33,7 +33,7 @@ namespace QV4 {
namespace JIT {
#if defined(Q_PROCESSOR_X86_64) || defined(ENABLE_ALL_ASSEMBLERS_FOR_REFACTORING_PURPOSES)
-#if defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD) || defined(Q_OS_DARWIN) || defined(Q_OS_SOLARIS) || defined(Q_OS_VXWORKS)
+#if defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD) || defined(Q_OS_DARWIN) || defined(Q_OS_SOLARIS) || defined(Q_OS_VXWORKS) || defined(Q_OS_HAIKU)
class PlatformAssembler_X86_64_SysV : public JSC::MacroAssembler<JSC::MacroAssemblerX86_64>
{
diff --git a/src/qml/memory/qv4stacklimits.cpp b/src/qml/memory/qv4stacklimits.cpp
index ef5c007..c83c7d9 100644
--- a/src/qml/memory/qv4stacklimits.cpp
+++ b/src/qml/memory/qv4stacklimits.cpp
@@ -35,6 +35,10 @@
# include <taskLib.h>
#elif defined(Q_OS_WASM)
# include <emscripten/stack.h>
+#elif defined(Q_OS_HAIKU)
+# include <OS.h>
+# include <unistd.h>
+# include <sys/resource.h>
#endif
QT_BEGIN_NAMESPACE
@@ -59,6 +63,9 @@ enum StackDefaults : qsizetype {
// On linux, we assume 8MB stacks if rlimit doesn't work.
PlatformStackSize = 8 * 1024 * 1024,
PlatformSafetyMargin = DefaultSafetyMargin,
+#elif defined(Q_OS_HAIKU)
+ PlatformStackSize = 16 * 1024 * 1024,
+ PlatformSafetyMargin = DefaultSafetyMargin,
#elif defined(Q_OS_QNX)
// QNX's stack is only 512k by default
PlatformStackSize = 512 * 1024,
@@ -103,7 +110,7 @@ static StackProperties createStackProperties(void *base, qsizetype size = Platfo
};
}
-#if defined(Q_OS_DARWIN) || defined(Q_OS_LINUX)
+#if defined(Q_OS_DARWIN) || defined(Q_OS_LINUX) || defined(Q_OS_HAIKU)
// On linux and darwin, on the main thread, the pthread functions
// may not return the true stack size since the main thread stack
--
2.43.2

View File

@@ -8,15 +8,15 @@ COPYRIGHT="2015-2026 The Qt Company Ltd."
LICENSE="GNU LGPL v2.1
GNU LGPL v3
GNU FDL v1"
REVISION="2"
REVISION="1"
QT_MIRROR_URI="https://download.qt.io/official_releases"
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtdeclarative-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="a249914ff66cdcdbf0df8b5ffad997a2ee6dce01cc17d43c6cc56fdc1d0f4b0f"
CHECKSUM_SHA256="dadf80d43b8e08ca63aa65d46859a42b920a7777cf7e0ecfcb4c4537f9e65c76"
SOURCE_DIR="qtdeclarative-everywhere-src-$portVersion"
PATCHES="qt6_declarative-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,255 +0,0 @@
SUMMARY="Classes for QML and JavaScript languages"
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/qtdeclarative-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="4c29cba1af8c42d425d8eb6e01bad24cb80f4b983d71eef566a0542dfdb9b999"
SOURCE_DIR="qtdeclarative-everywhere-src-$portVersion"
PATCHES="qt6_declarative-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_declarative$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6LabsAnimation$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6LabsFolderListModel$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6LabsQmlModels$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6LabsSettings$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6LabsSharedImage$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6LabsWavefrontMesh$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Qml$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QmlCompiler$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QmlCore$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QmlLocalStorage$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QmlModels$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QmlNetwork$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QmlWorkerScript$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QmlXmlListModel$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2Basic$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2BasicStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2Fusion$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2FusionStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2Imagine$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2ImagineStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2Impl$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2Material$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2MaterialStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2Universal$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickControls2UniversalStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickDialogs2$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickDialogs2QuickImpl$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickDialogs2Utils$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickEffects$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickLayouts$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickParticles$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickShapes$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickTemplates2$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickTest$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickWidgets$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
lib:libQt6OpenGL$secondaryArchSuffix
lib:libQt6Widgets$secondaryArchSuffix
lib:libQt6Test$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libvulkan$secondaryArchSuffix
"
PROVIDES_devel="
qt6_declarative${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6LabsAnimation$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6LabsFolderListModel$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6LabsQmlModels$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6LabsSettings$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6LabsSharedImage$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6LabsWavefrontMesh$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6PacketProtocol$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Qml$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlBuiltins$secondaryArchSuffix
devel:libQt6QmlCompiler$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlCore$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlDebug$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlDom$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlLocalStorage$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlModels$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlNetwork$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlTypeRegistrar$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlToolingSettings$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlWorkerScript$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QmlXmlListModel$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2Basic$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2BasicStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2Fusion$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2FusionStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2Imagine$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2ImagineStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2Impl$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2Material$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2MaterialStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2Universal$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControls2UniversalStyleImpl$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickControlsTestUtils$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickDialogs2$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickDialogs2QuickImpl$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickDialogs2Utils$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickEffects$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickLayouts$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickParticles$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickShapes$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickTemplates2$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickTest$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickTestUtils$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickWidgets$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_declarative$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:libQt6Network$secondaryArchSuffix == $portVersion
devel:libQt6OpenGL$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$secondaryArchSuffix == $portVersion
devel:libQt6Widgets$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix >= 3
devel:libvulkan$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 -D_GNU_SOURCE"
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 -C build install
prepareInstalledDevelLibs \
libQt6LabsAnimation \
libQt6LabsFolderListModel \
libQt6LabsQmlModels \
libQt6LabsSettings \
libQt6LabsSharedImage \
libQt6LabsWavefrontMesh \
libQt6PacketProtocol \
libQt6Qml \
libQt6QmlBuiltins \
libQt6QmlCore \
libQt6QmlLocalStorage \
libQt6QmlModels \
libQt6QmlNetwork \
libQt6QmlWorkerScript \
libQt6QmlXmlListModel \
libQt6Quick \
libQt6QuickControls2 \
libQt6QuickControls2Basic \
libQt6QuickControls2BasicStyleImpl \
libQt6QuickControls2Fusion \
libQt6QuickControls2FusionStyleImpl \
libQt6QuickControls2Imagine \
libQt6QuickControls2ImagineStyleImpl \
libQt6QuickControls2Impl \
libQt6QuickControls2Material \
libQt6QuickControls2MaterialStyleImpl \
libQt6QuickControls2Universal \
libQt6QuickControls2UniversalStyleImpl \
libQt6QuickControlsTestUtils \
libQt6QuickDialogs2 \
libQt6QuickDialogs2QuickImpl \
libQt6QuickDialogs2Utils \
libQt6QuickLayouts \
libQt6QuickParticles \
libQt6QuickShapes \
libQt6QuickTemplates2 \
libQt6QuickTestUtils \
libQt6QuickTest \
libQt6QuickWidgets \
libQt6QmlCompiler \
libQt6QmlDebug \
libQt6QmlDom \
libQt6QmlTypeRegistrar \
libQt6QmlToolingSettings
# fix pkgconfig & cmake files
fixPkgconfig
sed -i "s|includedir=.*|includedir=$includeDir/Qt6|" \
$developLibDir/pkgconfig/*.pc
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6PacketProtocolPrivate/Qt6PacketProtocolPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QmlBuiltins/Qt6QmlBuiltinsTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QmlDebugPrivate/Qt6QmlDebugPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QmlDomPrivate/Qt6QmlDomPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QmlToolingSettingsPrivate/Qt6QmlToolingSettingsPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QmlTypeRegistrarPrivate/Qt6QmlTypeRegistrarPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QuickControlsTestUtilsPrivate/Qt6QuickControlsTestUtilsPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QuickEffectsPrivate/Qt6QuickEffectsPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QuickParticlesPrivate/Qt6QuickParticlesPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QuickShapesPrivate/Qt6QuickShapesPrivateTargets-release.cmake
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
$libDir/cmake/Qt6QuickTestUtilsPrivate/Qt6QuickTestUtilsPrivateTargets-release.cmake
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
}

View File

@@ -10,10 +10,10 @@ LICENSE="GNU LGPL v2.1
GNU FDL v1"
REVISION="1"
SOURCE_URI="https://archlinux.thaller.ws/extra/os/x86_64/qt6-doc-${portVersion}-1-any.pkg.tar.zst#noarchive"
CHECKSUM_SHA256="5da583877bf5f9c4d6b9519091f3316dd7d2b46f1598ca056f5b91df84ab49c2"
CHECKSUM_SHA256="44cc83554de308b391a748f14bba699e4d9ff53c767c4b754f066ee5001569bb"
SOURCE_DIR="qt6-doc-$portVersion"
ARCHITECTURES="?any"
ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"

View File

@@ -1,50 +0,0 @@
SUMMARY="A cross-platform application and UI framework (Documentation)"
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"
SOURCE_URI="https://archlinux.thaller.ws/extra/os/x86_64/qt6-doc-${portVersion}-1-any.pkg.tar.zst#noarchive"
CHECKSUM_SHA256="3fc763bf306beefba6191c978950623f3b03753d7a02d7a4a8715bb39e7d2c34"
SOURCE_DIR="qt6-doc-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
DISABLE_SOURCE_PACKAGE="yes"
PROVIDES="
qt6_doc$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
qt6_tools$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:tar
cmd:unzstd
"
BUILD()
{
true
}
INSTALL()
{
mkdir -p $prefix/documentation/packages/qt6_base
tar -C $prefix/documentation/packages/qt6_base \
-I zstd \
--strip-components 4 \
-xvf qt6-doc-${portVersion}-1-any.pkg.tar.zst
}

View File

@@ -10,9 +10,9 @@ LICENSE="GNU LGPL v2.1
GNU FDL v1"
REVISION="1"
SOURCE_URI="https://archlinux.thaller.ws/extra/os/x86_64/qt6-examples-${portVersion}-1-any.pkg.tar.zst#noarchive"
CHECKSUM_SHA256="e138798c41d7b7924f229437524fe5287fead5f3a4653f4c2ba1829ae6fafae6"
CHECKSUM_SHA256="8f3266df0523e7ef31e51550f8fd2d334de6d4246e675cab63c8edb4124fc522"
ARCHITECTURES="?any"
ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"

View File

@@ -1,49 +0,0 @@
SUMMARY="A cross-platform application and UI framework (Examples)"
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"
SOURCE_URI="https://archlinux.thaller.ws/extra/os/x86_64/qt6-examples-${portVersion}-1-any.pkg.tar.zst#noarchive"
CHECKSUM_SHA256="21a58df5e797709ba7502b633c7ae6f8d86a0e6318001098b336b1247be6b088"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
DISABLE_SOURCE_PACKAGE="yes"
PROVIDES="
qt6_examples$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
qt6_tools$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:tar
cmd:unzstd
"
BUILD()
{
true
}
INSTALL()
{
mkdir -p $developDir/sources/Qt6
tar -C $developDir/sources/Qt6 \
-I zstd \
--strip-components 5 \
-xvf qt6-examples-${portVersion}-1-any.pkg.tar.zst
}

View File

@@ -14,11 +14,11 @@ LICENSE="BSD (3-clause)
REVISION="1"
QT_MIRROR_URI="https://download.qt.io/official_releases"
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtgraphs-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="f690fc6aa567d89a6e76ce370d684beb243dc0c2ed1187dd305433e278dd7aaf"
CHECKSUM_SHA256="8c573486d1dda961eae10d464d4a592a3b0e9a7ed8bbb8467abe2af8df00916a"
SOURCE_DIR="qtgraphs-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,108 +0,0 @@
SUMMARY="Qt Graphs module"
DESCRIPTION="The Qt Graphs module enables you to visualize data in 3D as bar, scatter, and \
surface graphs. It's especially useful for visualizing depth maps and large quantities of rapidly \
changing data, such as data received from multiple sensors. The look and feel of graphs can be \
customized by using themes or by adding custom items and labels.
Qt Graphs is built on Qt 6 and Qt Quick 3D to take advantage of hardware acceleration and Qt \
Quick."
HOMEPAGE="https://qt.io/"
COPYRIGHT="2015-2025 The Qt Company Ltd."
LICENSE="BSD (3-clause)
GNU FDL v1.3
GNU GPL v3"
REVISION="1"
QT_MIRROR_URI="https://download.qt.io/archive"
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtgraphs-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="d8813a266e4a56367af6c3206670c908f64794e6806402142b2e028046128600"
SOURCE_DIR="qtgraphs-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
qt6_graphs$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Graphs$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Qml$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
lib:libQt6OpenGL$secondaryArchSuffix
lib:libQt6Quick$secondaryArchSuffix
lib:libQt6Quick3D$secondaryArchSuffix
lib:libQt6ShaderTools$secondaryArchSuffix
"
PROVIDES_devel="
qt6_graphs${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Graphs$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
qt6_graphs$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
devel:libQt6Quick$secondaryArchSuffix
devel:libQt6Quick3D$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6Quick3D$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$secondaryArchSuffix == $portVersion
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export DISABLE_ASLR=1
cmake -B build -S $sourceDir -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS=-fPIC \
-DQT_GENERATE_SBOM=ON \
-Wno-dev
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 -C build install
prepareInstalledDevelLib \
libQt6Graphs
# 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
# cleanup empty directory
rmdir $libDir/Qt6
packageEntries devel \
$dataDir/Qt6/mkspecs \
$developDir \
$libDir/cmake
}

View File

@@ -11,11 +11,11 @@ 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/qtimageformats-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="8b8f9c718638081e7b3c000e7f31910140b1202a98e98df5d1b496fe6f639d67"
CHECKSUM_SHA256="84605dd91037482b5b7c7ecc5c27aee8acc1cd7f1fe77bc564777ddf365d7d28"
SOURCE_DIR="qtimageformats-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_imageformats$secondaryArchSuffix = $portVersion compat >= 6

View File

@@ -1,97 +0,0 @@
SUMMARY="Plugins for additional image formats: TIFF, MNG, TGA, WBMP"
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/qtimageformats-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="e1a1d8785fae67d16ad0a443b01d5f32663a6b68d275f1806ebab257485ce5d6"
SOURCE_DIR="qtimageformats-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_imageformats$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libjasper$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libmng$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libwebp$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
SUPPLEMENTS="
qt6_base$secondaryArchSuffix
"
PROVIDES_devel="
qt6_imageformats${secondaryArchSuffix}_devel = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_imageformats$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjasper$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libmng$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Gui$secondaryArchSuffix == $portVersion
devel:libtiff$secondaryArchSuffix
devel:libwebp$secondaryArchSuffix
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
"
PATCH()
{
sed -i "s/uint32_t/uint32/g" $sourceDir/src/plugins/imageformats/tiff/qtiffhandler.cpp
}
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 -C build install
packageEntries devel \
$libDir/cmake
}

View File

@@ -11,11 +11,11 @@ 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/qtlanguageserver-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="9a043f2c84b0b470065fc7a954dc4ff0388db3e1b2c457c3d69670baecc40d53"
CHECKSUM_SHA256="94f90484be8e49d3eb3bfcf0ba6cb2d8a170fc831c78de138332feebdf193964"
SOURCE_DIR="qtlanguageserver-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="

View File

@@ -11,11 +11,11 @@ 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/qtlocation-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="d313f05dedc593517c47d0fa3eb131a2597c01db23de263fe89fea561be50f3c"
CHECKSUM_SHA256="1d0abed99f2834a7c684d23c495c5f752611fee14726f286396cf7147376799e"
SOURCE_DIR="qtlocation-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -49,13 +49,13 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix >= 3
devel:libGL$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Positioning$secondaryArchSuffix == $portVersion
devel:libQt6PositioningQuick$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,103 +0,0 @@
SUMMARY="A family of player software for 2d vector graphics animations"
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/qtlocation-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="f232da58bf1189b69f1f7029417ddfeffcfb801b275aedc720e38244f88a485d"
SOURCE_DIR="qtlocation-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_location$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Location$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6OpenGL$secondaryArchSuffix
lib:libQt6Positioning$secondaryArchSuffix
lib:libQt6PositioningQuick$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
lib:libQt6Qml$secondaryArchSuffix
lib:libQt6QmlModels$secondaryArchSuffix
lib:libQt6Quick$secondaryArchSuffix
"
PROVIDES_devel="
qt6_location${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Location$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_location$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix >= 3
devel:libGL$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Positioning$secondaryArchSuffix == $portVersion
devel:libQt6PositioningQuick$secondaryArchSuffix == $portVersion
devel:libQt6Qml$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 -C build install
prepareInstalledDevelLib \
libQt6Location
fixPkgconfig
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
}

View File

@@ -11,11 +11,11 @@ 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/qtlottie-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="a5d86b7a07833a0f2bd203042bbc156ec6588fd957f00a3c166788410ea4028c"
CHECKSUM_SHA256="8b57ebae0c7a49e9976140ed26218264d491b321809927656d709fc10fc2633f"
SOURCE_DIR="qtlottie-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -52,7 +52,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
@@ -61,7 +61,7 @@ BUILD_REQUIRES="
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6QuickShapes$secondaryArchSuffix == $portVersion
devel:libQt6QuickVectorImage$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,102 +0,0 @@
SUMMARY="A family of player software for 2d vector graphics animations"
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/qtlottie-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="d9afbc9358d352a4e521d4693d5bdad6a004272b6e8a9ec7a9f851700fe3f10e"
SOURCE_DIR="qtlottie-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_lottie$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Bodymovin$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:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_lottie${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Bodymovin$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_lottie$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: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 -C build install
prepareInstalledDevelLibs \
libQt6Bodymovin
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
}

View File

@@ -1,14 +1,14 @@
From 2fab4f85dca6c1f95c47c0744b9dbf53a4075b4a Mon Sep 17 00:00:00 2001
From f0ba1ec95b59212ad1901c4dc154c3d427a27290 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Tue, 9 Apr 2024 22:25:53 +1000
Subject: Enable OpenAL (wasm) audio backend for Haiku
diff --git a/src/multimedia/CMakeLists.txt b/src/multimedia/CMakeLists.txt
index 9275e03..dba9dfc 100644
index c7b85f2..350206d 100644
--- a/src/multimedia/CMakeLists.txt
+++ b/src/multimedia/CMakeLists.txt
@@ -412,7 +412,7 @@ set_source_files_properties(${source_with_init_guid} PROPERTIES
@@ -405,7 +405,7 @@ set_source_files_properties(${source_with_init_guid} PROPERTIES
)
@@ -275,7 +275,7 @@ index c774f2a..a99d8d6 100644
2.52.0
From 0181ff929dc9eeebab1f1f27b178c4e4c75e74ab Mon Sep 17 00:00:00 2001
From 1f1808571390e8339ee3add5a82a1ee01b62de05 Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Sat, 12 Jul 2025 11:15:53 +0200
Subject: Patch* qwasmmediadevices.cpp (changed in 6.9.1)
@@ -355,32 +355,7 @@ index 0ebd337..adad982 100644
2.52.0
From e894ffcaa040b075de042f46d264431045186435 Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Thu, 12 Feb 2026 17:18:52 +0100
Subject: FFmpeg: Add audio/ogg to the MIME type list
https://codereview.qt-project.org/c/qt/qtmultimedia/+/712421
diff --git a/src/plugins/multimedia/ffmpeg/qffmpegmediaformatinfo.cpp b/src/plugins/multimedia/ffmpeg/qffmpegmediaformatinfo.cpp
index 9ac7852..e1f71b9 100644
--- a/src/plugins/multimedia/ffmpeg/qffmpegmediaformatinfo.cpp
+++ b/src/plugins/multimedia/ffmpeg/qffmpegmediaformatinfo.cpp
@@ -81,7 +81,8 @@ static constexpr struct
// WMA is the same as WMV
{ QMediaFormat::FLAC, "audio/x-flac", nullptr },
{ QMediaFormat::MP3, "audio/mpeg", "mp3" },
- { QMediaFormat::Wave, "audio/x-wav", nullptr }
+ { QMediaFormat::Wave, "audio/x-wav", nullptr },
+ { QMediaFormat::Wave, "audio/ogg", nullptr }
};
template <typename AVFormat>
--
2.52.0
From 2cf82cc5df09e44b4c89725874064dab954521d1 Mon Sep 17 00:00:00 2001
From fd22a5903436e8eff22cfbaff1694425584b69f2 Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Fri, 13 Mar 2026 08:05:33 +0100
Subject: QAudioFormat::Float unconditionally to the list of supported formats
@@ -408,7 +383,7 @@ index 8cba6c1..d7afcec 100644
2.52.0
From 66c6f8599a28bbeeb3433bd83ebda6ce3fe32550 Mon Sep 17 00:00:00 2001
From e3ddb1977da0547537706cc7b7eacd9f9c0854e8 Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Tue, 31 Mar 2026 18:54:14 +0200
Subject: Disable SIMD for 32bit

View File

@@ -1,344 +0,0 @@
From 0ac90d7b667fbd8aa116e4b6e3524b01286d3c82 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Tue, 9 Apr 2024 22:25:53 +1000
Subject: Enable OpenAL (wasm) audio backend for Haiku
diff --git a/src/multimedia/CMakeLists.txt b/src/multimedia/CMakeLists.txt
index 42c094f..56eee11 100644
--- a/src/multimedia/CMakeLists.txt
+++ b/src/multimedia/CMakeLists.txt
@@ -251,7 +251,7 @@ qt_internal_extend_target(Multimedia CONDITION QT_FEATURE_wmf AND MINGW
windows/qcomtaskresource_p.h
)
-qt_internal_extend_target(Multimedia CONDITION WASM
+qt_internal_extend_target(Multimedia CONDITION WASM OR HAIKU
SOURCES
wasm/qwasmmediadevices.cpp wasm/qwasmmediadevices_p.h
wasm/qwasmaudiosource.cpp wasm/qwasmaudiosource_p.h
diff --git a/src/multimedia/configure.cmake b/src/multimedia/configure.cmake
index 5e6682f..06f7b30 100644
--- a/src/multimedia/configure.cmake
+++ b/src/multimedia/configure.cmake
@@ -76,7 +76,7 @@ qt_feature("ffmpeg" PRIVATE
LABEL "FFmpeg"
ENABLE INPUT_ffmpeg STREQUAL 'yes'
DISABLE INPUT_ffmpeg STREQUAL 'no'
- CONDITION FFmpeg_FOUND AND (APPLE OR WIN32 OR ANDROID OR QNX OR QT_FEATURE_pulseaudio)
+ CONDITION FFmpeg_FOUND AND (APPLE OR WIN32 OR ANDROID OR QNX OR HAIKU OR QT_FEATURE_pulseaudio)
)
qt_feature("alsa" PUBLIC PRIVATE
LABEL "ALSA (experimental)"
@@ -203,5 +203,5 @@ qt_configure_end_summary_section() # end of "Qt Multimedia" section
qt_configure_add_report_entry(
TYPE WARNING
MESSAGE "No backend for low level audio found."
- CONDITION NOT QT_FEATURE_alsa AND NOT QT_FEATURE_pulseaudio AND NOT QT_FEATURE_mmrenderer AND NOT QT_FEATURE_coreaudio AND NOT QT_FEATURE_wmsdk AND NOT ANDROID AND NOT WASM
+ CONDITION NOT QT_FEATURE_alsa AND NOT QT_FEATURE_pulseaudio AND NOT QT_FEATURE_mmrenderer AND NOT QT_FEATURE_coreaudio AND NOT QT_FEATURE_wmsdk AND NOT ANDROID AND NOT WASM AND NOT HAIKU
)
diff --git a/src/multimedia/platform/qplatformmediadevices.cpp b/src/multimedia/platform/qplatformmediadevices.cpp
index 484886f..e4846ca 100644
--- a/src/multimedia/platform/qplatformmediadevices.cpp
+++ b/src/multimedia/platform/qplatformmediadevices.cpp
@@ -20,7 +20,7 @@
#include <qpulseaudiomediadevices_p.h>
#elif defined(Q_OS_QNX)
#include <qqnxmediadevices_p.h>
-#elif defined(Q_OS_WASM)
+#elif defined(Q_OS_WASM) || defined(Q_OS_HAIKU)
#include <private/qwasmmediadevices_p.h>
#endif
@@ -41,7 +41,7 @@ std::unique_ptr<QPlatformMediaDevices> QPlatformMediaDevices::create()
return std::make_unique<QPulseAudioMediaDevices>();
#elif defined(Q_OS_QNX)
return std::make_unique<QQnxMediaDevices>();
-#elif defined(Q_OS_WASM)
+#elif defined(Q_OS_WASM) || defined(Q_OS_HAIKU)
return std::make_unique<QWasmMediaDevices>();
#else
return std::make_unique<QPlatformMediaDevices>();
diff --git a/src/multimedia/wasm/qwasmaudiodevice.cpp b/src/multimedia/wasm/qwasmaudiodevice.cpp
index c87a0ad..0b9c806 100644
--- a/src/multimedia/wasm/qwasmaudiodevice.cpp
+++ b/src/multimedia/wasm/qwasmaudiodevice.cpp
@@ -2,9 +2,11 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qwasmaudiodevice_p.h"
+#ifndef Q_OS_HAIKU
#include <emscripten.h>
#include <emscripten/val.h>
#include <emscripten/bind.h>
+#endif
#include <AL/al.h>
#include <AL/alc.h>
@@ -18,7 +20,7 @@ QWasmAudioDevice::QWasmAudioDevice(const char *device, const char *desc, bool is
isDefault = isDef;
minimumChannelCount = 1;
- maximumChannelCount = 2;
+ maximumChannelCount = 8;
minimumSampleRate = 8000;
maximumSampleRate = 96000; // js AudioContext max according to docs
@@ -35,6 +37,7 @@ QWasmAudioDevice::QWasmAudioDevice(const char *device, const char *desc, bool is
// FIXME: firefox
// An AudioContext was prevented from starting automatically.
// It must be created or resumed after a user gesture on the page.
+#ifndef Q_OS_HAIKU
emscripten::val audioContext = emscripten::val::global("window")["AudioContext"].new_();
if (audioContext == emscripten::val::undefined())
audioContext = emscripten::val::global("window")["webkitAudioContext"].new_();
@@ -45,6 +48,9 @@ QWasmAudioDevice::QWasmAudioDevice(const char *device, const char *desc, bool is
audioContext.call<void>("close");
preferredFormat.setSampleRate(sRate);
}
+#else
+ preferredFormat.setSampleRate(48000);
+#endif
auto f = QAudioFormat::Float;
diff --git a/src/multimedia/wasm/qwasmaudiosink.cpp b/src/multimedia/wasm/qwasmaudiosink.cpp
index d1068e7..e75b0f8 100644
--- a/src/multimedia/wasm/qwasmaudiosink.cpp
+++ b/src/multimedia/wasm/qwasmaudiosink.cpp
@@ -4,18 +4,23 @@
#include "qwasmaudiosink_p.h"
+#ifndef Q_OS_HAIKU
#include <emscripten.h>
+#endif
#include <AL/al.h>
+#include <AL/alext.h>
#include <AL/alc.h>
#include <QDebug>
#include <QtMath>
#include <QIODevice>
+#ifndef Q_OS_HAIKU
// non native al formats (AL_EXT_float32)
#define AL_FORMAT_MONO_FLOAT32 0x10010
#define AL_FORMAT_STEREO_FLOAT32 0x10011
+#endif
-constexpr unsigned int DEFAULT_BUFFER_DURATION = 50'000;
+constexpr unsigned int DEFAULT_BUFFER_DURATION = 6'000;
class ALData {
public:
@@ -97,6 +102,18 @@ void QWasmAudioSink::start(bool mode)
case 2:
aldata->format = AL_FORMAT_STEREO8;
break;
+ case 4:
+ aldata->format = AL_FORMAT_QUAD8;
+ break;
+ case 6:
+ aldata->format = AL_FORMAT_51CHN8;
+ break;
+ case 7:
+ aldata->format = AL_FORMAT_61CHN8;
+ break;
+ case 8:
+ aldata->format = AL_FORMAT_71CHN8;
+ break;
default:
return formatError();
}
@@ -109,6 +126,18 @@ void QWasmAudioSink::start(bool mode)
case 2:
aldata->format = AL_FORMAT_STEREO16;
break;
+ case 4:
+ aldata->format = AL_FORMAT_QUAD16;
+ break;
+ case 6:
+ aldata->format = AL_FORMAT_51CHN16;
+ break;
+ case 7:
+ aldata->format = AL_FORMAT_61CHN16;
+ break;
+ case 8:
+ aldata->format = AL_FORMAT_71CHN16;
+ break;
default:
return formatError();
}
@@ -121,6 +150,18 @@ void QWasmAudioSink::start(bool mode)
case 2:
aldata->format = AL_FORMAT_STEREO_FLOAT32;
break;
+ case 4:
+ aldata->format = AL_FORMAT_QUAD16;
+ break;
+ case 6:
+ aldata->format = AL_FORMAT_51CHN32;
+ break;
+ case 7:
+ aldata->format = AL_FORMAT_61CHN32;
+ break;
+ case 8:
+ aldata->format = AL_FORMAT_71CHN32;
+ break;
default:
return formatError();
}
diff --git a/src/multimedia/wasm/qwasmaudiosource.cpp b/src/multimedia/wasm/qwasmaudiosource.cpp
index 81f222c..d18cb7c 100644
--- a/src/multimedia/wasm/qwasmaudiosource.cpp
+++ b/src/multimedia/wasm/qwasmaudiosource.cpp
@@ -3,7 +3,10 @@
#include "qwasmaudiosource_p.h"
+#ifndef Q_OS_HAIKU
#include <emscripten.h>
+#endif
+
#include <AL/al.h>
#include <AL/alc.h>
#include <QDataStream>
diff --git a/src/multimedia/wasm/qwasmmediadevices.cpp b/src/multimedia/wasm/qwasmmediadevices.cpp
index 4e59fd1..0f6fff5 100644
--- a/src/multimedia/wasm/qwasmmediadevices.cpp
+++ b/src/multimedia/wasm/qwasmmediadevices.cpp
@@ -71,6 +71,7 @@ QPlatformAudioSink *QWasmMediaDevices::createAudioSink(const QAudioDevice &devic
return new QWasmAudioSink(deviceInfo.id(), parent);
}
+#ifndef Q_OS_HAIKU
void QWasmMediaDevices::parseDevices(emscripten::val devices)
{
if (devices.isNull() || devices.isUndefined()) {
@@ -194,9 +195,11 @@ void QWasmMediaDevices::parseDevices(emscripten::val devices)
m_firstInit = false;
}
+#endif
void QWasmMediaDevices::getMediaDevices()
{
+#ifndef __HAIKU__
emscripten::val navigator = emscripten::val::global("navigator");
m_jsMediaDevicesInterface = navigator["mediaDevices"];
@@ -243,7 +246,7 @@ void QWasmMediaDevices::getMediaDevices()
std::move(enumerateDevicesCallback));
});
}
-
+#endif
}
void QWasmMediaDevices::getOpenALAudioDevices()
@@ -253,10 +256,17 @@ void QWasmMediaDevices::getOpenALAudioDevices()
auto capture = alcGetString(nullptr, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER);
// present even if there is no capture device
if (capture && !m_audioOutputs.contains(capture)) {
+#ifndef Q_OS_HAIKU
m_audioInputs.insert(capture,
(new QWasmAudioDevice(capture, "WebAssembly audio capture device",
true, QAudioDevice::Input))
->create());
+#else
+ m_audioInputs.insert(capture,
+ (new QWasmAudioDevice(capture, "Haiku audio capture device",
+ true, QAudioDevice::Input))
+ ->create());
+#endif
m_audioInputsAdded = true;
emit audioInputsChanged();
}
@@ -264,10 +274,17 @@ void QWasmMediaDevices::getOpenALAudioDevices()
auto playback = alcGetString(nullptr, ALC_DEFAULT_DEVICE_SPECIFIER);
// present even if there is no playback device
if (playback && !m_audioOutputs.contains(capture)) {
+#ifndef Q_OS_HAIKU
m_audioOutputs.insert(playback,
(new QWasmAudioDevice(playback, "WebAssembly audio playback device",
true, QAudioDevice::Output))
->create());
+#else
+ m_audioOutputs.insert(playback,
+ (new QWasmAudioDevice(playback, "Haiku audio playback device",
+ true, QAudioDevice::Output))
+ ->create());
+#endif
emit audioOutputsChanged();
}
m_firstInit = true;
diff --git a/src/multimedia/wasm/qwasmmediadevices_p.h b/src/multimedia/wasm/qwasmmediadevices_p.h
index b97036f..84bcdbc 100644
--- a/src/multimedia/wasm/qwasmmediadevices_p.h
+++ b/src/multimedia/wasm/qwasmmediadevices_p.h
@@ -19,16 +19,20 @@
#include <private/qplatformvideodevices_p.h>
+#ifndef __HAIKU__
#include <QtCore/private/qstdweb_p.h>
+#endif
#include <qaudio.h>
#include <qaudiodevice.h>
#include <qcameradevice.h>
#include <qset.h>
#include <QtCore/qloggingcategory.h>
+#ifndef __HAIKU__
#include <emscripten.h>
#include <emscripten/val.h>
#include <emscripten/bind.h>
+#endif
#include <QMapIterator>
QT_BEGIN_NAMESPACE
@@ -67,19 +71,24 @@ private:
void updateCameraDevices();
void getMediaDevices();
void getOpenALAudioDevices();
+#ifndef __HAIKU__
void parseDevices(emscripten::val devices);
+#endif
QMap <std::string, QAudioDevice> m_audioOutputs;
QMap <std::string, QAudioDevice> m_audioInputs;
QMap <std::string, QCameraDevice> m_cameraDevices;
-
+#ifndef __HAIKU__
std::unique_ptr<qstdweb::EventCallback> m_deviceChangedCallback;
+#endif
bool m_videoInputsAdded = false;
bool m_audioInputsAdded = false;
bool m_audioOutputsAdded = false;
+#ifndef __HAIKU__
emscripten::val m_jsMediaDevicesInterface = emscripten::val::undefined();
+#endif
bool m_initDone = false;
bool m_firstInit = false;
};
diff --git a/src/plugins/multimedia/ffmpeg/playbackengine/qffmpegmediadataholder.cpp b/src/plugins/multimedia/ffmpeg/playbackengine/qffmpegmediadataholder.cpp
index 2871b24..6223061 100644
--- a/src/plugins/multimedia/ffmpeg/playbackengine/qffmpegmediadataholder.cpp
+++ b/src/plugins/multimedia/ffmpeg/playbackengine/qffmpegmediadataholder.cpp
@@ -156,7 +156,11 @@ namespace {
QMaybe<AVFormatContextUPtr, MediaDataHolder::ContextError>
loadMedia(const QUrl &mediaUrl, QIODevice *stream, const std::shared_ptr<ICancelToken> &cancelToken)
{
+#ifndef Q_OS_HAIKU
const QByteArray url = mediaUrl.toString(QUrl::PreferLocalFile).toUtf8();
+#else
+ const QByteArray url = mediaUrl.isLocalFile() ? (mediaUrl.toString(QUrl::PreferLocalFile).toLocal8Bit()) : (mediaUrl.toEncoded());
+#endif
AVFormatContextUPtr context{ avformat_alloc_context() };
--
2.43.2

View File

@@ -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/qtmultimedia-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="93f7ef0106fbd731165a2723f3e436c911fc5e6880f5bc987b55516c20833e2b"
CHECKSUM_SHA256="dd228fe54051e8834ca53e558794742c8814f217849f9dfa8f9a9df80441903a"
SOURCE_DIR="qtmultimedia-everywhere-src-$portVersion"
PATCHES="qt6_multimedia-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -64,7 +64,7 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix >= 3
devel:libavcodec$secondaryArchSuffix >= 60
devel:libgl$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
@@ -75,7 +75,7 @@ BUILD_REQUIRES="
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$secondaryArchSuffix == $portVersion
devel:libQt6Svg$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libvulkan$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"

View File

@@ -1,136 +0,0 @@
SUMMARY="Classes for audio, video, radio and camera functionality"
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/qtmultimedia-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="8ef835115acb9a1d3d2c9f23cfacb43f2c537e3786a8ab822299a2a7765651d3"
SOURCE_DIR="qtmultimedia-everywhere-src-$portVersion"
PATCHES="qt6_multimedia-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_multimedia$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Multimedia$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6MultimediaQuick$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6MultimediaWidgets$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6SpatialAudio$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libavcodec$secondaryArchSuffix
lib:libavformat$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Qml$secondaryArchSuffix
lib:libQt6Quick$secondaryArchSuffix
lib:libQt6QmlModels$secondaryArchSuffix
lib:libQt6ShaderTools$secondaryArchSuffix
lib:libQt6Svg$secondaryArchSuffix
lib:libvulkan$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_multimedia${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Multimedia$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6MultimediaQuick$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6MultimediaWidgets$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6SpatialAudio$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6BundledResonanceAudio$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_multimedia$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
devel:libopenal$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix >= 3
devel:libavcodec$secondaryArchSuffix >= 60
devel:libgl$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Gui$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$secondaryArchSuffix == $portVersion
devel:libQt6Svg$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix >= 3
devel:libvulkan$secondaryArchSuffix
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
# disable simd code for x86_gcc2
if [ $targetArchitecture == x86_gcc2 ]; then
sed -i -e 's|//#define PFFFT_SIMD_DISABLE|#define PFFFT_SIMD_DISABLE|' src/3rdparty/pffft/pffft.c
fi
cmake -B build -S $sourceDir -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS=-fPIC \
-DFEATURE_linux_dmabuf=OFF
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 -C build install
prepareInstalledDevelLibs \
libQt6Multimedia \
libQt6MultimediaQuick \
libQt6MultimediaWidgets \
libQt6SpatialAudio \
libQt6BundledResonanceAudio
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qtnetworkauth-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="4f29fd9e4b505f5714fc42296b04c701f66ced185c49de4d520cb8de4b1981b3"
CHECKSUM_SHA256="d88fe0cbce2b336bd34d81b3317732051115b874e9b958961b4b268ccccad594"
SOURCE_DIR="qtnetworkauth-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -45,10 +45,10 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix >= 3
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Network$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
"
BUILD_PREREQUIRES="
cmd:awk

View File

@@ -1,97 +0,0 @@
SUMMARY="Network authentication module"
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/qtnetworkauth-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="7f09824fcfe589eb32260c305ff9a126fe3bf93be218d372e8e9c10e212df470"
SOURCE_DIR="qtnetworkauth-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_networkauth$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6NetworkAuth$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
"
PROVIDES_devel="
qt6_networkauth${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6NetworkAuth$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_networkauth$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix >= 3
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Network$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix >= 3
"
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 -C build install
prepareInstalledDevelLibs \
libQt6NetworkAuth
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qtpositioning-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="7051fa64477c66769840cad396fc3772a01ba5516363c8842a7a513fa0c4cdce"
CHECKSUM_SHA256="64cf6c5d1137378ec6a276d3f6e5be7b9d299436d66cea36ebd31035314287a2"
SOURCE_DIR="qtpositioning-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -51,7 +51,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
@@ -59,7 +59,7 @@ BUILD_REQUIRES="
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6SerialPort$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,112 +0,0 @@
SUMMARY="Provides access to position, satellite and area monitoring classes"
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/qtpositioning-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="020009f0aa8f6b1042963a45b6e19f2784cc937949cdb673f3b876153e087b1c"
SOURCE_DIR="qtpositioning-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_positioning$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Positioning$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6PositioningQuick$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:libQt6SerialPort$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_positioning${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Positioning$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6PositioningQuick$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_positioning$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:libQt6SerialPort$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 -C build install
prepareInstalledDevelLibs \
libQt6Positioning \
libQt6PositioningQuick
# 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
}

View File

@@ -5,17 +5,17 @@ connecting remote devices with a small code footprint and minimal network bandwi
is used in a wide variety of industries, such as automotive, manufacturing, telecommunications, \
oil and gas, etc."
HOMEPAGE="https://mqtt.org/"
COPYRIGHT="2024 MQTT.org"
COPYRIGHT="2024-2026 MQTT.org"
LICENSE="BSD (3-clause)
GNU FDL v1.3
GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/qt/qtmqtt/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="884925fc6fa116f0cc4f1db80335daaf249ada5fbba30186536ed6329dc6032a"
CHECKSUM_SHA256="a1759284b332f0b498b725be71addbc7f836b221b0c301d5013255606114c2a7"
SOURCE_DIR="qtmqtt-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,85 +0,0 @@
SUMMARY="MQTT: The Standard for IoT Messaging"
DESCRIPTION="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 today \
is used in a wide variety of industries, such as automotive, manufacturing, telecommunications, \
oil and gas, etc."
HOMEPAGE="https://mqtt.org/"
COPYRIGHT="2024 MQTT.org"
LICENSE="BSD (3-clause)
GNU FDL v1.3
GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/qt/qtmqtt/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="b9bf8c8a0ca3fd491ebe6afb70b8888ced6c97c32f0d6d00b31585a2f882ea62"
SOURCE_DIR="qtmqtt-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
qt6_qtmqtt$secondaryArchSuffix = $portVersion
lib:libQt6Mqtt$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
"
PROVIDES_devel="
qt6_qtmqtt${secondaryArchSuffix}_devel = $portVersion
devel:libQt6Mqtt$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
qt6_qtmqtt$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Quick$secondaryArchSuffix
devel:libQt6WebSockets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export DISABLE_ASLR=1
cmake -B build -S . -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS=-fPIC \
-Wno-dev
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 -C build install
prepareInstalledDevelLib \
libQt6Mqtt
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake \
$dataDir/Qt6/mkspecs
}
TEST()
{
make check
}

View File

@@ -11,11 +11,11 @@ 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/qtquick3d-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="b95439f31d1e580c379e9828b48b03b932b0bdade4ff09f4dd639eff9da2cd75"
CHECKSUM_SHA256="7e7b0e66ad0f786595ff250301be5d4dd9ba35c6d96e331d7b8ddf1bcbb250b7"
SOURCE_DIR="qtquick3d-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -73,7 +73,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
@@ -82,7 +82,7 @@ BUILD_REQUIRES="
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6QuickTimeline$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,144 +0,0 @@
SUMMARY="C++ and QML APIs for easy inclusion of 3D graphics"
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="2"
QT_MIRROR_URI="https://qt-mirror.dannhauer.de/archive"
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtquick3d-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="bb8ff9aec6da2e2d3b3986cc859333a98b2f3d4bbe564c5733e8f1a089d15270"
SOURCE_DIR="qtquick3d-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_quick3d$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3D$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DAssetImport$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DAssetUtils$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DEffects$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DGlslParser$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DHelpers$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DHelpersImpl$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DIblBaker$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DParticleEffects$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DParticles$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DRuntimeRender$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DUtils$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:libQt6QuickTimeline$secondaryArchSuffix
lib:libQt6ShaderTools$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_quick3d${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Quick3D$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DAssetImport$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DAssetUtils$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DEffects$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DGlslParser$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DHelpers$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DHelpersImpl$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DIblBaker$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DParticleEffects$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DParticles$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DRuntimeRender$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DUtils$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_quick3d$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
devel:libQt6ShaderTools$secondaryArchSuffix
"
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:libQt6QuickTimeline$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$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 -C build install
prepareInstalledDevelLibs \
libQt6Quick3D \
libQt6Quick3DAssetImport \
libQt6Quick3DAssetUtils \
libQt6Quick3DEffects \
libQt6Quick3DGlslParser \
libQt6Quick3DHelpers \
libQt6Quick3DIblBaker \
libQt6Quick3DParticleEffects \
libQt6Quick3DParticles \
libQt6Quick3DRuntimeRender \
libQt6Quick3DUtils
# 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
}

View File

@@ -1,4 +1,4 @@
From b26b783c8a0431a373ca05e73408ec8496c506e5 Mon Sep 17 00:00:00 2001
From 84ff93429db5b9a6ce04e56f298c55a464b477d2 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Wed, 4 Sep 2024 22:58:42 +1000
Subject: Add Haiku support

View File

@@ -1,245 +0,0 @@
From 5a2fd880f34a09fe4f8ac71ab513ded89b15b184 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Wed, 4 Sep 2024 22:58:42 +1000
Subject: Add Haiku support
diff --git a/src/3rdparty/PhysX/CMakeLists.txt b/src/3rdparty/PhysX/CMakeLists.txt
index 1fb4923..5c1a6ab 100644
--- a/src/3rdparty/PhysX/CMakeLists.txt
+++ b/src/3rdparty/PhysX/CMakeLists.txt
@@ -1341,7 +1341,7 @@ if (WIN32)
endif()
## MSYS
-if (MSYS OR MINGW)
+if (MSYS OR MINGW OR HAIKU)
qt_internal_extend_target(BundledPhysX DEFINES PX_SIMD_DISABLED PX_GCC_FAMILY)
endif()
diff --git a/src/3rdparty/PhysX/pxshared/include/foundation/PxIntrinsics.h b/src/3rdparty/PhysX/pxshared/include/foundation/PxIntrinsics.h
index 4b75756..9054315 100644
--- a/src/3rdparty/PhysX/pxshared/include/foundation/PxIntrinsics.h
+++ b/src/3rdparty/PhysX/pxshared/include/foundation/PxIntrinsics.h
@@ -34,7 +34,7 @@
#if PX_WINDOWS_FAMILY
#include "foundation/windows/PxWindowsIntrinsics.h"
-#elif(PX_LINUX || PX_ANDROID || PX_APPLE_FAMILY || PX_PS4)
+#elif(PX_LINUX || PX_ANDROID || PX_APPLE_FAMILY || PX_PS4 || PX_HAIKU)
#include "foundation/unix/PxUnixIntrinsics.h"
#elif PX_XBOXONE
#include "foundation/XboxOne/PxXboxOneIntrinsics.h"
diff --git a/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h b/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h
index 630c7c0..59bd337 100644
--- a/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h
+++ b/src/3rdparty/PhysX/pxshared/include/foundation/PxPreprocessor.h
@@ -104,6 +104,8 @@ Operating system defines, see http://sourceforge.net/p/predef/wiki/OperatingSyst
#define PX_IOS 1
#elif defined(__APPLE__)
#define PX_OSX 1
+#elif defined(__HAIKU__)
+#define PX_HAIKU 1
#elif defined(__ORBIS__)
#define PX_PS4 1
#elif defined(__NX__)
@@ -194,6 +196,9 @@ define anything not defined on this platform to 0
#ifndef PX_OSX
#define PX_OSX 0
#endif
+#ifndef PX_HAIKU
+#define PX_HAIKU 0
+#endif
#ifndef PX_PS4
#define PX_PS4 0
#endif
@@ -269,7 +274,7 @@ family shortcuts
#define PX_MICROSOFT_FAMILY (PX_XBOXONE || PX_WINDOWS_FAMILY || PX_XBOX_SERIES_X)
#define PX_LINUX_FAMILY (PX_LINUX || PX_ANDROID)
#define PX_APPLE_FAMILY (PX_IOS || PX_OSX) // equivalent to #if __APPLE__
-#define PX_UNIX_FAMILY (PX_LINUX_FAMILY || PX_APPLE_FAMILY) // shortcut for unix/posix platforms
+#define PX_UNIX_FAMILY (PX_LINUX_FAMILY || PX_APPLE_FAMILY || PX_HAIKU) // shortcut for unix/posix platforms
#if defined(__EMSCRIPTEN__)
#define PX_EMSCRIPTEN 1
#else
@@ -307,7 +312,7 @@ Assert macro
DLL export macros
*/
#ifndef PX_C_EXPORT
-#if PX_WINDOWS_FAMILY || PX_LINUX
+#if PX_WINDOWS_FAMILY || PX_LINUX || PX_HAIKU
#define PX_C_EXPORT extern "C"
#else
#define PX_C_EXPORT
diff --git a/src/3rdparty/PhysX/pxshared/include/foundation/unix/PxUnixIntrinsics.h b/src/3rdparty/PhysX/pxshared/include/foundation/unix/PxUnixIntrinsics.h
index 175f7fd..3620cac 100644
--- a/src/3rdparty/PhysX/pxshared/include/foundation/unix/PxUnixIntrinsics.h
+++ b/src/3rdparty/PhysX/pxshared/include/foundation/unix/PxUnixIntrinsics.h
@@ -33,7 +33,7 @@
#include "foundation/Px.h"
#include "foundation/PxSharedAssert.h"
-#if !(PX_LINUX || PX_ANDROID || PX_PS4 || PX_APPLE_FAMILY)
+#if !(PX_LINUX || PX_ANDROID || PX_PS4 || PX_APPLE_FAMILY || PX_HAIKU)
#error "This file should only be included by Unix builds!!"
#endif
diff --git a/src/3rdparty/PhysX/source/foundation/include/PsAllocator.h b/src/3rdparty/PhysX/source/foundation/include/PsAllocator.h
index a1480b2..7f04f00 100644
--- a/src/3rdparty/PhysX/source/foundation/include/PsAllocator.h
+++ b/src/3rdparty/PhysX/source/foundation/include/PsAllocator.h
@@ -118,6 +118,9 @@
#elif PX_SWITCH
#include <malloc.h>
#define PxAlloca(x) alloca(x)
+#elif PX_HAIKU
+ #include <malloc.h>
+ #define PxAlloca(x) alloca(x)
#endif
#define PxAllocaAligned(x, alignment) ((size_t(PxAlloca(x + alignment)) + (alignment - 1)) & ~size_t(alignment - 1))
diff --git a/src/3rdparty/PhysX/source/foundation/include/PsIntrinsics.h b/src/3rdparty/PhysX/source/foundation/include/PsIntrinsics.h
index f08af7f..8d72734 100644
--- a/src/3rdparty/PhysX/source/foundation/include/PsIntrinsics.h
+++ b/src/3rdparty/PhysX/source/foundation/include/PsIntrinsics.h
@@ -34,7 +34,7 @@
#if PX_WINDOWS_FAMILY
#include "windows/PsWindowsIntrinsics.h"
-#elif(PX_LINUX || PX_ANDROID || PX_APPLE_FAMILY || PX_PS4)
+#elif(PX_LINUX || PX_ANDROID || PX_APPLE_FAMILY || PX_PS4 || PX_HAIKU)
#include "unix/PsUnixIntrinsics.h"
#elif PX_XBOXONE
#include "XboxOne/PsXboxOneIntrinsics.h"
diff --git a/src/3rdparty/PhysX/source/foundation/include/PsThread.h b/src/3rdparty/PhysX/source/foundation/include/PsThread.h
index d0ec8d9..d88c0d4 100644
--- a/src/3rdparty/PhysX/source/foundation/include/PsThread.h
+++ b/src/3rdparty/PhysX/source/foundation/include/PsThread.h
@@ -41,7 +41,7 @@
#if PX_WINDOWS_FAMILY || PX_XBOXONE || PX_XBOX_SERIES_X
#define PxSpinLockPause() __asm pause
-#elif PX_LINUX || PX_ANDROID || PX_PS4 || PX_APPLE_FAMILY || PX_SWITCH
+#elif PX_LINUX || PX_ANDROID || PX_PS4 || PX_APPLE_FAMILY || PX_SWITCH || PX_HAIKU
#define PxSpinLockPause() asm("nop")
#else
#error "Platform not supported!"
diff --git a/src/3rdparty/PhysX/source/foundation/include/PsTime.h b/src/3rdparty/PhysX/source/foundation/include/PsTime.h
index 4d5eedb..38f23a7 100644
--- a/src/3rdparty/PhysX/source/foundation/include/PsTime.h
+++ b/src/3rdparty/PhysX/source/foundation/include/PsTime.h
@@ -84,7 +84,7 @@ class PX_FOUNDATION_API Time
Second getLastTime() const;
private:
-#if PX_LINUX || PX_ANDROID || PX_APPLE_FAMILY || PX_PS4
+#if PX_LINUX || PX_ANDROID || PX_APPLE_FAMILY || PX_PS4 || PX_HAIKU
Second mLastTime;
#else
int64_t mTickCount;
diff --git a/src/3rdparty/PhysX/source/foundation/include/unix/PsUnixIntrinsics.h b/src/3rdparty/PhysX/source/foundation/include/unix/PsUnixIntrinsics.h
index e6165e8..57fdb2d 100644
--- a/src/3rdparty/PhysX/source/foundation/include/unix/PsUnixIntrinsics.h
+++ b/src/3rdparty/PhysX/source/foundation/include/unix/PsUnixIntrinsics.h
@@ -45,7 +45,7 @@
// this file is for internal intrinsics - that is, intrinsics that are used in
// cross platform code but do not appear in the API
-#if !(PX_LINUX || PX_ANDROID || PX_PS4 || PX_APPLE_FAMILY)
+#if !(PX_LINUX || PX_ANDROID || PX_PS4 || PX_APPLE_FAMILY || PX_HAIKU)
#error "This file should only be included by unix builds!!"
#endif
diff --git a/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h b/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h
index 9a4fbb8..f6cf9d6 100644
--- a/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h
+++ b/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h
@@ -43,7 +43,11 @@ namespace shdfnd
namespace aos
{
-#if PX_EMSCRIPTEN || PX_SSE2
+#if PX_HAIKU
+#include <SupportDefs.h>
+#endif
+
+#if PX_EMSCRIPTEN || PX_SSE2 || PX_HAIKU
typedef int8_t __int8_t;
typedef int16_t __int16_t;
typedef int32_t __int32_t;
diff --git a/src/3rdparty/PhysX/source/foundation/src/unix/PsUnixThread.cpp b/src/3rdparty/PhysX/source/foundation/src/unix/PsUnixThread.cpp
index 0fb6851..159e36a 100644
--- a/src/3rdparty/PhysX/source/foundation/src/unix/PsUnixThread.cpp
+++ b/src/3rdparty/PhysX/source/foundation/src/unix/PsUnixThread.cpp
@@ -36,13 +36,13 @@
#include "PsThread.h"
#include <math.h>
-#if !PX_APPLE_FAMILY && !defined(ANDROID) && !defined(__CYGWIN__) && !PX_PS4 && !PX_EMSCRIPTEN && __GLIBC__
+#if !PX_APPLE_FAMILY && !defined(ANDROID) && !defined(__CYGWIN__) && !PX_PS4 && !PX_EMSCRIPTEN && !PX_HAIKU && __GLIBC__
#include <bits/local_lim.h> // PTHREAD_STACK_MIN
#endif
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
-#if !PX_PS4
+#if !PX_PS4 && !PX_HAIKU
#include <sys/syscall.h>
#if !PX_APPLE_FAMILY && !PX_EMSCRIPTEN
#include <asm/unistd.h>
@@ -57,6 +57,10 @@
#include <pthread.h>
#endif
+#if PX_HAIKU
+#include <OS.h>
+#endif
+
// fwd
#if defined(ANDROID)
extern "C" {
@@ -114,6 +118,8 @@ static void setTid(_ThreadImpl& threadImpl)
// AM: TODO: neither of the below are implemented
#elif PX_APPLE_FAMILY
threadImpl.tid = syscall(SYS_gettid);
+#elif PX_HAIKU
+ threadImpl.tid = find_thread(NULL);
#elif PX_EMSCRIPTEN
// No thread id for emscripten
#else
@@ -324,7 +330,7 @@ uint32_t ThreadImpl::setAffinityMask(uint32_t mask)
{
#if PX_PS4
prevMask = setAffinityMaskPS4(getThread(this)->thread, mask);
-#elif PX_EMSCRIPTEN
+#elif PX_EMSCRIPTEN || PX_HAIKU
// not supported
#elif !PX_APPLE_FAMILY // Apple doesn't support syscall with getaffinity and setaffinity
int32_t errGet = syscall(__NR_sched_getaffinity, getThread(this)->tid, sizeof(prevMask), &prevMask);
@@ -433,6 +439,10 @@ uint32_t ThreadImpl::getNbPhysicalCores()
int count;
size_t size = sizeof(count);
return sysctlbyname("hw.physicalcpu", &count, &size, NULL, 0) ? 0 : count;
+#elif PX_HAIKU
+ system_info info;
+ status_t result = get_system_info(&info);
+ return (result != B_OK) ? 0 : info.cpu_count;
#elif defined(ANDROID)
return android_getCpuCount();
#else
diff --git a/src/3rdparty/PhysX/source/pvd/include/PxProfileAllocatorWrapper.h b/src/3rdparty/PhysX/source/pvd/include/PxProfileAllocatorWrapper.h
index 46034b0..58b4059 100644
--- a/src/3rdparty/PhysX/source/pvd/include/PxProfileAllocatorWrapper.h
+++ b/src/3rdparty/PhysX/source/pvd/include/PxProfileAllocatorWrapper.h
@@ -74,7 +74,7 @@ namespace physx { namespace profile {
{
static const char* getName()
{
-#if PX_LINUX || PX_ANDROID || PX_PS4 || PX_IOS || PX_OSX || PX_EMSCRIPTEN || PX_SWITCH
+#if PX_LINUX || PX_ANDROID || PX_PS4 || PX_IOS || PX_OSX || PX_EMSCRIPTEN || PX_SWITCH || PX_HAIKU
return __PRETTY_FUNCTION__;
#else
return typeid(T).name();
--
2.45.2

View File

@@ -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/qtquick3dphysics-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="b7aff67bd05794351d7c19b178c54b674afc3ea2b4632df892aaee98f12c1cdb"
CHECKSUM_SHA256="2abbc8e32df6d8f7e7ba5341c8032054459b95ff3b0c9601f61666931a10f5f6"
SOURCE_DIR="qtquick3dphysics-everywhere-src-$portVersion"
PATCHES="qt6_quick3dphysics-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -54,7 +54,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
@@ -64,7 +64,7 @@ BUILD_REQUIRES="
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6Quick3D$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,118 +0,0 @@
SUMMARY="Qt6 Data Visualization module"
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/qtquick3dphysics-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="ffc790b8b44ebc03acc1f2d085dad0cc49fffde1eea941a6ff11d3eb0b6e4140"
SOURCE_DIR="qtquick3dphysics-everywhere-src-$portVersion"
PATCHES="qt6_quick3dphysics-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_quick3dphysics$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DPhysics$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Quick3DPhysicsHelpers$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:libQt6Quick3D$secondaryArchSuffix
lib:libQt6ShaderTools$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_quick3dphysics${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Quick3DPhysics$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Quick3DPhysicsHelpers$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6BundledPhysX$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_quick3dphysics$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:libQt6OpenGL$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6Quick3D$secondaryArchSuffix == $portVersion
devel:libQt6ShaderTools$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 -C build install
prepareInstalledDevelLibs \
libQt6Quick3DPhysics \
libQt6Quick3DPhysicsHelpers \
libQt6BundledPhysX
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qtquicktimeline-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="7032d8b758d21fdf790dde0d070e1c82819abcf5ee7194dbf21589dbdfd36324"
CHECKSUM_SHA256="ca3d32afdbfd01860e0d5ca3010e9d6928ca3d545077edb8f8ce8148f16f62ae"
SOURCE_DIR="qtquicktimeline-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -50,14 +50,14 @@ 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
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,110 +0,0 @@
SUMMARY="Qt module for keyframe-based timeline construction"
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/qtquicktimeline-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="21eddea01cf095cede10362eea4fb8402ffd06868c88d50a757c8c1f6b0719eb"
SOURCE_DIR="qtquicktimeline-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_quicktimeline$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickTimeline$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6QuickTimelineBlendTrees$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:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_quicktimeline${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6QuickTimeline$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6QuickTimelineBlendTrees$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_quicktimeline$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: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 -C build install
prepareInstalledDevelLibs \
libQt6QuickTimeline \
libQt6QuickTimelineBlendTrees
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qtscxml-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="0f9c178db3f1b1b06d20172aaaa4d7f5513bcb99de01f880c29e23b5ffdd236a"
CHECKSUM_SHA256="26d3e6ae104a762b4c957bf45a382efb1caec2e16333f8dfa88158a8f2620809"
SOURCE_DIR="qtscxml-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -54,14 +54,14 @@ 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
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,116 +0,0 @@
SUMMARY="Static and runtime integration of SCXML models into Qt6 code"
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/qtscxml-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="20ecf93506d48f27b492ad3dd9d88830e08d642faec3071ce53396a8ae05c86f"
SOURCE_DIR="qtscxml-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_scxml$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Scxml$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6ScxmlQml$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6StateMachine$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6StateMachineQml$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:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_scxml${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Scxml$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6ScxmlQml$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6StateMachine$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6StateMachineQml$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_scxml$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: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 -C build install
prepareInstalledDevelLibs \
libQt6Scxml \
libQt6ScxmlQml \
libQt6StateMachine \
libQt6StateMachineQml
# 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
}

View File

@@ -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

View File

@@ -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

View File

@@ -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="

View File

@@ -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
}

View File

@@ -1,34 +0,0 @@
From 9815e10b39d63d6433e66e311d78e93e0b44b358 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Mon, 11 Feb 2019 15:53:20 +1000
Subject: Add filteredDeviceFilePaths for Haiku's /dev/ports/*
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp
index 8721278..da10678 100644
--- a/src/serialport/qserialportinfo_unix.cpp
+++ b/src/serialport/qserialportinfo_unix.cpp
@@ -47,13 +47,19 @@ static QStringList filteredDeviceFilePaths()
<< QStringLiteral("cu*");
#elif defined(Q_OS_QNX)
<< QStringLiteral("ser*");
+#elif defined(Q_OS_HAIKU)
+ << QStringLiteral("*serial*")
+ << QStringLiteral("usb*");
#else
;
#endif
QStringList result;
-
+#if defined(Q_OS_HAIKU)
+ QDir deviceDir(QStringLiteral("/dev/ports"));
+#else
QDir deviceDir(QStringLiteral("/dev"));
+#endif
if (deviceDir.exists()) {
deviceDir.setNameFilters(deviceFileNameFilterList);
deviceDir.setFilter(QDir::Files | QDir::System | QDir::NoSymLinks);
--
2.51.0

View File

@@ -1,14 +1,14 @@
From eceaeaec743a6d2de9f05ba4942106e2af05f935 Mon Sep 17 00:00:00 2001
From c83292167b43f48a381ef6a5c1b38cea7fc9b895 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Mon, 11 Feb 2019 15:53:20 +1000
Subject: Add filteredDeviceFilePaths for Haiku's /dev/ports/*
diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp
index 93760e2..d9a45af 100644
index 573b742..6678c61 100644
--- a/src/serialport/qserialportinfo_unix.cpp
+++ b/src/serialport/qserialportinfo_unix.cpp
@@ -79,13 +79,19 @@ static QStringList filteredDeviceFilePaths()
@@ -48,13 +48,19 @@ static QStringList filteredDeviceFilePaths()
<< QStringLiteral("cu*");
#elif defined(Q_OS_QNX)
<< QStringLiteral("ser*");
@@ -30,5 +30,5 @@ index 93760e2..d9a45af 100644
deviceDir.setNameFilters(deviceFileNameFilterList);
deviceDir.setFilter(QDir::Files | QDir::System | QDir::NoSymLinks);
--
2.30.2
2.52.0

View File

@@ -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/qtserialport-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="b40cbf29da111ffa8fee7e7cb44b9097042782cd17a10448a83ff3156cdebd6b"
CHECKSUM_SHA256="3fb30bec133316b6f65b6e03a38087a59c7d337cd9b021486a814a9bc10a31ef"
SOURCE_DIR="qtserialport-everywhere-src-$portVersion"
PATCHES="qt6_serialport-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,93 +0,0 @@
SUMMARY="Provides access to hardware and virtual serial ports"
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/qtserialport-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="21c34cd1161cb5197bcec662d26a17647b59b6fdff5c364576883c42dbd3b4fc"
SOURCE_DIR="qtserialport-everywhere-src-$portVersion"
PATCHES="qt6_serialport-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_serialport$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6SerialPort$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
"
PROVIDES_devel="
qt6_serialport${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6SerialPort$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_serialport$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix == $portVersion
"
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 -C build install
prepareInstalledDevelLibs \
libQt6SerialPort
# 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
}

View File

@@ -10,11 +10,11 @@ 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/qtshadertools-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="18d9dbbc4f7e6e96e6ed89a9965dc032e2b58158b65156c035537826216716c9"
CHECKSUM_SHA256="c75837e2ea493ec0b9747b227c455d4a12cafe90068abf607992da9a403616c6"
SOURCE_DIR="qtshadertools-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,97 +0,0 @@
SUMMARY="Qt6 shader tools module"
DESCRIPTION="The Qt Shader Tools module builds on the SPIR-V Open Source Ecosystem as described \
at the Khronos SPIR-V web site. For compiling into SPIR-V glslang is used, while translating \
and reflecting is done via SPIRV-Cross."
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/qtshadertools-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="edfa34c0ac8c00fcaa949df1d8e7a77d89dadd6386e683ce6c3e3b117e2f7cc1"
SOURCE_DIR="qtshadertools-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_shadertools$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6ShaderTools$secondaryArchSuffix = $portVersion compat >= 6
cmd:qsb$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
"
PROVIDES_devel="
qt6_shadertools${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6ShaderTools$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_shadertools$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Gui$secondaryArchSuffix == $portVersion
"
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 -Bbuild -S. -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 -C build install
prepareInstalledDevelLib \
libQt6ShaderTools
# fix pkgconfig files
fixPkgconfig
sed -i "s|includedir=.*|includedir=$includeDir/Qt6|" \
$developLibDir/pkgconfig/*.pc
mkdir -p $binDir
ln -s -t $binDir $libDir/Qt6/qsb
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
}

View File

@@ -1,4 +1,4 @@
From f70bdaefde863cba8f00942c2dd8750a915061b6 Mon Sep 17 00:00:00 2001
From c8290a0bc756186857cee9785b65d8967dbd66bd Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 15 Apr 2024 20:51:10 +1000
Subject: Fix flite voices path

View File

@@ -1,32 +0,0 @@
From 78b823fbd5be0e7c25c3a9b84d394a25c4f4d290 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Mon, 15 Apr 2024 20:51:10 +1000
Subject: Fix flite voices path
diff --git a/src/plugins/tts/flite/qtexttospeech_flite_processor.cpp b/src/plugins/tts/flite/qtexttospeech_flite_processor.cpp
index e64ff05..b211d1e 100644
--- a/src/plugins/tts/flite/qtexttospeech_flite_processor.cpp
+++ b/src/plugins/tts/flite/qtexttospeech_flite_processor.cpp
@@ -224,7 +224,7 @@ bool QTextToSpeechProcessorFlite::init()
// We could source the language and perhaps the list of voices we want to load
// (hardcoded below) from an environment variable.
const QLatin1StringView langCode("us");
- const QLatin1StringView libPrefix("flite_cmu_%1_%2.so.1");
+ const QLatin1StringView libPrefix("flite_cmu_%1_%2.so.2");
const QLatin1StringView registerPrefix("register_cmu_%1_%2");
const QLatin1StringView unregisterPrefix("unregister_cmu_%1_%2");
@@ -273,7 +273,8 @@ QStringList QTextToSpeechProcessorFlite::fliteAvailableVoices(const QString &lib
QStringList ldPaths = pe.value("LD_LIBRARY_PATH"_L1).split(":", Qt::SkipEmptyParts);
if (ldPaths.isEmpty()) {
ldPaths = QStringList{"/usr/lib64"_L1, "/usr/local/lib64"_L1, "/lib64"_L1,
- "/usr/lib/x86_64-linux-gnu"_L1, "/usr/lib"_L1};
+ "/usr/lib/x86_64-linux-gnu"_L1, "/usr/lib"_L1,
+ "/system/lib"_L1, "/system/lib/x86"_L1};
} else {
ldPaths.removeDuplicates();
}
--
2.43.2

View File

@@ -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/qtspeech-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="d937f6c715792b0d8f036e94513ebfc8def6b988a65f3ff30a7f4a8cc1263014"
CHECKSUM_SHA256="6616e435bd6069aac4357cd35f7cb6c01a77e804fa57c5f58d8b8031f2036c1d"
SOURCE_DIR="qtspeech-everywhere-src-$portVersion"
PATCHES="qt6_speech-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,103 +0,0 @@
SUMMARY="Text-to-speech library for the Qt6 framework"
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/qtspeech-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="cc8c769404e3e49713be304a73f936890a1ef2f88d590732785f34692a4814ce"
SOURCE_DIR="qtspeech-everywhere-src-$portVersion"
PATCHES="qt6_speech-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_speech$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6TextToSpeech$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libflite$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Multimedia$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_speech${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6TextToSpeech$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_speech$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
devel:libQt6Multimedia$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libflite$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Multimedia$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
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 -C build install
prepareInstalledDevelLibs \
libQt6TextToSpeech
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qtsvg-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="f07ff80f38caf235187200345392ca7479445ddf49a36c3694cd52a735dad6e1"
CHECKSUM_SHA256="b3223fe005f6a4c7f21f34e4ee6ce0094737cff9503ba15bbb171ac18794f76d"
SOURCE_DIR="qtsvg-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,103 +0,0 @@
SUMMARY="Classes for displaying the contents of SVG files"
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="2"
QT_MIRROR_URI="https://qt-mirror.dannhauer.de/archive"
SOURCE_URI="$QT_MIRROR_URI/qt/${portVersion%.*}/$portVersion/submodules/qtsvg-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="fb0d1286a35be3583fee34aeb5843c94719e07193bdf1d4d8b0dc14009caef01"
SOURCE_DIR="qtsvg-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_svg$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Svg$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6SvgWidgets$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
SUPPLEMENTS="
qt6_base$secondaryArchSuffix
"
PROVIDES_devel="
qt6_svg${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Svg$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6SvgWidgets$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_svg$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Gui$secondaryArchSuffix == $portVersion
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 -C build install
prepareInstalledDevelLibs \
libQt6Svg \
libQt6SvgWidgets
# 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
}

View File

@@ -9,7 +9,7 @@ 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/qttools-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="1e3d2c07c1fd76d2425c6eaeeaa62ffaff5f79210c4e1a5bc2a6a9db668d5b24"
CHECKSUM_SHA256="8f00b9e3d1f80973d81cff67684972b89993183ef19924404d5b8ff0f89675b6"
SOURCE_DIR="qttools-everywhere-src-$portVersion"
ADDITIONAL_FILES="
Assistant.rdef.in
@@ -19,13 +19,13 @@ ADDITIONAL_FILES="
FindWrapLibClang.cmake.in
"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
clangVer="20"
clangVer="21"
PROVIDES="
qt6_tools$secondaryArchSuffix = $portVersion compat >= 6
@@ -58,6 +58,7 @@ REQUIRES="
lib:libQt6Widgets$secondaryArchSuffix
lib:libvulkan$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libzstd$secondaryArchSuffix
"
PROVIDES_devel="

View File

@@ -1,188 +0,0 @@
SUMMARY="A cross-platform application and UI framework (Development Tools, QtHelp)"
DESCRIPTION="The QtTools modules contains some tools mostly useful for application development. \
Included are Qt Designer (GUI design), QDbusViewer and more."
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/qttools-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="58e855ad1b2533094726c8a425766b63a04a0eede2ed85086860e54593aa4b2a"
SOURCE_DIR="qttools-everywhere-src-$portVersion"
ADDITIONAL_FILES="
Assistant.rdef.in
Designer.rdef.in
Linguist.rdef.in
QDBusViewer.rdef.in
FindWrapLibClang.cmake.in
"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_tools$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Designer$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6DesignerComponents$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6Help$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6UiTools$secondaryArchSuffix = $portVersion compat >= 6
cmd:assistant6$secondaryArchSuffix = $portVersion compat >= 6
cmd:designer6$secondaryArchSuffix = $portVersion compat >= 6
cmd:linguist6$secondaryArchSuffix = $portVersion compat >= 6
cmd:pixeltool6$secondaryArchSuffix = $portVersion compat >= 6
cmd:qdbus6$secondaryArchSuffix = $portVersion compat >= 6
cmd:qdbusviewer6$secondaryArchSuffix = $portVersion compat >= 6
cmd:qdistancefieldgenerator6$secondaryArchSuffix = $portVersion compat >= 6
cmd:qdoc6$secondaryArchSuffix = $portVersion compat >= 6
cmd:qtdiag6$secondaryArchSuffix = $portVersion compat >= 6
cmd:qtplugininfo6$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libLLVM$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Qml$secondaryArchSuffix
lib:libQt6QmlModels$secondaryArchSuffix
lib:libQt6Quick$secondaryArchSuffix
lib:libQt6Widgets$secondaryArchSuffix
lib:libvulkan$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_tools${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6Designer$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6DesignerComponents$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6Help$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6UiTools$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_tools$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libclang$secondaryArchSuffix >= 18
devel:libclang_cpp$secondaryArchSuffix >= 18
devel:libLLVM_18$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix >= 3
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Gui$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6Widgets$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix >= 3
devel:libvulkan$secondaryArchSuffix
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
local LLVM_VERSION=$(llvm-config --version)
local LLVM_VERION_MAJOR="`echo "$LLVM_VERSION" | cut -d. -f1`"
local LLVM_VERION_MINOR="`echo "$LLVM_VERSION" | cut -d. -f2`"
local LLVM_VERION_PATCH="`echo "$LLVM_VERSION" | cut -d. -f3`"
sed \
-e "s|@CLANG_VERSION_MAJOR@|$LLVM_VERION_MAJOR|" \
-e "s|@CLANG_VERSION_MINOR@|$LLVM_VERION_MINOR|" \
-e "s|@CLANG_VERSION_PATCH@|$LLVM_VERION_PATCH|" \
-e "s|@CLANG_VERSION@|$LLVM_VERSION|" \
-e "s|@CLANG_LIBDIR@|/system/$relativeDevelopLibDir|" \
-e "s|@CLANG_INCLUDE_DIR@|/system/$relativeLibDir/clang/$LLVM_VERSION/include|" \
$portDir/additional-files/FindWrapLibClang.cmake.in > $sourceDir/cmake/FindWrapLibClang.cmake
cmake -B build -S $sourceDir -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS=-fPIC \
-DINSTALL_PUBLICBINDIR=$binDir
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 -C build install
prepareInstalledDevelLibs \
libQt6Designer \
libQt6DesignerComponents \
libQt6Help \
libQt6UiTools
# fix pkgconfig files
fixPkgconfig
sed -i "s|includedir=.*|includedir=$includeDir/Qt6|" \
$developLibDir/pkgconfig/*.pc
# add tools to Deskbar menu
mkdir -p \
$binDir \
$dataDir/deskbar/menu/Applications/Qt
# install symlinks for user-facing tools
while read _line; do
ln -s $_line
done < $sourceDir/build/user_facing_tool_links.txt
# add resources
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local VARIETY="B_APPV_FINAL"
resFiles="Assistant Designer Linguist QDBusViewer"
for j in $resFiles; do
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@VARIETY@|$VARIETY|" \
$portDir/additional-files/$j.rdef.in > $sourceDir/$j.rdef
mv $libDir/Qt6/${j,,} $libDir/Qt6/$j
ln -s $libDir/Qt6/$j $libDir/Qt6/${j,,}
addResourcesToBinaries $sourceDir/$j.rdef $libDir/Qt6/$j
addAppDeskbarSymlink $libDir/Qt6/$j "Qt/Qt6 $j"
mimeset -f $libDir/Qt6/$j
done
mkdir -p $libDir/Qt6/lib
cp -f `finddir B_SYSTEM_DIRECTORY`/$relativeDevelopLibDir/libclang.so.18.1 $libDir/Qt6/lib
cp -f `finddir B_SYSTEM_DIRECTORY`/$relativeDevelopLibDir/libclang-cpp.so.18.1 $libDir/Qt6/lib
strip -s $libDir/Qt6/lib/libclang*
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
}

View File

@@ -11,11 +11,11 @@ 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/qttranslations-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="b3b3813bc9d76b545716dc8b6e659fa71b6e2bc14569e9fab6dab8b30650a644"
CHECKSUM_SHA256="52689984b114d4d34516d5d7bfb0c75857b1c3ff529921042144f09ab2de3a83"
SOURCE_DIR="qttranslations-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_translations$secondaryArchSuffix = $portVersion compat >= 6
@@ -30,8 +30,8 @@ SUPPLEMENTS="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
qt6_tools${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
qt6_tools${secondaryArchSuffix}_devel == $portVersion
devel:libQt6Core$secondaryArchSuffix == $portVersion
"
BUILD_PREREQUIRES="
cmd:awk

View File

@@ -1,68 +0,0 @@
SUMMARY="A cross-platform application and UI framework (Translations)"
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/qttranslations-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="9845780b5dc1b7279d57836db51aeaf2e4a1160c42be09750616f39157582ca9"
SOURCE_DIR="qttranslations-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_translations$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES="
haiku$secondaryArchSuffix
"
SUPPLEMENTS="
qt6_base$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
qt6_tools${secondaryArchSuffix}_devel
devel:libQt6Core$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:qdoc6$secondaryArchSuffix
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 -C build install
}

View File

@@ -11,11 +11,11 @@ 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/qtwebchannel-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="e31ea59f8e19e0374d54fdc7a8479c840acffc4ba5297ee43564b5158a4f2c27"
CHECKSUM_SHA256="9797953a17220b24f531ef09d3f49aa69add369aa6c32b5b2e07f2916a8129b5"
SOURCE_DIR="qtwebchannel-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -51,7 +51,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
@@ -59,7 +59,7 @@ BUILD_REQUIRES="
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libQt6WebSockets$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,112 +0,0 @@
SUMMARY="Provides access to QObject or QML objects from HTML/JavaScript clients"
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/qtwebchannel-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="ac5d96607b10e7de546eaf93bb9f65c0fd631ef9b91ef8a794e26fd57db4501c"
SOURCE_DIR="qtwebchannel-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_webchannel$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6WebChannel$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6WebChannelQuick$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:libQt6WebSockets$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_webchannel${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6WebChannel$secondaryArchSuffix = $portVersion compat >= 6
devel:libQt6WebChannelQuick$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_webchannel$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:libQt6WebSockets$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 -C build install
prepareInstalledDevelLibs \
libQt6WebChannel \
libQt6WebChannelQuick
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qtwebsockets-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="eccc751bea509ef656d20029693987a0fc03c58e21c38f1351480f3c8eb42ebd"
CHECKSUM_SHA256="6ed8196002af15ca930b4ad111f1c19ed2941f4020759dbefb23e655ef6a33a1"
SOURCE_DIR="qtwebsockets-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -48,14 +48,14 @@ 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
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6QmlModels$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
devel:libssl$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="

View File

@@ -1,107 +0,0 @@
SUMMARY="Provides WebSocket communication compliant with RFC 6455"
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/qtwebsockets-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="5bde4af6ec9ce8c8632b782ab77b82d910721be2c714e6d38902521bcd1d215f"
SOURCE_DIR="qtwebsockets-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qt6_websockets$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6WebSockets$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:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
qt6_websockets${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6WebSockets$secondaryArchSuffix = $portVersion compat >= 6
"
REQUIRES_devel="
qt6_websockets$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: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 -C build install
prepareInstalledDevelLibs \
libQt6WebSockets
# 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
}

View File

@@ -11,11 +11,11 @@ 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/qtwebview-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="7ec406ff0998900ccef0ff8e4e5b1fbf15e4e18f3b43eb72e8b2aeda0dd0eab4"
CHECKSUM_SHA256="989aac9b42ec29df96c3a51bf99fce6021b25d861b698c34360cd1ce7826dc40"
SOURCE_DIR="qtwebview-everywhere-src-$portVersion"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

View File

@@ -1,113 +0,0 @@
SUMMARY="Provides WebSocket communication compliant with RFC 6455"
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/qtwebview-everywhere-src-$portVersion.tar.xz"
CHECKSUM_SHA256="4ce1096903d4fec39bfcd95d4015acbf105eddf66a384303cb0fe899dd24e4fe"
SOURCE_DIR="qtwebview-everywhere-src-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
qt6_webview$secondaryArchSuffix = $portVersion compat >= 6
lib:libQt6WebView$secondaryArchSuffix = $libVersionCompat
lib:libQt6WebViewQuick$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
lib:libQt6OpenGL$secondaryArchSuffix
lib:libQt6Qml$secondaryArchSuffix
lib:libQt6QmlModels$secondaryArchSuffix
lib:libQt6Quick$secondaryArchSuffix
"
PROVIDES_devel="
qt6_webview${secondaryArchSuffix}_devel = $portVersion compat >= 6
devel:libQt6WebView$secondaryArchSuffix = $libVersionCompat
devel:libQt6WebViewQuick$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
qt6_webview$secondaryArchSuffix == $portVersion base
qt6_base${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix == $portVersion
devel:libQt6Gui$secondaryArchSuffix == $portVersion
devel:libQt6OpenGL$secondaryArchSuffix == $portVersion
devel:libQt6Qml$secondaryArchSuffix == $portVersion
devel:libQt6Quick$secondaryArchSuffix == $portVersion
# devel:libQt6WebEngineCore$secondaryArchSuffix
# devel:libQt6WebEngineQuick$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 -C build install
prepareInstalledDevelLibs \
libQt6WebView \
libQt6WebViewQuick
# 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
# cleanup
rmdir $libDir/Qt6
packageEntries devel \
$developDir \
$libDir/cmake \
$dataDir/Qt6/mkspecs
}