Files
haikuports/kde-frameworks/kwindowsystem/kwindowsystem-5.55.0.recipe
2019-02-19 13:10:03 +03:00

87 lines
2.1 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://github.com/KDE/kwindowsystem/"
COPYRIGHT="2010-2019 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="2"
SOURCE_URI="https://github.com/KDE/kwindowsystem/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="5512bfbfc5aebf7f8a5e890733c927e15280bd1cb89b5009c723f91cba2b019b"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
GLOBAL_WRITABLE_FILES="
settings/xdg/kwindowsystem.categories keep-old
"
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 >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
"
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-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
}