mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 07:10:05 +02:00
60 lines
1.4 KiB
Bash
60 lines
1.4 KiB
Bash
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
|
|
}
|