Files
haikuports/kde-frameworks/kconfig/kconfig-5.46.0.recipe
2018-05-13 19:46:48 +03:00

94 lines
2.5 KiB
Bash

SUMMARY="Persistent platform-independent application settings"
DESCRIPTION="KConfig provides an advanced configuration system. It is made \
of two parts: KConfigCore and KConfigGui.
KConfigCore provides access to the configuration files themselves. It features:
* Code generation: describe your configuration in an XML file, and use \
kconfig_compiler to generate classes that read and write configuration \
entries.
* Cascading configuration files (global settings overridden by local settings).
* Optional shell expansion support (see [docs/options.md](@ref options)).
* The ability to lock down configuration options (see [docs/options.md](@ref \
options)).
KConfigGui provides a way to hook widgets to the configuration so that they \
are automatically initialized from the configuration and automatically \
propagate their changes to their respective configuration files."
HOMEPAGE="https://github.com/KDE/kconfig/"
COPYRIGHT="2010-2018 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/kconfig/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="ebd60e6cf40c848f13d4fe271d00d3ff7ae1e1e552325ffa866883b860cad2e3"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kconfig$secondaryArchSuffix = $portVersion
cmd:kreadconfig5$secondaryArchSuffix = $portVersion
cmd:kwriteconfig5$secondaryArchSuffix = $portVersion
lib:libKF5ConfigCore$secondaryArchSuffix = $portVersion compat >= 5
lib:libKF5ConfigGui$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
"
PROVIDES_devel="
kconfig${secondaryArchSuffix}_devel = $portVersion
devel:libKF5ConfigCore$secondaryArchSuffix = $portVersion compat >= 5
devel:libKF5ConfigGui$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kconfig$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
extra_cmake_modules >= 5.46
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
"
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 \
libKF5ConfigCore \
libKF5ConfigGui
fixPkgconfig
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}