forked from haikuports/haikuports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libebml4-1.3.10.recipe
51 lines (43 loc) · 1.15 KB
/
libebml4-1.3.10.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
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-2019 Matroska"
LICENSE="GNU LGPL v2.1"
REVISION="4"
SOURCE_URI="$HOMEPAGE/archive/release-$portVersion.tar.gz"
CHECKSUM_SHA256="2562bb9bc3248e956a6ed1148eafe4d7d68759257133083c212d14faa8709d1e"
SOURCE_DIR="libebml-release-$portVersion"
PATCHES="libebml-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="4.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libebml4$secondaryArchSuffix = $portVersion
lib:libebml$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku${secondaryArchSuffix}
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. $cmakeDirArgs -DBUILD_SHARED_LIBS=TRUE \
-DCMAKE_BUILD_TYPE=Release
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLibs libebml
fixPkgconfig
rm -rf $developDir $libDir/cmake
}