ffmpeg5: Bump version, add lots more libraries.

This commit is contained in:
Augustin Cavalier
2022-07-11 13:37:43 -04:00
parent 40af0f0391
commit 98ed43a4c6
2 changed files with 79 additions and 4 deletions

View File

@@ -8,13 +8,13 @@ COPYRIGHT="2000-2003 Fabrice Bellard
LICENSE="GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://ffmpeg.org/releases/ffmpeg-$portVersion.tar.xz"
CHECKSUM_SHA256="51e919f7d205062c0fd4fae6243a84850391115104ccf1efc451733bc0ac7298"
CHECKSUM_SHA256="ef2efae259ce80a240de48ec85ecb062cecca26e4352ffb3fda562c21a93007b"
PATCHES="ffmpeg-$portVersion.patchset"
SOURCE_DIR="ffmpeg-$portVersion"
ADDITIONAL_FILES="gcc_runtime.c"
ARCHITECTURES="all ?x86 ?x86_gcc2"
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
ffmpegLibs="\
libavcodec \
@@ -50,8 +50,10 @@ PROVIDES="
REQUIRES="
haiku$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libmp3lame$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libopus$secondaryArchSuffix
lib:libspeex$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libtheoradec$secondaryArchSuffix
@@ -62,10 +64,39 @@ REQUIRES="
"
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
REQUIRES+="
lib:libass$secondaryArchSuffix
# lib:libbluray$secondaryArchSuffix
# lib:libbs2b$secondaryArchSuffix
# lib:libcaca$secondaryArchSuffix
# lib:libcairo$secondaryArchSuffix
lib:libdav1d$secondaryArchSuffix
lib:libfdk_aac$secondaryArchSuffix
lib:libfontconfig$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libfribidi$secondaryArchSuffix
lib:libgme$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix
lib:libopenjp2$secondaryArchSuffix
lib:libopenmpt$secondaryArchSuffix
# lib:librubberband$secondaryArchSuffix
lib:libsnappy$secondaryArchSuffix
lib:libsoxr$secondaryArchSuffix
# lib:libSvtAv1Dec$secondaryArchSuffix
# lib:libtesseract$secondaryArchSuffix
# lib:libvmaf$secondaryArchSuffix
lib:libvpx$secondaryArchSuffix
lib:libwebp$secondaryArchSuffix
# lib:libx264$secondaryArchSuffix
# lib:libx265$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:liblzma$secondaryArchSuffix
"
fi
CONFLICTS="
ffmpeg_legacy$secondaryArchSuffix
ffmpeg${secondaryArchSuffix}_bin
ffmpeg2${secondaryArchSuffix}_bin
"
PROVIDES_avdevice="
ffmpeg5${secondaryArchSuffix}_avdevice = $portVersionCompat
@@ -115,7 +146,9 @@ REQUIRES_devel="
devel:libspeex$secondaryArchSuffix
"
CONFLICTS_devel="
ffmpeg_legacy${secondaryArchSuffix}_devel
ffmpeg${secondaryArchSuffix}_devel
ffmpeg2${secondaryArchSuffix}_devel
"
# -- HACK! --
@@ -139,8 +172,10 @@ fi
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libmp3lame$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libopus$secondaryArchSuffix
devel:libsdl2$secondaryArchSuffix
devel:libspeex$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
@@ -150,8 +185,32 @@ BUILD_REQUIRES="
"
if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
BUILD_REQUIRES+="
devel:libass$secondaryArchSuffix
# devel:libbluray$secondaryArchSuffix
# devel:libbs2b$secondaryArchSuffix
# devel:libcaca$secondaryArchSuffix
# devel:libcairo$secondaryArchSuffix
devel:libdav1d$secondaryArchSuffix
devel:libfdk_aac$secondaryArchSuffix
devel:libfontconfig$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libfribidi$secondaryArchSuffix
devel:libgme$secondaryArchSuffix
devel:libgmp$secondaryArchSuffix
devel:libopenjp2$secondaryArchSuffix
devel:libopenmpt$secondaryArchSuffix
# devel:librubberband$secondaryArchSuffix
devel:libsnappy$secondaryArchSuffix
devel:libsoxr$secondaryArchSuffix
# devel:libSvtAv1Dec$secondaryArchSuffix
# devel:libtesseract$secondaryArchSuffix
# devel:libvmaf$secondaryArchSuffix
devel:libvpx$secondaryArchSuffix
devel:libwebp$secondaryArchSuffix
# devel:libx264$secondaryArchSuffix
# devel:libx265$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:liblzma$secondaryArchSuffix
"
fi
BUILD_PREREQUIRES="
@@ -222,7 +281,22 @@ BUILD()
export CFLAGS="-isystem$(pwd) -isystem$(pwd)/os -isystem$(pwd)/config"
export LDFLAGS="$baseLDFLAGS $(pwd)/gcc_runtime.o"
else
extraArgs="--enable-libvpx --enable-libopenmpt"
extraArgs="--enable-libass \
--enable-libdav1d \
--enable-libfdk-aac \
--enable-fontconfig \
--enable-libfreetype \
--enable-libfribidi \
--enable-libgme \
--enable-gmp \
--enable-libopenjpeg \
--enable-libopenmpt \
--enable-libsnappy \
--enable-libsoxr \
--enable-libvpx \
--enable-libwebp \
--enable-libxml2 \
--enable-lzma"
fi
# not an autotools configure
@@ -245,6 +319,7 @@ BUILD()
--enable-libspeex \
--enable-libtheora \
--enable-libmp3lame \
--enable-libopus \
$extraArgs
make $jobArgs