Add KF6 frameworks, kwindowsystem6 (#10493)

This commit is contained in:
Schrijvers Luc
2024-05-28 17:06:22 +02:00
committed by GitHub
parent 93481c7e10
commit f4c526e084

View File

@@ -0,0 +1,92 @@
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="0f8fb12b4eea926a7f4cf59ec85d95297a8cb67d8093dc4b194b51a1c4671d89"
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:dot
cmd:doxygen >= 1.9
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DKWINDOWSYSTEM_WAYLAND=OFF \
-DKWINDOWSYSTEM_X11=OFF \
-DBUILD_QCH=ON \
-DBUILD_TESTING=OFF
make -Cbuild $jobArgs
}
INSTALL()
{
make -Cbuild install
prepareInstalledDevelLib \
libKF6WindowSystem
fixPkgconfig
packageEntries devel \
$developDir \
$dataDir/doc \
$libDir/cmake
}
TEST()
{
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
make -Cbuild test
}