forked from haikuports/haikuports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libeconf-0.5.2.recipe
77 lines (67 loc) · 1.61 KB
/
libeconf-0.5.2.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
}