1 |
commit: 1265a159743d7f07185acba421e98d46f2cd5fc1 |
2 |
Author: Mike Lothian <mike <AT> fireburn <DOT> co <DOT> uk> |
3 |
AuthorDate: Sat Apr 30 14:27:28 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 15:15:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1265a159 |
7 |
|
8 |
media-libs/mesa: Add USE flag to enable proprietary codecs |
9 |
|
10 |
Since https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15258 |
11 |
patent encumbered codes have been disabled as default |
12 |
|
13 |
Use the chromium flag proprietary-codecs to reenable them for those that |
14 |
want them |
15 |
|
16 |
Closes: https://github.com/gentoo/gentoo/pull/25268 |
17 |
Signed-off-by: Mike Lothian <mike <AT> fireburn.co.uk> |
18 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
19 |
|
20 |
media-libs/mesa/mesa-9999.ebuild | 4 +++- |
21 |
media-libs/mesa/metadata.xml | 1 + |
22 |
2 files changed, 4 insertions(+), 1 deletion(-) |
23 |
|
24 |
diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild |
25 |
index a01a3030e452..1946beb71fda 100644 |
26 |
--- a/media-libs/mesa/mesa-9999.ebuild |
27 |
+++ b/media-libs/mesa/mesa-9999.ebuild |
28 |
@@ -34,7 +34,8 @@ done |
29 |
|
30 |
IUSE="${IUSE_VIDEO_CARDS} |
31 |
cpu_flags_x86_sse2 d3d9 debug gles1 +gles2 +llvm |
32 |
- lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan |
33 |
+ lm-sensors opencl osmesa +proprietary-codecs selinux |
34 |
+ test unwind vaapi valgrind vdpau vulkan |
35 |
vulkan-overlay wayland +X xa xvmc zink +zstd" |
36 |
|
37 |
REQUIRED_USE=" |
38 |
@@ -434,6 +435,7 @@ multilib_src_configure() { |
39 |
$(meson_feature zstd) |
40 |
$(meson_use cpu_flags_x86_sse2 sse2) |
41 |
-Dvalgrind=$(usex valgrind auto disabled) |
42 |
+ -Dvideo-codecs=$(usex proprietary-codecs "h264dec,h264enc,h265dec,h265enc,vc1dec" "") |
43 |
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}") |
44 |
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}") |
45 |
--buildtype $(usex debug debug plain) |
46 |
|
47 |
diff --git a/media-libs/mesa/metadata.xml b/media-libs/mesa/metadata.xml |
48 |
index 2b18aba1b084..ccfa51c3b7c0 100644 |
49 |
--- a/media-libs/mesa/metadata.xml |
50 |
+++ b/media-libs/mesa/metadata.xml |
51 |
@@ -17,6 +17,7 @@ |
52 |
<flag name="lm-sensors">Enable Gallium HUD lm-sensors support.</flag> |
53 |
<flag name="opencl">Enable the Clover Gallium OpenCL state tracker.</flag> |
54 |
<flag name="osmesa">Build the Mesa library for off-screen rendering.</flag> |
55 |
+ <flag name="proprietary-codecs">Enable codecs for patent-encumbered audio and video formats.</flag> |
56 |
<flag name="valgrind">Compile in valgrind memory hints</flag> |
57 |
<flag name="vdpau">Enable the VDPAU acceleration interface for the Gallium3D Video Layer.</flag> |
58 |
<flag name="vulkan">Enable Vulkan drivers</flag> |