Files
haikuports/kde-frameworks/frameworkintegration/frameworkintegration6-6.5.0.recipe
2024-08-28 11:10:06 +00:00

110 lines
3.4 KiB
Bash

SUMMARY="Integration of Qt application with KDE workspaces"
DESCRIPTION="Framework Integration is a set of plugins responsible for better integration of Qt \
applications when running on a KDE Plasma workspace.
Applications do not need to link to this directly."
HOMEPAGE="https://invent.kde.org/frameworks/frameworkintegration"
COPYRIGHT="2010-2024 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/frameworkintegration-$portVersion.tar.xz"
CHECKSUM_SHA256="c57b55742e602d2c85c9002158e88fe077d3a164c68ed50c77672a74e11a0df4"
SOURCE_DIR="frameworkintegration-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
frameworkintegration6$secondaryArchSuffix = $portVersion
lib:libKF6Style$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libKF6AuthCore$secondaryArchSuffix
lib:libKF6Codecs$secondaryArchSuffix
lib:libKF6ColorScheme$secondaryArchSuffix
lib:libKF6ConfigCore$secondaryArchSuffix
lib:libKF6ConfigWidgets$secondaryArchSuffix
lib:libKF6CoreAddons$secondaryArchSuffix
lib:libKF6IconThemes$secondaryArchSuffix
lib:libKF6WidgetsAddons$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Widgets$secondaryArchSuffix
lib:libQt6Xml$secondaryArchSuffix
"
PROVIDES_devel="
frameworkintegration6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6Style$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
frameworkintegration6$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libKF6AuthCore$secondaryArchSuffix == $portVersion
devel:libKF6Attica$secondaryArchSuffix == $portVersion
devel:libKF6Codecs$secondaryArchSuffix == $portVersion
devel:libKF6ColorScheme$secondaryArchSuffix == $portVersion
devel:libKF6ConfigCore$secondaryArchSuffix == $portVersion
devel:libKF6ConfigWidgets$secondaryArchSuffix == $portVersion
devel:libKF6CoreAddons$secondaryArchSuffix == $portVersion
devel:libKF6I18n$secondaryArchSuffix == $portVersion
devel:libKF6IconThemes$secondaryArchSuffix == $portVersion
devel:libKF6NewStuffCore$secondaryArchSuffix == $portVersion
devel:libKF6Notifications$secondaryArchSuffix == $portVersion
devel:libKF6Package$secondaryArchSuffix == $portVersion
devel:libKF6Service$secondaryArchSuffix == $portVersion
devel:libKF6WidgetsAddons$secondaryArchSuffix == $portVersion
devel:libKF6XmlGui$secondaryArchSuffix == $portVersion
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Qml$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:msgfmt
cmd:msgmerge
cmd:pkg_config$secondaryArchSuffix
"
TEST_REQUIRES="
qthaikuplugins$secondaryArchSuffix
"
BUILD()
{
cmake -Bbuild -S. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DBUILD_TESTING=OFF
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib \
libKF6Style
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
ctest --test-dir build --output-on-failure
}