ffmpeg: split ffplay

ffplay depends on SDL2 which has a lot of dependencies, some systems
like servers may wish to install ffmpeg without ffplay to avoid the
SDL2 dependency
This commit is contained in:
Michal Vasilek 2021-07-24 16:16:08 +02:00 committed by Érico Nogueira Rolim
parent 044021a7a0
commit fd1f941503
2 changed files with 10 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# audacity also needs to be bumped when a new ffmpeg version bumps libavformat's soname!
pkgname=ffmpeg
version=4.3.2
revision=1
revision=2
short_desc="Decoding, encoding and streaming software"
maintainer="Johannes <johannes.brechtmann@gmail.com>"
license="GPL-3.0-or-later"
@ -24,6 +24,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
$(vopt_if nvenc nv-codec-headers) $(vopt_if sndio sndio-devel)
$(vopt_if dav1d libdav1d-devel) $(vopt_if zimg zimg-devel)
$(vopt_if webp libwebp-devel) $(vopt_if sofa libmysofa-devel)"
depends="ffplay>=${version}_${revision}"
build_options="x265 v4l2 vaapi vdpau vpx faac fdk_aac aom nvenc sndio pulseaudio
dav1d zimg webp sofa"
@ -183,3 +184,10 @@ ffmpeg-devel_package() {
vmove usr/share/man/man3
}
}
ffplay_package() {
short_desc="Simple video player using FFmpeg and SDL2"
pkg_install() {
vmove usr/bin/ffplay
vmove "usr/share/man/man1/ffplay*"
}
}

1
srcpkgs/ffplay Symbolic link
View file

@ -0,0 +1 @@
ffmpeg