Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/ffmpeg/
Date: Mon, 19 Aug 2019 16:41:20
Message-Id: 1566232859.655e4810e32870dbcc50b2e11f300fdc49ea5d30.aballier@gentoo
1 commit: 655e4810e32870dbcc50b2e11f300fdc49ea5d30
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 19 14:51:19 2019 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 19 16:40:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=655e4810
7
8 media-video/ffmpeg: add cuda useflag.
9
10 Based on a patch by Timo Rothenpieler.
11
12 Closes: https://bugs.gentoo.org/595450
13
14 Package-Manager: Portage-2.3.71, Repoman-2.3.17
15 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
16
17 media-video/ffmpeg/ffmpeg-9999.ebuild | 6 ++++--
18 media-video/ffmpeg/metadata.xml | 1 +
19 2 files changed, 5 insertions(+), 2 deletions(-)
20
21 diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild
22 index 75bc08762ec..ac797b13647 100644
23 --- a/media-video/ffmpeg/ffmpeg-9999.ebuild
24 +++ b/media-video/ffmpeg/ffmpeg-9999.ebuild
25 @@ -80,7 +80,7 @@ FFMPEG_FLAG_MAP=(
26 vorbis:libvorbis vpx:libvpx zvbi:libzvbi
27 # libavfilter options
28 appkit
29 - bs2b:libbs2b chromaprint flite:libflite frei0r
30 + bs2b:libbs2b chromaprint cuda:cuda-llvm flite:libflite frei0r
31 fribidi:libfribidi fontconfig ladspa libass lv2 truetype:libfreetype vidstab:libvidstab
32 rubberband:librubberband zeromq:libzmq zimg:libzimg
33 # libswresample options
34 @@ -278,9 +278,10 @@ DEPEND="${RDEPEND}
35 "
36 BDEPEND="
37 >=sys-devel/make-3.81
38 - doc? ( sys-apps/texinfo )
39 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
40 cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) )
41 + cuda? ( >=sys-devel/clang-7[llvm_targets_NVPTX] )
42 + doc? ( sys-apps/texinfo )
43 test? ( net-misc/wget sys-devel/bc )
44 "
45
46 @@ -298,6 +299,7 @@ GPL_REQUIRED_USE="
47 )
48 "
49 REQUIRED_USE="
50 + cuda? ( video_cards_nvidia )
51 libv4l? ( v4l )
52 fftools_cws2fws? ( zlib )
53 test? ( encode )
54
55 diff --git a/media-video/ffmpeg/metadata.xml b/media-video/ffmpeg/metadata.xml
56 index 556156808d6..fbc47af1d13 100644
57 --- a/media-video/ffmpeg/metadata.xml
58 +++ b/media-video/ffmpeg/metadata.xml
59 @@ -19,6 +19,7 @@
60 <flag name="chromium">Builds libffmpeg.so to enable media playback in Chromium-based browsers like Opera and Vivaldi.</flag>
61 <flag name="codec2">Enables codec2 low bit rate speech codec support via <pkg>media-libs/codec2</pkg>.</flag>
62 <flag name="cpudetection">Enables runtime CPU detection (useful for bindist, compatibility on other CPUs)</flag>
63 + <flag name="cuda">Enables CUDA-based acceleration. Mostly used for specific filters.</flag>
64 <flag name="dav1d">Enables AV1 decoding via<pkg>media-libs/dav1d</pkg>.</flag>
65 <flag name="ebur128">Enables EBU R128 loudness normalization filter via <pkg>media-libs/libebur128</pkg></flag>
66 <flag name="fdk">Use external fdk-aac library for AAC encoding</flag>