mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
svt-av1: new recipe
This commit is contained in:
79
media-libs/svt-av1/svt_av1-0.8.6.recipe
Normal file
79
media-libs/svt-av1/svt_av1-0.8.6.recipe
Normal file
@@ -0,0 +1,79 @@
|
||||
SUMMARY="An AV1-compliant encoder/decoder library core"
|
||||
DESCRIPTION="The Scalable Video Technology for AV1 (SVT-AV1 Encoder and \
|
||||
Decoder) is an AV1-compliant encoder/decoder library core. The SVT-AV1 encoder\
|
||||
development is a work-in-progress targeting performance levels applicable to \
|
||||
both VOD and Live encoding / transcoding video applications. The SVT-AV1 \
|
||||
decoder implementation is targeting future codec research activities."
|
||||
HOMEPAGE="https://github.com/AOMediaCodec/SVT-AV1"
|
||||
COPYRIGHT="2019, Alliance for Open Media"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/AOMediaCodec/SVT-AV1/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="951ffc240ceecd94c6cd94e53c81217c4333219a868cbf477a9eedaf0ed1c388"
|
||||
SOURCE_DIR="SVT-AV1-$portVersion"
|
||||
PATCHES="svt_av1-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
commandBinDir=$binDir
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
svt_av1$secondaryArchSuffix = $portVersion
|
||||
cmd:SvtAv1DecApp$commandSuffix
|
||||
cmd:SvtAv1EncApp$commandSuffix
|
||||
lib:libSvtAv1Dec$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libSvtAv1Enc$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
svt_av1${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libSvtAv1Dec$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libSvtAv1Enc$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
svt_av1$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
cmd:yasm >= 1.2
|
||||
"
|
||||
|
||||
defineDebugInfoPackage svt_av1$secondaryArchSuffix \
|
||||
"$libDir"/libSvtAv1Dec.so.$libVersion \
|
||||
"$libDir"/libSvtAv1Enc.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -G Ninja \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DNATIVE=OFF \
|
||||
$cmakeDirArgs
|
||||
ninja -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C build install
|
||||
|
||||
prepareInstalledDevelLibs libSvtAv1Dec libSvtAv1Enc
|
||||
fixPkgconfig strict
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
Reference in New Issue
Block a user