forked from haikuports/haikuports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libebml-1.4.4.recipe
59 lines (50 loc) · 1.35 KB
/
libebml-1.4.4.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
SUMMARY="A C++ library to parse EBML content (read/write)"
DESCRIPTION="libebml is a C++ library to parse EBML content (read/write)."
HOMEPAGE="https://github.com/Matroska-Org/libebml/"
COPYRIGHT="2005-2023 Matroska"
LICENSE="GNU LGPL v2.1"
REVISION="5"
SOURCE_URI="$HOMEPAGE/archive/release-$portVersion.tar.gz"
CHECKSUM_SHA256="3b30d89a5699fef4bdf5b4d7de7a1c94d9be47fababf9caca59250282f051283"
SOURCE_DIR="libebml-release-$portVersion"
PATCHES="libebml-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="5.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libebml$secondaryArchSuffix = $portVersion
lib:libebml$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku${secondaryArchSuffix}
"
PROVIDES_devel="
libebml${secondaryArchSuffix}_devel = $portVersion
devel:libebml$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libebml$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -B build $cmakeDirArgs -DBUILD_SHARED_LIBS=TRUE \
-DCMAKE_BUILD_TYPE=Release
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib libebml
fixPkgconfig
packageEntries devel $developDir $libDir/cmake
}