Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions srcpkgs/ffmpeg6/template
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ makedepends="zlib-devel bzip2-devel freetype-devel alsa-lib-devel libXfixes-deve
zimg-devel libmysofa-devel libsvt-av1-devel libjxl-devel
$(vopt_if vdpau libvdpau-devel) $(vopt_if fdk_aac fdk-aac-devel)
$(vopt_if libvpl libvpl-devel) $(vopt_if nvcodec nv-codec-headers)
$(vopt_if vaapi libva-devel)"
$(vopt_if vaapi libva-devel) $(vopt_if rav1e rav1e-devel)"
depends="ffplay6>=${version}_${revision}"
short_desc="Decoding, encoding and streaming software"
maintainer="Orphaned <orphan@voidlinux.org>"
Expand All @@ -25,8 +25,9 @@ changelog="https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/Changelog"
distfiles="https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"
checksum=d4fcb164028dd3beee5d92c0ac72e46aac6973c75ea12dc14de07bf8f407370a

build_options="vaapi vdpau fdk_aac nvcodec libvpl"
build_options="vaapi vdpau fdk_aac nvcodec libvpl rav1e"
desc_option_sofa="Enable support for AES SOFA"
desc_option_rav1e="Enable support for the rav1e encoder"

case "$XBPS_TARGET_MACHINE" in
i686*)
Expand All @@ -35,7 +36,7 @@ case "$XBPS_TARGET_MACHINE" in
;;
x86_64*)
hostmakedepends+=" nasm"
build_options_default+=" vaapi vdpau nvcodec libvpl"
build_options_default+=" vaapi vdpau nvcodec libvpl rav1e"
;;
ppc64*) build_options_default+=" vaapi vdpau";;
mips*) CFLAGS="-mnan=legacy";;
Expand Down Expand Up @@ -107,7 +108,8 @@ do_configure() {
$(vopt_enable sofa libmysofa) \
$(vopt_enable libvpl libvpl) \
$(vopt_enable nvcodec nvenc) \
$(vopt_enable nvcodec nvdec)
$(vopt_enable nvcodec nvdec) \
$(vopt_enable rav1e librav1e)
}

do_build() {
Expand Down
Loading