mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Add KF6 frameworks, kdeclarative6 (#10533)
This commit is contained in:
93
kde-frameworks/kdeclarative/kdeclarative6-6.2.0.recipe
Normal file
93
kde-frameworks/kdeclarative/kdeclarative6-6.2.0.recipe
Normal file
@@ -0,0 +1,93 @@
|
||||
SUMMARY="Integration of QML and KDE work spaces"
|
||||
DESCRIPTION="KDeclarative provides integration of QML and KDE work spaces. \
|
||||
It's comprises two parts: a library used by the C++ part of your application \
|
||||
to intergrate QML with KDE Frameworks specific features, and a series of QML \
|
||||
imports that offer bindings to some of the Frameworks."
|
||||
HOMEPAGE="https://invent.kde.org/frameworks/kdeclarative"
|
||||
COPYRIGHT="2010-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kdeclarative-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="a85c3f1599d229f052ee3786e9041ace5510c99844c8efc7bfc9ddaed1936d84"
|
||||
SOURCE_DIR="kdeclarative-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
kdeclarative6$secondaryArchSuffix = $portVersion
|
||||
lib:libKF6CalendarEvents$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kdeclarative6${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF6CalendarEvents$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kdeclarative6$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
qt6_tools${secondaryArchSuffix}_devel
|
||||
devel:libKF6ConfigCore$secondaryArchSuffix == $portVersion
|
||||
devel:libKF6GlobalAccel$secondaryArchSuffix == $portVersion
|
||||
devel:libKF6GuiAddons$secondaryArchSuffix == $portVersion
|
||||
devel:libKF6I18n$secondaryArchSuffix == $portVersion
|
||||
devel:libKF6WidgetsAddons$secondaryArchSuffix == $portVersion
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6Qml$secondaryArchSuffix
|
||||
devel:libQt6Quick$secondaryArchSuffix
|
||||
devel:libQt6ShaderTools$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:dot
|
||||
cmd:doxygen >= 1.9
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
qthaikuplugins$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_QCH=ON \
|
||||
-DBUILD_TESTING=OFF
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libKF6CalendarEvents
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/doc \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make -Cbuild test
|
||||
# manual test, opens window for checking an image
|
||||
# build/bin/qimageitemtest
|
||||
}
|
||||
Reference in New Issue
Block a user