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

104 lines
3.1 KiB
Bash

SUMMARY="Configuration dialog for desktop notificationsr"
DESCRIPTION="KNotifyConfig provides a configuration dialog for desktop \
notifications which can be embedded in your application."
HOMEPAGE="https://github.com/KDE/knotifyconfig/"
COPYRIGHT="2010-2019 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="2"
SOURCE_URI="https://github.com/KDE/knotifyconfig/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="a383ea3eb1cc798ef1860369aa29effeffde95af77bc75d3c1852682894b4f11"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
knotifyconfig$secondaryArchSuffix = $portVersion
lib:libKF5NotifyConfig$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libKF5Completion$secondaryArchSuffix
lib:libKF5ConfigCore$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5I18n$secondaryArchSuffix
lib:libKF5JobWidgets$secondaryArchSuffix
lib:libKF5KIOCore$secondaryArchSuffix
lib:libKF5KIOWidgets$secondaryArchSuffix
lib:libKF5Service$secondaryArchSuffix
lib:libKF5WidgetsAddons$secondaryArchSuffix
lib:libphonon4qt5experimental$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
PROVIDES_devel="
knotifyconfig${secondaryArchSuffix}_devel = $portVersion
devel:libKF5NotifyConfig$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
knotifyconfig$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libKF5Auth$secondaryArchSuffix == $portVersion
devel:libKF5Bookmarks$secondaryArchSuffix == $portVersion
devel:libKF5Codecs$secondaryArchSuffix == $portVersion
devel:libKF5Completion$secondaryArchSuffix == $portVersion
devel:libKF5ConfigCore$secondaryArchSuffix == $portVersion
devel:libKF5ConfigWidgets$secondaryArchSuffix == $portVersion
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
devel:libKF5I18n$secondaryArchSuffix == $portVersion
devel:libKF5ItemViews$secondaryArchSuffix == $portVersion
devel:libKF5JobWidgets$secondaryArchSuffix == $portVersion
devel:libKF5KIOCore$secondaryArchSuffix == $portVersion
devel:libKF5Notifications$secondaryArchSuffix == $portVersion
devel:libKF5Service$secondaryArchSuffix == $portVersion
devel:libKF5Solid$secondaryArchSuffix == $portVersion
devel:libKF5WidgetsAddons$secondaryArchSuffix == $portVersion
devel:libKF5XmlGui$secondaryArchSuffix == $portVersion
devel:libQt5Core$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
cmd:python2
"
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5NotifyConfig
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}