mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
60 lines
1.4 KiB
Bash
60 lines
1.4 KiB
Bash
SUMMARY="A library to parse Matroska files"
|
|
DESCRIPTION="libmatroska is a C++ libary to parse Matroska files."
|
|
HOMEPAGE="https://www.matroska.org/"
|
|
COPYRIGHT="2003-2019 Matroska"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://dl.matroska.org/downloads/libmatroska/libmatroska-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="bc4479aa8422ab07643df6a1fa5a19e4bed4badfd41ca77e081628620d1e1990"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libmatroska$secondaryArchSuffix = $portVersion
|
|
lib:libmatroska$secondaryArchSuffix = 7.0.0 compat >= 7
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
lib:libebml$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libmatroska${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmatroska$secondaryArchSuffix = 7.0.0 compat >= 7
|
|
"
|
|
REQUIRES_devel="
|
|
libmatroska$secondaryArchSuffix == $portVersion base
|
|
devel:libebml$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libebml$secondaryArchSuffix >= 5
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build && cd build
|
|
cmake .. $cmakeDirArgs -DBUILD_SHARED_LIBS=TRUE \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLibs libmatroska
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir $libDir/cmake
|
|
}
|