mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
svt_av1, add version 3.0.2 (#12499)
This only comes with the encoder library
This commit is contained in:
22
media-libs/svt-av1/patches/svt_av13-3.0.2.patchset
Normal file
22
media-libs/svt-av1/patches/svt_av13-3.0.2.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From b063e96adc3000e83fcc1b35bffa13933f32decb Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Sun, 15 Jun 2025 16:41:05 +0200
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 57a9108..1f53d5d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -424,7 +424,7 @@ else()
|
||||
endif()
|
||||
if(MINGW)
|
||||
check_flags_add(C -mxsave -fno-asynchronous-unwind-tables)
|
||||
- else()
|
||||
+ elseif(NOT HAIKU)
|
||||
check_both_flags_add(-fstack-protector-strong)
|
||||
check_both_flags_add(PREPEND -fno-stack-clash-protection)
|
||||
endif()
|
||||
--
|
||||
2.48.1
|
||||
|
||||
85
media-libs/svt-av1/svt_av13-3.0.2.recipe
Normal file
85
media-libs/svt-av1/svt_av13-3.0.2.recipe
Normal file
@@ -0,0 +1,85 @@
|
||||
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,2021 Alliance for Open Media"
|
||||
LICENSE="BSD (2-clause)
|
||||
BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v$portVersion/SVT-AV1-v$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="7548a380cd58a46998ab4f1a02901ef72c37a7c6317c930cde5df2e6349e437b"
|
||||
SOURCE_DIR="SVT-AV1-v$portVersion"
|
||||
PATCHES="svt_av13-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2 ?x86"
|
||||
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_av13$secondaryArchSuffix = $portVersion
|
||||
cmd:SvtAv1EncApp$commandSuffix
|
||||
lib:libSvtAv1Enc$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
svt_av13${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libSvtAv1Enc$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
svt_av13$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS="
|
||||
svt_av1${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
cmd:yasm >= 1.2
|
||||
"
|
||||
|
||||
defineDebugInfoPackage svt_av13$secondaryArchSuffix \
|
||||
"$libDir"/libSvtAv1Enc.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
$cmakeDirArgs \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DNATIVE=OFF \
|
||||
-DUSE_CPUINFO=OFF \
|
||||
-Wno-dev
|
||||
|
||||
ninja -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C build install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libSvtAv1Enc
|
||||
fixPkgconfig strict
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user