FFMPEG: enable some 3rdparty libs (#5741)

* FFMPEG: enable some 3rdparty libs
This commit is contained in:
extrowerk
2021-03-03 15:20:36 +01:00
committed by GitHub
parent 0d082ba183
commit 04d9c75243

View File

@@ -6,7 +6,7 @@ HOMEPAGE="https://ffmpeg.org/"
COPYRIGHT="2000-2003 Fabrice Bellard
2003-2019 the FFmpeg developers"
LICENSE="GNU LGPL v3"
REVISION="8"
REVISION="9"
SOURCE_URI="https://ffmpeg.org/releases/ffmpeg-$portVersion.tar.xz"
CHECKSUM_SHA256="cb754255ab0ee2ea5f66f8850e1bd6ad5cac1cd855d0a2f4990fb8c668b0d29c"
PATCHES="ffmpeg-$portVersion.patchset"
@@ -63,9 +63,37 @@ 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:libgdk_pixbuf_2.0$secondaryArchSuffix
lib:libgme$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix
# lib:libglib_2.0$secondaryArchSuffix
# lib:libgobject_2.0$secondaryArchSuffix
lib:libopenjp2$secondaryArchSuffix
lib:libopenmpt$secondaryArchSuffix
# lib:librsvg_2$secondaryArchSuffix
# lib:librubberband$secondaryArchSuffix
lib:libsnappy$secondaryArchSuffix
lib:libsoxr$secondaryArchSuffix
# lib:libSvtAv1Dec$secondaryArchSuffix
# lib:libtesseract$secondaryArchSuffix
# lib:libvmaf$secondaryArchSuffix
lib:libvpx$secondaryArchSuffix
lib:libwavpack$secondaryArchSuffix
lib:libwebp$secondaryArchSuffix
# lib:libx264$secondaryArchSuffix
# lib:libx265$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:liblzma$secondaryArchSuffix
"
fi
CONFLICTS="
@@ -89,9 +117,9 @@ REQUIRES_avdevice="
PROVIDES_tools="
ffmpeg${secondaryArchSuffix}_tools = $portVersion
cmd:ffmpeg = $portVersionCompat
cmd:ffplay = $portVersionCompat
cmd:ffprobe = $portVersionCompat
cmd:ffmpeg$secondaryArchSuffix = $portVersionCompat
cmd:ffplay$secondaryArchSuffix = $portVersionCompat
cmd:ffprobe$secondaryArchSuffix = $portVersionCompat
"
REQUIRES_tools="
haiku$secondaryArchSuffix
@@ -158,9 +186,35 @@ 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:libgdk_pixbuf_2.0$secondaryArchSuffix
devel:libgme$secondaryArchSuffix
devel:libgmp$secondaryArchSuffix
devel:libopenjp2$secondaryArchSuffix
devel:libopenmpt$secondaryArchSuffix
# devel:librsvg_2$secondaryArchSuffix
# devel:librubberband$secondaryArchSuffix
devel:libsnappy$secondaryArchSuffix
devel:libsoxr$secondaryArchSuffix
# devel:libSvtAv1Dec$secondaryArchSuffix
# devel:libtesseract$secondaryArchSuffix
# devel:libvmaf$secondaryArchSuffix
devel:libvpx$secondaryArchSuffix
devel:libwavpack$secondaryArchSuffix
devel:libwebp$secondaryArchSuffix
# devel:libx264$secondaryArchSuffix
# devel:libx265$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:liblzma$secondaryArchSuffix
"
fi
BUILD_PREREQUIRES="
@@ -231,7 +285,23 @@ BUILD()
export CFLAGS="-isystem$(pwd) -isystem$(pwd)/os -isystem$(pwd)/config"
export LDFLAGS="$baseLDFLAGS $(pwd)/gcc_runtime.o"
else
extraArgs="--enable-libdav1d --enable-libopenmpt --enable-libvpx"
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-libwavpack \
--enable-libwebp \
--enable-libxml2 \
--enable-lzma"
fi
# not an autotools configure