Files
haikuports/kde-frameworks/kwindowsystem/kwindowsystem6-6.16.0.recipe
2025-07-12 07:24:55 +00:00

93 lines
2.5 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-2025 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kwindowsystem-${portVersion}.tar.xz"
CHECKSUM_SHA256="dc3b5ac5e5eaea5b76af8e85f065ddbce91ff7e3fcc13c6d600ad53bb53b1b31"
SOURCE_DIR="kwindowsystem-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
kwindowsystem6$secondaryArchSuffix = $portVersion
lib:libKF6WindowSystem$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
"
PROVIDES_devel="
kwindowsystem6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6WindowSystem$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kwindowsystem6$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix == $portVersion
qt6_tools${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Qml$secondaryArchSuffix
devel:libxcb$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
-DKDE_INSTALL_QTPLUGINDIR=$addOnsDir/Qt6 \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DCMAKE_SKIP_RPATH=YES \
-DBUILD_TESTING=OFF \
-Wno-dev
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib \
libKF6WindowSystem
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
ctest --test-dir build --output-on-failure
}