mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
kquickcharts, new kde framework (#10171)
This commit is contained in:
90
kde-frameworks/kquickcharts/kquickcharts-5.115.0.recipe
Normal file
90
kde-frameworks/kquickcharts/kquickcharts-5.115.0.recipe
Normal file
@@ -0,0 +1,90 @@
|
||||
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://invent.kde.org/frameworks/kquickcharts/-/archive/v$portVersion/kquickcharts-v$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="060907025f3939532a4cefc2b5e852bcb2adbdb0e6bea22da508abab903a0f3e"
|
||||
SOURCE_DIR="kquickcharts-v$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
kquickcharts$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5Qml$secondaryArchSuffix
|
||||
lib:libQt5Quick$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kquickcharts${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:kquickcharts$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kquickcharts$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Qml$secondaryArchSuffix
|
||||
devel:libQt5Quick$secondaryArchSuffix
|
||||
devel:libQt5QuickControls2$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5Test$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:glslangValidator$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgfmt
|
||||
cmd:msgmerge
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
||||
cmd:xsltproc
|
||||
"
|
||||
TEST_REQUIRES="
|
||||
qthaikuplugins$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
packageEntries devel \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make -C build test # launches a few windows
|
||||
}
|
||||
Reference in New Issue
Block a user