Files
haikuports/kde-frameworks/kwindowsystem/kwindowsystem-5.115.0.recipe
2024-02-29 21:25:16 +10:00

90 lines
2.2 KiB
Bash

SUMMARY="Access to the windowing system"
DESCRIPTION="Convenience access to certain properties and features of the \
windowing system.
KWindowSystem provides information about the windowing system and allows \
interaction with the windowing system. It provides an high level API which \
is windowing system independent and has platform specific implementations. \
This API is inspired by X11 and thus not all functionality is available \
on all windowing systems.
In addition to the high level API, this framework also provides several \
more low level classes for interaction with the X Windowing System."
HOMEPAGE="https://invent.kde.org/frameworks/kwindowsystem/"
COPYRIGHT="2010-2024 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kwindowsystem-${portVersion}.tar.xz"
CHECKSUM_SHA256="e0a06b19b5fb3ce534b35ddb1db96911c9452e791c0c650eae77bf59fb355f53"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kwindowsystem$secondaryArchSuffix = $portVersion
lib:libKF5WindowSystem$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
"
PROVIDES_devel="
kwindowsystem${secondaryArchSuffix}_devel = $portVersion
devel:libKF5WindowSystem$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kwindowsystem$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libQt5Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
"
PATCH()
{
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
}
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5WindowSystem
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}