ffmpeg: update to 4.4.4.

This commit is contained in:
triallax 2023-04-20 20:44:01 +01:00 committed by Andrew J. Hesford
parent 1e75279b4c
commit b62c53fc58

View file

@ -1,17 +1,17 @@
# Template file for 'ffmpeg' # Template file for 'ffmpeg'
# audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname! # audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
pkgname=ffmpeg pkgname=ffmpeg
version=4.4.3 version=4.4.4
revision=2 revision=1
short_desc="Decoding, encoding and streaming software" short_desc="Decoding, encoding and streaming software"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
homepage="https://www.ffmpeg.org" homepage="https://www.ffmpeg.org"
changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog" changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz" distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
checksum=6c5b6c195e61534766a0b5fe16acc919170c883362612816d0a1c7f4f947006e checksum=e80b380d595c809060f66f96a5d849511ef4a76a26b76eacf5778b94c3570309
hostmakedepends="pkg-config perl yasm" hostmakedepends="pkg-config perl"
makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-devel
libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel libXext-devel libXvMC-devel libxcb-devel lame-devel libtheora-devel
libvorbis-devel x264-devel xvidcore-devel jack-devel SDL2-devel libvorbis-devel x264-devel xvidcore-devel jack-devel SDL2-devel
@ -39,7 +39,10 @@ desc_option_sofa="Enable support for AES SOFA"
desc_option_webp="Enable support for WebP" desc_option_webp="Enable support for WebP"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) build_options_default+=" vaapi vdpau nvenc nvdec";; i686*|x86_64*)
hostmakedepends+=" nasm"
build_options_default+=" vaapi vdpau nvenc nvdec"
;;
ppc64*) build_options_default+=" vaapi vdpau";; ppc64*) build_options_default+=" vaapi vdpau";;
mips*) CFLAGS="-mnan=legacy";; mips*) CFLAGS="-mnan=legacy";;
esac esac
@ -71,7 +74,7 @@ post_patch() {
do_configure() { do_configure() {
# Fix gcc on x86_64-musl only # Fix gcc on x86_64-musl only
if [ "$XBPS_TARGET_MACHINE" = "x86_64-musl" ]; then if [ "$XBPS_TARGET_MACHINE" = "x86_64-musl" ]; then
sed -i configure -e "s;_cflags_speed='-O3';_cflags_speed='-O2';" vsed -i configure -e "s;_cflags_speed='-O3';_cflags_speed='-O2';"
fi fi
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
@ -127,10 +130,12 @@ do_configure() {
$(vopt_if nvenc '--enable-nvenc') \ $(vopt_if nvenc '--enable-nvenc') \
$(vopt_if nvdec '--enable-nvdec') $(vopt_if nvdec '--enable-nvdec')
} }
do_build() { do_build() {
make ${makejobs} make ${makejobs}
make doc/ff{mpeg,play}.1 make doc/ff{mpeg,play}.1
} }
do_install() { do_install() {
make DESTDIR=${DESTDIR} install install-man make DESTDIR=${DESTDIR} install install-man
} }
@ -141,54 +146,63 @@ libavcodec_package() {
vmove "usr/lib/libavcodec.so.*" vmove "usr/lib/libavcodec.so.*"
} }
} }
libavdevice_package() { libavdevice_package() {
short_desc="FFmpeg device handling library" short_desc="FFmpeg device handling library"
pkg_install() { pkg_install() {
vmove "usr/lib/libavdevice.so.*" vmove "usr/lib/libavdevice.so.*"
} }
} }
libavresample_package() { libavresample_package() {
short_desc="FFmpeg audio resampling library" short_desc="FFmpeg audio resampling library"
pkg_install() { pkg_install() {
vmove "usr/lib/libavresample.so.*" vmove "usr/lib/libavresample.so.*"
} }
} }
libavformat_package() { libavformat_package() {
short_desc="FFmpeg file format library" short_desc="FFmpeg file format library"
pkg_install() { pkg_install() {
vmove "usr/lib/libavformat.so.*" vmove "usr/lib/libavformat.so.*"
} }
} }
libavutil_package() { libavutil_package() {
short_desc="FFmpeg utility library" short_desc="FFmpeg utility library"
pkg_install() { pkg_install() {
vmove "usr/lib/libavutil.so.*" vmove "usr/lib/libavutil.so.*"
} }
} }
libavfilter_package() { libavfilter_package() {
short_desc="FFmpeg audio/video filter library" short_desc="FFmpeg audio/video filter library"
pkg_install() { pkg_install() {
vmove "usr/lib/libavfilter.so.*" vmove "usr/lib/libavfilter.so.*"
} }
} }
libpostproc_package() { libpostproc_package() {
short_desc="FFmpeg video postprocessing library" short_desc="FFmpeg video postprocessing library"
pkg_install() { pkg_install() {
vmove "usr/lib/libpostproc.so.*" vmove "usr/lib/libpostproc.so.*"
} }
} }
libswscale_package() { libswscale_package() {
short_desc="FFmpeg video scaling library" short_desc="FFmpeg video scaling library"
pkg_install() { pkg_install() {
vmove "usr/lib/libswscale.so.*" vmove "usr/lib/libswscale.so.*"
} }
} }
libswresample_package() { libswresample_package() {
short_desc="FFmpeg video resampling library" short_desc="FFmpeg video resampling library"
pkg_install() { pkg_install() {
vmove "usr/lib/libswresample.so.*" vmove "usr/lib/libswresample.so.*"
} }
} }
ffmpeg-devel_package() { ffmpeg-devel_package() {
depends=" depends="
libavcodec>=${version}_${revision} libavcodec>=${version}_${revision}
@ -201,15 +215,22 @@ ffmpeg-devel_package() {
libswresample>=${version}_${revision} libswresample>=${version}_${revision}
libavresample>=${version}_${revision}" libavresample>=${version}_${revision}"
short_desc+=" - development files" short_desc+=" - development files"
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
# /usr/bin/strip: error: the input file '/destdir//ffmpeg-devel-4.4.4/usr/lib/libavfilter.a(vf_atadenoise.o)' has no sections
nostrip_files="/usr/lib/libavfilter.a"
fi
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
vmove usr/lib/*.a vmove "usr/lib/*.a"
vmove usr/lib/*.so vmove "usr/lib/*.so"
vmove usr/share/ffmpeg/examples vmove usr/share/ffmpeg/examples
vmove usr/share/man/man3 vmove usr/share/man/man3
} }
} }
ffplay_package() { ffplay_package() {
short_desc="Simple video player using FFmpeg and SDL2" short_desc="Simple video player using FFmpeg and SDL2"
pkg_install() { pkg_install() {