Files
haikuports/dev-libs/libeconf/libeconf-0.5.2.recipe
2023-10-25 06:51:03 +00:00

78 lines
1.6 KiB
Bash

SUMMARY="Enhanced config file parser"
DESCRIPTION="libeconf is a highly flexible and configureable library to parse and manage \
key=value configuration files.
It reads configuration file snippets from different directories and builds the final \
configuration file for the application from it."
HOMEPAGE="https://github.com/openSUSE/libeconf"
COPYRIGHT="2019 SUSE LLC"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/openSUSE/libeconf/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="c9aa04b7ef1c7312a6e045184d15465db1985abb4058cc4c562fd33c9876bb34"
SOURCE_FILENAME="libeconf-v$portVersion.tar.gz"
PATCHES="libeconf-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libeconf$secondaryArchSuffix = $portVersion
cmd:econftool = $portVersion
lib:libeconf$secondaryArchSuffix = 0.3.1
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libeconf${secondaryArchSuffix}_devel = $portVersion
devel:libeconf$secondaryArchSuffix = 0.3.1
"
REQUIRES_devel="
libeconf$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:dot
cmd:doxygen
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
export LDFLAGS="-lbsd"
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DBUILD_DOCUMENTATION=ON
make -C build $jobArgs
make -C build doc
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib \
libeconf
fixPkgconfig
packageEntries devel \
$developDir \
$docDir \
$libDir/cmake \
$manDir/man3
# cleanup
rm -r $documentationDir/packages
}
TEST()
{
make check
}