mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
79 lines
1.8 KiB
Bash
79 lines
1.8 KiB
Bash
SUMMARY="A new AV1 cross-platform decoder"
|
|
DESCRIPTION="dav1d is a new AV1 cross-platform decoder, open-source, \
|
|
and focused on speed and correctness. It supports all features from AV1, \
|
|
including all subsampling and bit-depth parameters."
|
|
HOMEPAGE="https://code.videolan.org/videolan/dav1d"
|
|
COPYRIGHT="2018-2019, VideoLAN and dav1d authors"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="https://code.videolan.org/videolan/dav1d/-/archive/$portVersion/dav1d-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="9eac4f50089f54a9f562827bda4a21187d68c01d8b20055eef1d7efca9f84cf8"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64 ?arm ?ppc"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="4.0.2"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
dav1d$secondaryArchSuffix = $portVersion
|
|
cmd:dav1d$commandSuffix
|
|
lib:libdav1d$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
dav1d${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libdav1d$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
dav1d$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:meson >= 0.47
|
|
cmd:nasm >= 2.13.02
|
|
cmd:ninja
|
|
"
|
|
|
|
defineDebugInfoPackage dav1d$secondaryArchSuffix \
|
|
"$libDir"/libdav1d.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
meson build \
|
|
--buildtype debugoptimized \
|
|
--prefix $prefix \
|
|
--bindir $commandBinDir \
|
|
--libdir $libDir \
|
|
--includedir $includeDir
|
|
ninja -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
prepareInstalledDevelLib libdav1d
|
|
fixPkgconfig
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ninja -C build test
|
|
}
|