mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
Add KF6 frameworks, kplotting6 (#10540)
This commit is contained in:
87
kde-frameworks/kplotting/kplotting6-6.2.0.recipe
Normal file
87
kde-frameworks/kplotting/kplotting6-6.2.0.recipe
Normal file
@@ -0,0 +1,87 @@
|
||||
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="cddc7e95e3376be1621a347f6e9ffa88ad787b485aa26c7e026336c05277c16d"
|
||||
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 >= 1.9
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DKDE_INSTALL_QTPLUGINDIR=$addOnsDir/Qt6 \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_QCH=ON \
|
||||
-DBUILD_TESTING=OFF
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKF6Plotting
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/doc \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
make -Cbuild test
|
||||
}
|
||||
Reference in New Issue
Block a user