From f4c526e0842d577de97cf160d4b16ac2084a2eb6 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 28 May 2024 17:06:22 +0200 Subject: [PATCH] Add KF6 frameworks, kwindowsystem6 (#10493) --- .../kwindowsystem/kwindowsystem6-6.2.0.recipe | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 kde-frameworks/kwindowsystem/kwindowsystem6-6.2.0.recipe diff --git a/kde-frameworks/kwindowsystem/kwindowsystem6-6.2.0.recipe b/kde-frameworks/kwindowsystem/kwindowsystem6-6.2.0.recipe new file mode 100644 index 000000000..f2e667938 --- /dev/null +++ b/kde-frameworks/kwindowsystem/kwindowsystem6-6.2.0.recipe @@ -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 +}