From f3704a7c02c7d781ae2e706b9b1e3f74b5f32065 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 29 May 2024 18:41:32 +0200 Subject: [PATCH] Add KF6 frameworks, kquickcharts6 (#10541) --- .../kquickcharts/kquickcharts6-6.2.0.recipe | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 kde-frameworks/kquickcharts/kquickcharts6-6.2.0.recipe diff --git a/kde-frameworks/kquickcharts/kquickcharts6-6.2.0.recipe b/kde-frameworks/kquickcharts/kquickcharts6-6.2.0.recipe new file mode 100644 index 000000000..f380f25a6 --- /dev/null +++ b/kde-frameworks/kquickcharts/kquickcharts6-6.2.0.recipe @@ -0,0 +1,99 @@ +SUMMARY="A QtQuick module providing high-performance charts" +DESCRIPTION="The Quick Charts module provides a set of charts that can be used from QtQuick \ +applications. They are intended to be used for both simple display of data as well as continuous \ +display of high-volume data (often referred to as plotters). +The charts use a system called distance fields for their accelerated rendering, which provides \ +ways of using the GPU for rendering 2D shapes without loss of quality." +HOMEPAGE="https://invent.kde.org/frameworks/kquickcharts" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kquickcharts-$portVersion.tar.xz" +CHECKSUM_SHA256="fdd96bf4218a309be28523ac318bd7816e8bd1febf0e771b13359cd658c6756b" +SOURCE_DIR="kquickcharts-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + kquickcharts6$secondaryArchSuffix = $portVersion + lib:libQuickCharts$secondaryArchSuffix = $libVersionCompat + lib:libQuickChartsControls$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + lib:libQt6Gui$secondaryArchSuffix + lib:libQt6Network$secondaryArchSuffix + lib:libQt6Qml$secondaryArchSuffix + lib:libQt6Quick$secondaryArchSuffix + " + +PROVIDES_devel=" + kquickcharts6${secondaryArchSuffix}_devel = $portVersion + devel:libQuickCharts$secondaryArchSuffix = $libVersionCompat + devel:libQuickChartsControls$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + kquickcharts6$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + devel:libQt6Quick$secondaryArchSuffix + devel:libQt6QuickControls2$secondaryArchSuffix + devel:libQt6Gui$secondaryArchSuffix + devel:libQt6Network$secondaryArchSuffix + devel:libQt6ShaderTools$secondaryArchSuffix + devel:libQt6Test$secondaryArchSuffix + devel:libQt6Widgets$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:glslangValidator$secondaryArchSuffix + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + " + +TEST_REQUIRES=" + qthaikuplugins + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_TESTING=OFF + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLibs \ + libQuickCharts \ + libQuickChartsControls + + packageEntries devel \ + $libDir/cmake \ + $developDir +} + +TEST() +{ + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + make -C build test +}