Files
haikuports/kde-frameworks/kplotting/kplotting6-6.7.0.recipe
2024-10-29 19:14:47 +01:00

99 lines
2.6 KiB
Bash

SUMMARY="KDE Data plotting"
DESCRIPTION="KPlotWidget is a QWidget-derived class that provides a virtual base \
class for easy data-plotting.
The idea behind KPlotWidget is that you only have to specify information in 'data \
units'; i.e., the natural units of the data being plotted.
KPlotWidget automatically converts everything to screen pixel units."
HOMEPAGE="https://invent.kde.org/frameworks/kplotting"
COPYRIGHT="2010-2024 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kplotting-${portVersion}.tar.xz"
CHECKSUM_SHA256="130eedc234f0fedaf2c415de895c979454f64c3b049043327d43cd509e2386b3"
SOURCE_DIR="kplotting-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
kplotting6$secondaryArchSuffix = $portVersion
lib:libKF6Plotting$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6QuickWidgets$secondaryArchSuffix
"
PROVIDES_devel="
kplotting6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6Plotting$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kplotting6$secondaryArchSuffix == $portVersion base
"
TEST_REQUIRES="
qthaikuplugins
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
qt6_tools${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:dot
cmd:doxygen
cmd:g++$secondaryArchSuffix
cmd:make
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage kplotting6$secondaryArchSuffix \
$libDir/libKF6Plotting.so.$libVersion
BUILD()
{
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
$cmakeDirArgs \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
-DKDE_INSTALL_QTPLUGINDIR=$addOnsDir/Qt6 \
-DKDE_INSTALL_QTQCHDIR=$documentationDir/packages/qt6 \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt6/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DBUILD_QCH=ON \
-DBUILD_TESTING=OFF \
-Wno-dev
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib \
libKF6Plotting
packageEntries devel \
$developDir \
$documentationDir \
$libDir/cmake
}
TEST()
{
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
ctest --test-dir build --output-on-failure
}