mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
Qt6, bump to (disabled) 6.10.2 (#13862)
This commit is contained in:
108
dev-qt/qt6-graphs/qt6_graphs-6.10.2.recipe
Normal file
108
dev-qt/qt6-graphs/qt6_graphs-6.10.2.recipe
Normal file
@@ -0,0 +1,108 @@
|
||||
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-2026 The Qt Company Ltd."
|
||||
LICENSE="BSD (3-clause)
|
||||
GNU FDL v1.3
|
||||
GNU GPL v3"
|
||||
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"
|
||||
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
|
||||
lib:libQt6GraphsWidgets$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
|
||||
devel:libQt6GraphsWidgets$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
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libQt6Graphs \
|
||||
libQt6GraphsWidgets
|
||||
|
||||
# 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 \
|
||||
$dataDir/Qt6/mkspecs \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
Reference in New Issue
Block a user