1 |
commit: 2d757af6460fe69486da8057e4ce50b612feee2e |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 1 00:53:46 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 1 00:55:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d757af6 |
7 |
|
8 |
media-libs/mesa: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
media-libs/mesa/Manifest | 3 - |
13 |
media-libs/mesa/mesa-20.2.6.ebuild | 556 ------------------------------------ |
14 |
media-libs/mesa/mesa-20.3.4.ebuild | 566 ------------------------------------- |
15 |
media-libs/mesa/mesa-21.0.0.ebuild | 563 ------------------------------------ |
16 |
4 files changed, 1688 deletions(-) |
17 |
|
18 |
diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest |
19 |
index dbd1fe9eef1..9371f32bcdb 100644 |
20 |
--- a/media-libs/mesa/Manifest |
21 |
+++ b/media-libs/mesa/Manifest |
22 |
@@ -1,5 +1,2 @@ |
23 |
-DIST mesa-20.2.6.tar.xz 13886924 BLAKE2B 2bc5d680979b58a77105a8058da5dfea81afe05166a44d08cf243e5760b8c66e418fd78046a2c88243f56aa85a610d052f3aaf259938668cd0f4a184e9edca46 SHA512 347b275d88c0d14cacef570ed736cac07f2e607bc4c89a16b915ec01ac57dbbe698ddf9a0ad70f034e00318403351e3c728e74c72c653acf1fc99720887fa888 |
24 |
-DIST mesa-20.3.4.tar.xz 14253372 BLAKE2B 210908f5b802b9fd0170a6f06310f39bab4aa0ca1c84914d702863f9df4d47f1720f0d3779ae804d2eef322a09f4b6cc40855efd7dc365cd84dd8f222b217998 SHA512 81c4d032213b4aef842f1594e0e89bc0045f7ca7ce5f267b62a0f8236eb12ab09c1f780d8b3776b3072f37cd0bd8829f8a1330a749ccf462471b262ef8097477 |
25 |
DIST mesa-20.3.5.tar.xz 14367412 BLAKE2B 7bad876ce702158e727a752eda6722e7165b497fd3a485dae4e989f22b13288a93f51bcd5e6a69b979f0bbe41599fa237c08f3bbb81cb9c6dc4c06827f8ad5f4 SHA512 481e710ed80d8f215a8d541cfe51b960862c2403c2b9e7e6932c8236b8decb5d478871d6c73559d6d795ada143803764f3a93b2329588c80f62e2e5ec98c78a9 |
26 |
-DIST mesa-21.0.0.tar.xz 14617108 BLAKE2B bc49b9084c2d16354235fa8ff30bc274a40dda350dc8ca5fa8d471665cd3f2a280efdf05a6ea84310beebcdb71926a64f2fd0c63391bf846c49180e13a25c151 SHA512 32f4a74fbc1456dac478fdc3a85e37cedb9ac1e1b7c5434706dc24930a70bc9e857ba6b5bf1e7e05798e259f8ff0b05bad5252c07253cb5d6a9707c7c2e147ad |
27 |
DIST mesa-21.0.1.tar.xz 14648932 BLAKE2B 70e1277336320d7b4351c72f42a72cbcb91dcbc46cc1bf30996b8895bbc30552265404508130c828b67a7d045c9f6eece5ac3d07c2443cea581774c585ba0b69 SHA512 b31b78778b6092dfaf0712f90de3074217574389c4236f8379c127739874f6bd1b47883140a26445d25e58df87e6207278efd048453096ee710d334b1dcfe419 |
28 |
|
29 |
diff --git a/media-libs/mesa/mesa-20.2.6.ebuild b/media-libs/mesa/mesa-20.2.6.ebuild |
30 |
deleted file mode 100644 |
31 |
index 16ba0eb17be..00000000000 |
32 |
--- a/media-libs/mesa/mesa-20.2.6.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,556 +0,0 @@ |
35 |
-# Copyright 1999-2020 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=7 |
39 |
- |
40 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
41 |
- |
42 |
-inherit llvm meson multilib-minimal python-any-r1 linux-info |
43 |
- |
44 |
-OPENGL_DIR="xorg-x11" |
45 |
- |
46 |
-MY_P="${P/_/-}" |
47 |
- |
48 |
-DESCRIPTION="OpenGL-like graphic library for Linux" |
49 |
-HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/" |
50 |
- |
51 |
-if [[ ${PV} == 9999 ]]; then |
52 |
- EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git" |
53 |
- inherit git-r3 |
54 |
-else |
55 |
- SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz" |
56 |
- KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
57 |
-fi |
58 |
- |
59 |
-LICENSE="MIT" |
60 |
-SLOT="0" |
61 |
-RESTRICT=" |
62 |
- !test? ( test ) |
63 |
-" |
64 |
- |
65 |
-RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi" |
66 |
-VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost v3d vc4 virgl vivante vmware" |
67 |
-for card in ${VIDEO_CARDS}; do |
68 |
- IUSE_VIDEO_CARDS+=" video_cards_${card}" |
69 |
-done |
70 |
- |
71 |
-IUSE="${IUSE_VIDEO_CARDS} |
72 |
- +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm |
73 |
- lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan |
74 |
- vulkan-overlay wayland +X xa xvmc zink +zstd" |
75 |
- |
76 |
-REQUIRED_USE=" |
77 |
- d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) ) |
78 |
- gles1? ( egl ) |
79 |
- gles2? ( egl ) |
80 |
- vulkan? ( dri3 |
81 |
- video_cards_radeonsi? ( llvm ) ) |
82 |
- vulkan-overlay? ( vulkan ) |
83 |
- wayland? ( egl gbm ) |
84 |
- video_cards_freedreno? ( gallium ) |
85 |
- video_cards_intel? ( classic ) |
86 |
- video_cards_i915? ( || ( classic gallium ) ) |
87 |
- video_cards_i965? ( classic ) |
88 |
- video_cards_iris? ( gallium ) |
89 |
- video_cards_lima? ( gallium ) |
90 |
- video_cards_nouveau? ( || ( classic gallium ) ) |
91 |
- video_cards_panfrost? ( gallium ) |
92 |
- video_cards_radeon? ( || ( classic gallium ) |
93 |
- gallium? ( x86? ( llvm ) amd64? ( llvm ) ) ) |
94 |
- video_cards_r100? ( classic ) |
95 |
- video_cards_r200? ( classic ) |
96 |
- video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) ) |
97 |
- video_cards_r600? ( gallium ) |
98 |
- video_cards_radeonsi? ( gallium llvm ) |
99 |
- video_cards_v3d? ( gallium ) |
100 |
- video_cards_vc4? ( gallium ) |
101 |
- video_cards_virgl? ( gallium ) |
102 |
- video_cards_vivante? ( gallium gbm ) |
103 |
- video_cards_vmware? ( gallium ) |
104 |
- xa? ( X ) |
105 |
- xvmc? ( X ) |
106 |
- zink? ( gallium vulkan ) |
107 |
-" |
108 |
- |
109 |
-LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100" |
110 |
-RDEPEND=" |
111 |
- >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] |
112 |
- >=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}] |
113 |
- >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}] |
114 |
- gallium? ( |
115 |
- unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] ) |
116 |
- llvm? ( |
117 |
- video_cards_radeonsi? ( |
118 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
119 |
- ) |
120 |
- video_cards_r600? ( |
121 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
122 |
- ) |
123 |
- video_cards_radeon? ( |
124 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
125 |
- ) |
126 |
- ) |
127 |
- lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] ) |
128 |
- opencl? ( |
129 |
- >=virtual/opencl-3[${MULTILIB_USEDEP}] |
130 |
- dev-libs/libclc |
131 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
132 |
- ) |
133 |
- vaapi? ( |
134 |
- >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}] |
135 |
- ) |
136 |
- vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] ) |
137 |
- xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] ) |
138 |
- ) |
139 |
- selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] ) |
140 |
- wayland? ( |
141 |
- >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}] |
142 |
- >=dev-libs/wayland-protocols-1.8 |
143 |
- ) |
144 |
- ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}] |
145 |
- video_cards_intel? ( |
146 |
- !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
147 |
- ) |
148 |
- video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
149 |
- vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] ) |
150 |
- X? ( |
151 |
- >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] |
152 |
- >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] |
153 |
- >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}] |
154 |
- >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] |
155 |
- >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] |
156 |
- >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}] |
157 |
- x11-libs/libXfixes:=[${MULTILIB_USEDEP}] |
158 |
- ) |
159 |
- zink? ( media-libs/vulkan-loader:=[${MULTILIB_USEDEP}] ) |
160 |
- zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] ) |
161 |
-" |
162 |
-for card in ${RADEON_CARDS}; do |
163 |
- RDEPEND="${RDEPEND} |
164 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) |
165 |
- " |
166 |
-done |
167 |
-RDEPEND="${RDEPEND} |
168 |
- video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] ) |
169 |
-" |
170 |
- |
171 |
-# Please keep the LLVM dependency block separate. Since LLVM is slotted, |
172 |
-# we need to *really* make sure we're not pulling one than more slot |
173 |
-# simultaneously. |
174 |
-# |
175 |
-# How to use it: |
176 |
-# 1. List all the working slots (with min versions) in ||, newest first. |
177 |
-# 2. Update the := to specify *max* version, e.g. < 10. |
178 |
-# 3. Specify LLVM_MAX_SLOT, e.g. 9. |
179 |
-LLVM_MAX_SLOT="11" |
180 |
-LLVM_DEPSTR=" |
181 |
- || ( |
182 |
- sys-devel/llvm:11[${MULTILIB_USEDEP}] |
183 |
- sys-devel/llvm:10[${MULTILIB_USEDEP}] |
184 |
- sys-devel/llvm:9[${MULTILIB_USEDEP}] |
185 |
- ) |
186 |
- <sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}] |
187 |
-" |
188 |
-LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]} |
189 |
-CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang} |
190 |
-CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]} |
191 |
-RDEPEND="${RDEPEND} |
192 |
- gallium? ( |
193 |
- llvm? ( |
194 |
- opencl? ( |
195 |
- video_cards_r600? ( |
196 |
- ${CLANG_DEPSTR_AMDGPU} |
197 |
- ) |
198 |
- !video_cards_r600? ( |
199 |
- video_cards_radeonsi? ( |
200 |
- ${CLANG_DEPSTR_AMDGPU} |
201 |
- ) |
202 |
- ) |
203 |
- !video_cards_r600? ( |
204 |
- !video_cards_radeonsi? ( |
205 |
- video_cards_radeon? ( |
206 |
- ${CLANG_DEPSTR_AMDGPU} |
207 |
- ) |
208 |
- ) |
209 |
- ) |
210 |
- !video_cards_r600? ( |
211 |
- !video_cards_radeon? ( |
212 |
- !video_cards_radeonsi? ( |
213 |
- ${CLANG_DEPSTR} |
214 |
- ) |
215 |
- ) |
216 |
- ) |
217 |
- ) |
218 |
- !opencl? ( |
219 |
- video_cards_r600? ( |
220 |
- ${LLVM_DEPSTR_AMDGPU} |
221 |
- ) |
222 |
- !video_cards_r600? ( |
223 |
- video_cards_radeonsi? ( |
224 |
- ${LLVM_DEPSTR_AMDGPU} |
225 |
- ) |
226 |
- ) |
227 |
- !video_cards_r600? ( |
228 |
- !video_cards_radeonsi? ( |
229 |
- video_cards_radeon? ( |
230 |
- ${LLVM_DEPSTR_AMDGPU} |
231 |
- ) |
232 |
- ) |
233 |
- ) |
234 |
- !video_cards_r600? ( |
235 |
- !video_cards_radeon? ( |
236 |
- !video_cards_radeonsi? ( |
237 |
- ${LLVM_DEPSTR} |
238 |
- ) |
239 |
- ) |
240 |
- ) |
241 |
- ) |
242 |
- ) |
243 |
- ) |
244 |
-" |
245 |
-unset {LLVM,CLANG}_DEPSTR{,_AMDGPU} |
246 |
- |
247 |
-DEPEND="${RDEPEND} |
248 |
- valgrind? ( dev-util/valgrind ) |
249 |
- X? ( |
250 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
251 |
- x11-base/xorg-proto |
252 |
- ) |
253 |
-" |
254 |
-BDEPEND=" |
255 |
- ${PYTHON_DEPS} |
256 |
- opencl? ( |
257 |
- >=sys-devel/gcc-4.6 |
258 |
- ) |
259 |
- sys-devel/bison |
260 |
- sys-devel/flex |
261 |
- virtual/pkgconfig |
262 |
- $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]") |
263 |
-" |
264 |
- |
265 |
-S="${WORKDIR}/${MY_P}" |
266 |
-EGIT_CHECKOUT_DIR=${S} |
267 |
- |
268 |
-QA_WX_LOAD=" |
269 |
-x86? ( |
270 |
- usr/lib*/libglapi.so.0.0.0 |
271 |
- usr/lib*/libGLESv1_CM.so.1.1.0 |
272 |
- usr/lib*/libGLESv2.so.2.0.0 |
273 |
- usr/lib*/libGL.so.1.2.0 |
274 |
- usr/lib*/libOSMesa.so.8.0.0 |
275 |
- usr/lib/libGLX_mesa.so.0.0.0 |
276 |
-)" |
277 |
- |
278 |
-llvm_check_deps() { |
279 |
- local flags=${MULTILIB_USEDEP} |
280 |
- if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi |
281 |
- then |
282 |
- flags+=",llvm_targets_AMDGPU(-)" |
283 |
- fi |
284 |
- |
285 |
- if use opencl; then |
286 |
- has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1 |
287 |
- fi |
288 |
- has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]" |
289 |
-} |
290 |
- |
291 |
-pkg_pretend() { |
292 |
- if use vulkan; then |
293 |
- if ! use video_cards_i965 && |
294 |
- ! use video_cards_iris && |
295 |
- ! use video_cards_radeonsi; then |
296 |
- ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, iris, or radeonsi" |
297 |
- fi |
298 |
- fi |
299 |
- |
300 |
- if use opencl; then |
301 |
- if ! use video_cards_r600 && |
302 |
- ! use video_cards_radeonsi; then |
303 |
- ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi" |
304 |
- fi |
305 |
- fi |
306 |
- |
307 |
- if use vaapi; then |
308 |
- if ! use video_cards_r600 && |
309 |
- ! use video_cards_radeonsi && |
310 |
- ! use video_cards_nouveau; then |
311 |
- ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau" |
312 |
- fi |
313 |
- fi |
314 |
- |
315 |
- if use vdpau; then |
316 |
- if ! use video_cards_r300 && |
317 |
- ! use video_cards_r600 && |
318 |
- ! use video_cards_radeonsi && |
319 |
- ! use video_cards_nouveau; then |
320 |
- ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau" |
321 |
- fi |
322 |
- fi |
323 |
- |
324 |
- if use xa; then |
325 |
- if ! use video_cards_freedreno && |
326 |
- ! use video_cards_nouveau && |
327 |
- ! use video_cards_vmware; then |
328 |
- ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware" |
329 |
- fi |
330 |
- fi |
331 |
- |
332 |
- if use xvmc; then |
333 |
- if ! use video_cards_r600 && |
334 |
- ! use video_cards_nouveau; then |
335 |
- ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau" |
336 |
- fi |
337 |
- fi |
338 |
- |
339 |
- if ! use gallium; then |
340 |
- use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium" |
341 |
- use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium" |
342 |
- use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium" |
343 |
- use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium" |
344 |
- use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium" |
345 |
- use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium" |
346 |
- use xa && ewarn "Ignoring USE=xa since USE does not contain gallium" |
347 |
- use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium" |
348 |
- fi |
349 |
- |
350 |
- if ! use llvm; then |
351 |
- use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm" |
352 |
- fi |
353 |
-} |
354 |
- |
355 |
-python_check_deps() { |
356 |
- has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]" |
357 |
-} |
358 |
- |
359 |
-pkg_setup() { |
360 |
- # warning message for bug 459306 |
361 |
- if use llvm && has_version sys-devel/llvm[!debug=]; then |
362 |
- ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm" |
363 |
- ewarn "detected! This can cause problems. For details, see bug 459306." |
364 |
- fi |
365 |
- |
366 |
- if use video_cards_i965 || |
367 |
- use video_cards_iris || |
368 |
- use video_cards_radeonsi; then |
369 |
- CONFIG_CHECK="~CHECKPOINT_RESTORE" |
370 |
- linux-info_pkg_setup |
371 |
- fi |
372 |
- |
373 |
- if use gallium && use llvm; then |
374 |
- llvm_pkg_setup |
375 |
- fi |
376 |
- python-any-r1_pkg_setup |
377 |
-} |
378 |
- |
379 |
-multilib_src_configure() { |
380 |
- local emesonargs=() |
381 |
- |
382 |
- if use classic; then |
383 |
- # Intel code |
384 |
- dri_driver_enable video_cards_i915 i915 |
385 |
- dri_driver_enable video_cards_i965 i965 |
386 |
- if ! use video_cards_i915 && \ |
387 |
- ! use video_cards_i965; then |
388 |
- dri_driver_enable video_cards_intel i915 i965 |
389 |
- fi |
390 |
- |
391 |
- # Nouveau code |
392 |
- dri_driver_enable video_cards_nouveau nouveau |
393 |
- |
394 |
- # ATI code |
395 |
- dri_driver_enable video_cards_r100 r100 |
396 |
- dri_driver_enable video_cards_r200 r200 |
397 |
- if ! use video_cards_r100 && \ |
398 |
- ! use video_cards_r200; then |
399 |
- dri_driver_enable video_cards_radeon r100 r200 |
400 |
- fi |
401 |
- fi |
402 |
- |
403 |
- local platforms |
404 |
- use X && platforms+="x11" |
405 |
- use wayland && platforms+=",wayland" |
406 |
- emesonargs+=(-Dplatforms=${platforms#,}) |
407 |
- |
408 |
- if use X || use egl; then |
409 |
- emesonargs+=(-Dglvnd=true) |
410 |
- else |
411 |
- emesonargs+=(-Dglvnd=false) |
412 |
- fi |
413 |
- |
414 |
- if use gallium; then |
415 |
- emesonargs+=( |
416 |
- $(meson_feature llvm) |
417 |
- $(meson_feature lm-sensors lmsensors) |
418 |
- $(meson_feature unwind libunwind) |
419 |
- ) |
420 |
- |
421 |
- if use video_cards_iris || |
422 |
- use video_cards_r300 || |
423 |
- use video_cards_r600 || |
424 |
- use video_cards_radeonsi || |
425 |
- use video_cards_nouveau || |
426 |
- use video_cards_vmware; then |
427 |
- emesonargs+=($(meson_use d3d9 gallium-nine)) |
428 |
- else |
429 |
- emesonargs+=(-Dgallium-nine=false) |
430 |
- fi |
431 |
- |
432 |
- if use video_cards_r600 || |
433 |
- use video_cards_radeonsi || |
434 |
- use video_cards_nouveau; then |
435 |
- emesonargs+=($(meson_feature vaapi gallium-va)) |
436 |
- use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers ) |
437 |
- else |
438 |
- emesonargs+=(-Dgallium-va=disabled) |
439 |
- fi |
440 |
- |
441 |
- if use video_cards_r300 || |
442 |
- use video_cards_r600 || |
443 |
- use video_cards_radeonsi || |
444 |
- use video_cards_nouveau; then |
445 |
- emesonargs+=($(meson_feature vdpau gallium-vdpau)) |
446 |
- else |
447 |
- emesonargs+=(-Dgallium-vdpau=disabled) |
448 |
- fi |
449 |
- |
450 |
- if use video_cards_freedreno || |
451 |
- use video_cards_nouveau || |
452 |
- use video_cards_vmware; then |
453 |
- emesonargs+=($(meson_feature xa gallium-xa)) |
454 |
- else |
455 |
- emesonargs+=(-Dgallium-xa=disabled) |
456 |
- fi |
457 |
- |
458 |
- if use video_cards_r600 || |
459 |
- use video_cards_nouveau; then |
460 |
- emesonargs+=($(meson_feature xvmc gallium-xvmc)) |
461 |
- else |
462 |
- emesonargs+=(-Dgallium-xvmc=disabled) |
463 |
- fi |
464 |
- |
465 |
- if use video_cards_freedreno || |
466 |
- use video_cards_lima || |
467 |
- use video_cards_panfrost || |
468 |
- use video_cards_v3d || |
469 |
- use video_cards_vc4 || |
470 |
- use video_cards_vivante; then |
471 |
- gallium_enable -- kmsro |
472 |
- fi |
473 |
- |
474 |
- gallium_enable video_cards_lima lima |
475 |
- gallium_enable video_cards_panfrost panfrost |
476 |
- gallium_enable video_cards_v3d v3d |
477 |
- gallium_enable video_cards_vc4 vc4 |
478 |
- gallium_enable video_cards_vivante etnaviv |
479 |
- gallium_enable video_cards_vmware svga |
480 |
- gallium_enable video_cards_nouveau nouveau |
481 |
- gallium_enable zink zink |
482 |
- |
483 |
- # Only one i915 driver (classic vs gallium). Default to classic. |
484 |
- if ! use classic; then |
485 |
- gallium_enable video_cards_i915 i915 |
486 |
- if ! use video_cards_i915 && \ |
487 |
- ! use video_cards_i965; then |
488 |
- gallium_enable video_cards_intel i915 |
489 |
- fi |
490 |
- fi |
491 |
- |
492 |
- gallium_enable video_cards_iris iris |
493 |
- |
494 |
- gallium_enable video_cards_r300 r300 |
495 |
- gallium_enable video_cards_r600 r600 |
496 |
- gallium_enable video_cards_radeonsi radeonsi |
497 |
- if ! use video_cards_r300 && \ |
498 |
- ! use video_cards_r600; then |
499 |
- gallium_enable video_cards_radeon r300 r600 |
500 |
- fi |
501 |
- |
502 |
- gallium_enable video_cards_freedreno freedreno |
503 |
- gallium_enable video_cards_virgl virgl |
504 |
- |
505 |
- # opencl stuff |
506 |
- emesonargs+=( |
507 |
- -Dgallium-opencl="$(usex opencl icd disabled)" |
508 |
- ) |
509 |
- fi |
510 |
- |
511 |
- if use vulkan; then |
512 |
- vulkan_enable video_cards_i965 intel |
513 |
- vulkan_enable video_cards_iris intel |
514 |
- vulkan_enable video_cards_radeonsi amd |
515 |
- fi |
516 |
- |
517 |
- if use gallium; then |
518 |
- gallium_enable -- swrast |
519 |
- emesonargs+=( -Dosmesa=$(usex osmesa gallium none) ) |
520 |
- else |
521 |
- dri_driver_enable -- swrast |
522 |
- emesonargs+=( -Dosmesa=$(usex osmesa classic none) ) |
523 |
- fi |
524 |
- |
525 |
- driver_list() { |
526 |
- local drivers="$(sort -u <<< "${1// /$'\n'}")" |
527 |
- echo "${drivers//$'\n'/,}" |
528 |
- } |
529 |
- |
530 |
- emesonargs+=( |
531 |
- $(meson_use test build-tests) |
532 |
- -Dglx=$(usex X dri disabled) |
533 |
- -Dshared-glapi=enabled |
534 |
- $(meson_feature dri3) |
535 |
- $(meson_feature egl) |
536 |
- $(meson_feature gbm) |
537 |
- $(meson_feature gles1) |
538 |
- $(meson_feature gles2) |
539 |
- $(meson_use selinux) |
540 |
- $(meson_feature zstd) |
541 |
- -Dvalgrind=$(usex valgrind auto false) |
542 |
- -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}") |
543 |
- -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}") |
544 |
- -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}") |
545 |
- $(meson_use vulkan vulkan-device-select-layer) |
546 |
- $(meson_use vulkan-overlay vulkan-overlay-layer) |
547 |
- --buildtype $(usex debug debug plain) |
548 |
- -Db_ndebug=$(usex debug false true) |
549 |
- ) |
550 |
- meson_src_configure |
551 |
-} |
552 |
- |
553 |
-multilib_src_compile() { |
554 |
- meson_src_compile |
555 |
-} |
556 |
- |
557 |
-multilib_src_install() { |
558 |
- meson_src_install |
559 |
-} |
560 |
- |
561 |
-multilib_src_install_all() { |
562 |
- einstalldocs |
563 |
-} |
564 |
- |
565 |
-multilib_src_test() { |
566 |
- meson_src_test -t 100 |
567 |
-} |
568 |
- |
569 |
-# $1 - VIDEO_CARDS flag (check skipped for "--") |
570 |
-# other args - names of DRI drivers to enable |
571 |
-dri_driver_enable() { |
572 |
- if [[ $1 == -- ]] || use $1; then |
573 |
- shift |
574 |
- DRI_DRIVERS+=("$@") |
575 |
- fi |
576 |
-} |
577 |
- |
578 |
-gallium_enable() { |
579 |
- if [[ $1 == -- ]] || use $1; then |
580 |
- shift |
581 |
- GALLIUM_DRIVERS+=("$@") |
582 |
- fi |
583 |
-} |
584 |
- |
585 |
-vulkan_enable() { |
586 |
- if [[ $1 == -- ]] || use $1; then |
587 |
- shift |
588 |
- VULKAN_DRIVERS+=("$@") |
589 |
- fi |
590 |
-} |
591 |
|
592 |
diff --git a/media-libs/mesa/mesa-20.3.4.ebuild b/media-libs/mesa/mesa-20.3.4.ebuild |
593 |
deleted file mode 100644 |
594 |
index d8acea6fdc4..00000000000 |
595 |
--- a/media-libs/mesa/mesa-20.3.4.ebuild |
596 |
+++ /dev/null |
597 |
@@ -1,566 +0,0 @@ |
598 |
-# Copyright 1999-2021 Gentoo Authors |
599 |
-# Distributed under the terms of the GNU General Public License v2 |
600 |
- |
601 |
-EAPI=7 |
602 |
- |
603 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
604 |
- |
605 |
-inherit llvm meson multilib-minimal python-any-r1 linux-info |
606 |
- |
607 |
-OPENGL_DIR="xorg-x11" |
608 |
- |
609 |
-MY_P="${P/_/-}" |
610 |
- |
611 |
-DESCRIPTION="OpenGL-like graphic library for Linux" |
612 |
-HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/" |
613 |
- |
614 |
-if [[ ${PV} == 9999 ]]; then |
615 |
- EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git" |
616 |
- inherit git-r3 |
617 |
-else |
618 |
- SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz" |
619 |
- KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
620 |
-fi |
621 |
- |
622 |
-LICENSE="MIT" |
623 |
-SLOT="0" |
624 |
-RESTRICT=" |
625 |
- !test? ( test ) |
626 |
-" |
627 |
- |
628 |
-RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi" |
629 |
-VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost v3d vc4 virgl vivante vmware" |
630 |
-for card in ${VIDEO_CARDS}; do |
631 |
- IUSE_VIDEO_CARDS+=" video_cards_${card}" |
632 |
-done |
633 |
- |
634 |
-IUSE="${IUSE_VIDEO_CARDS} |
635 |
- +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm |
636 |
- lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan |
637 |
- vulkan-overlay wayland +X xa xvmc zink +zstd" |
638 |
- |
639 |
-REQUIRED_USE=" |
640 |
- d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) ) |
641 |
- gles1? ( egl ) |
642 |
- gles2? ( egl ) |
643 |
- vulkan? ( dri3 |
644 |
- video_cards_radeonsi? ( llvm ) ) |
645 |
- vulkan-overlay? ( vulkan ) |
646 |
- wayland? ( egl gbm ) |
647 |
- video_cards_freedreno? ( gallium ) |
648 |
- video_cards_intel? ( classic ) |
649 |
- video_cards_i915? ( || ( classic gallium ) ) |
650 |
- video_cards_i965? ( classic ) |
651 |
- video_cards_iris? ( gallium ) |
652 |
- video_cards_lima? ( gallium ) |
653 |
- video_cards_nouveau? ( || ( classic gallium ) ) |
654 |
- video_cards_panfrost? ( gallium ) |
655 |
- video_cards_radeon? ( || ( classic gallium ) |
656 |
- gallium? ( x86? ( llvm ) amd64? ( llvm ) ) ) |
657 |
- video_cards_r100? ( classic ) |
658 |
- video_cards_r200? ( classic ) |
659 |
- video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) ) |
660 |
- video_cards_r600? ( gallium ) |
661 |
- video_cards_radeonsi? ( gallium llvm ) |
662 |
- video_cards_v3d? ( gallium ) |
663 |
- video_cards_vc4? ( gallium ) |
664 |
- video_cards_virgl? ( gallium ) |
665 |
- video_cards_vivante? ( gallium gbm ) |
666 |
- video_cards_vmware? ( gallium ) |
667 |
- xa? ( X ) |
668 |
- xvmc? ( X ) |
669 |
- zink? ( gallium vulkan ) |
670 |
-" |
671 |
- |
672 |
-LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100" |
673 |
-RDEPEND=" |
674 |
- >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] |
675 |
- >=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}] |
676 |
- >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}] |
677 |
- gallium? ( |
678 |
- unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] ) |
679 |
- llvm? ( |
680 |
- video_cards_radeonsi? ( |
681 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
682 |
- ) |
683 |
- video_cards_r600? ( |
684 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
685 |
- ) |
686 |
- video_cards_radeon? ( |
687 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
688 |
- ) |
689 |
- ) |
690 |
- lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] ) |
691 |
- opencl? ( |
692 |
- >=virtual/opencl-3[${MULTILIB_USEDEP}] |
693 |
- dev-libs/libclc |
694 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
695 |
- ) |
696 |
- vaapi? ( |
697 |
- >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}] |
698 |
- ) |
699 |
- vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] ) |
700 |
- xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] ) |
701 |
- ) |
702 |
- selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] ) |
703 |
- wayland? ( |
704 |
- >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}] |
705 |
- >=dev-libs/wayland-protocols-1.8 |
706 |
- ) |
707 |
- ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}] |
708 |
- video_cards_intel? ( |
709 |
- !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
710 |
- ) |
711 |
- video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
712 |
- vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] ) |
713 |
- X? ( |
714 |
- >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] |
715 |
- >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] |
716 |
- >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}] |
717 |
- >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] |
718 |
- >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] |
719 |
- >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}] |
720 |
- x11-libs/libXfixes:=[${MULTILIB_USEDEP}] |
721 |
- ) |
722 |
- zink? ( media-libs/vulkan-loader:=[${MULTILIB_USEDEP}] ) |
723 |
- zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] ) |
724 |
-" |
725 |
-for card in ${RADEON_CARDS}; do |
726 |
- RDEPEND="${RDEPEND} |
727 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) |
728 |
- " |
729 |
-done |
730 |
-RDEPEND="${RDEPEND} |
731 |
- video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] ) |
732 |
-" |
733 |
- |
734 |
-# Please keep the LLVM dependency block separate. Since LLVM is slotted, |
735 |
-# we need to *really* make sure we're not pulling one than more slot |
736 |
-# simultaneously. |
737 |
-# |
738 |
-# How to use it: |
739 |
-# 1. List all the working slots (with min versions) in ||, newest first. |
740 |
-# 2. Update the := to specify *max* version, e.g. < 10. |
741 |
-# 3. Specify LLVM_MAX_SLOT, e.g. 9. |
742 |
-LLVM_MAX_SLOT="11" |
743 |
-LLVM_DEPSTR=" |
744 |
- || ( |
745 |
- sys-devel/llvm:11[${MULTILIB_USEDEP}] |
746 |
- sys-devel/llvm:10[${MULTILIB_USEDEP}] |
747 |
- sys-devel/llvm:9[${MULTILIB_USEDEP}] |
748 |
- ) |
749 |
- <sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}] |
750 |
-" |
751 |
-LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]} |
752 |
-CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang} |
753 |
-CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]} |
754 |
-RDEPEND="${RDEPEND} |
755 |
- gallium? ( |
756 |
- llvm? ( |
757 |
- opencl? ( |
758 |
- video_cards_r600? ( |
759 |
- ${CLANG_DEPSTR_AMDGPU} |
760 |
- ) |
761 |
- !video_cards_r600? ( |
762 |
- video_cards_radeonsi? ( |
763 |
- ${CLANG_DEPSTR_AMDGPU} |
764 |
- ) |
765 |
- ) |
766 |
- !video_cards_r600? ( |
767 |
- !video_cards_radeonsi? ( |
768 |
- video_cards_radeon? ( |
769 |
- ${CLANG_DEPSTR_AMDGPU} |
770 |
- ) |
771 |
- ) |
772 |
- ) |
773 |
- !video_cards_r600? ( |
774 |
- !video_cards_radeon? ( |
775 |
- !video_cards_radeonsi? ( |
776 |
- ${CLANG_DEPSTR} |
777 |
- ) |
778 |
- ) |
779 |
- ) |
780 |
- ) |
781 |
- !opencl? ( |
782 |
- video_cards_r600? ( |
783 |
- ${LLVM_DEPSTR_AMDGPU} |
784 |
- ) |
785 |
- !video_cards_r600? ( |
786 |
- video_cards_radeonsi? ( |
787 |
- ${LLVM_DEPSTR_AMDGPU} |
788 |
- ) |
789 |
- ) |
790 |
- !video_cards_r600? ( |
791 |
- !video_cards_radeonsi? ( |
792 |
- video_cards_radeon? ( |
793 |
- ${LLVM_DEPSTR_AMDGPU} |
794 |
- ) |
795 |
- ) |
796 |
- ) |
797 |
- !video_cards_r600? ( |
798 |
- !video_cards_radeon? ( |
799 |
- !video_cards_radeonsi? ( |
800 |
- ${LLVM_DEPSTR} |
801 |
- ) |
802 |
- ) |
803 |
- ) |
804 |
- ) |
805 |
- ) |
806 |
- ) |
807 |
-" |
808 |
-unset {LLVM,CLANG}_DEPSTR{,_AMDGPU} |
809 |
- |
810 |
-DEPEND="${RDEPEND} |
811 |
- valgrind? ( dev-util/valgrind ) |
812 |
- X? ( |
813 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
814 |
- x11-base/xorg-proto |
815 |
- ) |
816 |
-" |
817 |
-BDEPEND=" |
818 |
- ${PYTHON_DEPS} |
819 |
- opencl? ( |
820 |
- >=sys-devel/gcc-4.6 |
821 |
- ) |
822 |
- sys-devel/bison |
823 |
- sys-devel/flex |
824 |
- virtual/pkgconfig |
825 |
- $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]") |
826 |
-" |
827 |
- |
828 |
-S="${WORKDIR}/${MY_P}" |
829 |
-EGIT_CHECKOUT_DIR=${S} |
830 |
- |
831 |
-QA_WX_LOAD=" |
832 |
-x86? ( |
833 |
- usr/lib*/libglapi.so.0.0.0 |
834 |
- usr/lib*/libGLESv1_CM.so.1.1.0 |
835 |
- usr/lib*/libGLESv2.so.2.0.0 |
836 |
- usr/lib*/libGL.so.1.2.0 |
837 |
- usr/lib*/libOSMesa.so.8.0.0 |
838 |
- usr/lib/libGLX_mesa.so.0.0.0 |
839 |
-)" |
840 |
- |
841 |
-llvm_check_deps() { |
842 |
- local flags=${MULTILIB_USEDEP} |
843 |
- if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi |
844 |
- then |
845 |
- flags+=",llvm_targets_AMDGPU(-)" |
846 |
- fi |
847 |
- |
848 |
- if use opencl; then |
849 |
- has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1 |
850 |
- fi |
851 |
- has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]" |
852 |
-} |
853 |
- |
854 |
-pkg_pretend() { |
855 |
- if use vulkan; then |
856 |
- if ! use video_cards_i965 && |
857 |
- ! use video_cards_iris && |
858 |
- ! use video_cards_radeonsi && |
859 |
- ! use video_cards_v3d; then |
860 |
- ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, iris, radeonsi, or v3d" |
861 |
- fi |
862 |
- fi |
863 |
- |
864 |
- if use opencl; then |
865 |
- if ! use video_cards_r600 && |
866 |
- ! use video_cards_radeonsi; then |
867 |
- ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi" |
868 |
- fi |
869 |
- fi |
870 |
- |
871 |
- if use vaapi; then |
872 |
- if ! use video_cards_r600 && |
873 |
- ! use video_cards_radeonsi && |
874 |
- ! use video_cards_nouveau; then |
875 |
- ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau" |
876 |
- fi |
877 |
- fi |
878 |
- |
879 |
- if use vdpau; then |
880 |
- if ! use video_cards_r300 && |
881 |
- ! use video_cards_r600 && |
882 |
- ! use video_cards_radeonsi && |
883 |
- ! use video_cards_nouveau; then |
884 |
- ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau" |
885 |
- fi |
886 |
- fi |
887 |
- |
888 |
- if use xa; then |
889 |
- if ! use video_cards_freedreno && |
890 |
- ! use video_cards_nouveau && |
891 |
- ! use video_cards_vmware; then |
892 |
- ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware" |
893 |
- fi |
894 |
- fi |
895 |
- |
896 |
- if use xvmc; then |
897 |
- if ! use video_cards_r600 && |
898 |
- ! use video_cards_nouveau; then |
899 |
- ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau" |
900 |
- fi |
901 |
- fi |
902 |
- |
903 |
- if ! use gallium; then |
904 |
- use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium" |
905 |
- use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium" |
906 |
- use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium" |
907 |
- use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium" |
908 |
- use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium" |
909 |
- use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium" |
910 |
- use xa && ewarn "Ignoring USE=xa since USE does not contain gallium" |
911 |
- use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium" |
912 |
- fi |
913 |
- |
914 |
- if ! use llvm; then |
915 |
- use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm" |
916 |
- fi |
917 |
-} |
918 |
- |
919 |
-python_check_deps() { |
920 |
- has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]" |
921 |
-} |
922 |
- |
923 |
-pkg_setup() { |
924 |
- # warning message for bug 459306 |
925 |
- if use llvm && has_version sys-devel/llvm[!debug=]; then |
926 |
- ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm" |
927 |
- ewarn "detected! This can cause problems. For details, see bug 459306." |
928 |
- fi |
929 |
- |
930 |
- if use video_cards_i965 || |
931 |
- use video_cards_iris || |
932 |
- use video_cards_radeonsi; then |
933 |
- if kernel_is -ge 5 11 3; then |
934 |
- CONFIG_CHECK="~KCMP" |
935 |
- elif kernel_is -ge 5 11; then |
936 |
- CONFIG_CHECK="~CHECKPOINT_RESTORE" |
937 |
- elif kernel_is -ge 5 10 20; then |
938 |
- CONFIG_CHECK="~KCMP" |
939 |
- else |
940 |
- CONFIG_CHECK="~CHECKPOINT_RESTORE" |
941 |
- fi |
942 |
- linux-info_pkg_setup |
943 |
- fi |
944 |
- |
945 |
- if use gallium && use llvm; then |
946 |
- llvm_pkg_setup |
947 |
- fi |
948 |
- python-any-r1_pkg_setup |
949 |
-} |
950 |
- |
951 |
-multilib_src_configure() { |
952 |
- local emesonargs=() |
953 |
- |
954 |
- if use classic; then |
955 |
- # Intel code |
956 |
- dri_driver_enable video_cards_i915 i915 |
957 |
- dri_driver_enable video_cards_i965 i965 |
958 |
- if ! use video_cards_i915 && \ |
959 |
- ! use video_cards_i965; then |
960 |
- dri_driver_enable video_cards_intel i915 i965 |
961 |
- fi |
962 |
- |
963 |
- # Nouveau code |
964 |
- dri_driver_enable video_cards_nouveau nouveau |
965 |
- |
966 |
- # ATI code |
967 |
- dri_driver_enable video_cards_r100 r100 |
968 |
- dri_driver_enable video_cards_r200 r200 |
969 |
- if ! use video_cards_r100 && \ |
970 |
- ! use video_cards_r200; then |
971 |
- dri_driver_enable video_cards_radeon r100 r200 |
972 |
- fi |
973 |
- fi |
974 |
- |
975 |
- local platforms |
976 |
- use X && platforms+="x11" |
977 |
- use wayland && platforms+=",wayland" |
978 |
- emesonargs+=(-Dplatforms=${platforms#,}) |
979 |
- |
980 |
- if use X || use egl; then |
981 |
- emesonargs+=(-Dglvnd=true) |
982 |
- else |
983 |
- emesonargs+=(-Dglvnd=false) |
984 |
- fi |
985 |
- |
986 |
- if use gallium; then |
987 |
- emesonargs+=( |
988 |
- $(meson_feature llvm) |
989 |
- $(meson_feature lm-sensors lmsensors) |
990 |
- $(meson_feature unwind libunwind) |
991 |
- ) |
992 |
- |
993 |
- if use video_cards_iris || |
994 |
- use video_cards_r300 || |
995 |
- use video_cards_r600 || |
996 |
- use video_cards_radeonsi || |
997 |
- use video_cards_nouveau || |
998 |
- use video_cards_vmware; then |
999 |
- emesonargs+=($(meson_use d3d9 gallium-nine)) |
1000 |
- else |
1001 |
- emesonargs+=(-Dgallium-nine=false) |
1002 |
- fi |
1003 |
- |
1004 |
- if use video_cards_r600 || |
1005 |
- use video_cards_radeonsi || |
1006 |
- use video_cards_nouveau; then |
1007 |
- emesonargs+=($(meson_feature vaapi gallium-va)) |
1008 |
- use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers ) |
1009 |
- else |
1010 |
- emesonargs+=(-Dgallium-va=disabled) |
1011 |
- fi |
1012 |
- |
1013 |
- if use video_cards_r300 || |
1014 |
- use video_cards_r600 || |
1015 |
- use video_cards_radeonsi || |
1016 |
- use video_cards_nouveau; then |
1017 |
- emesonargs+=($(meson_feature vdpau gallium-vdpau)) |
1018 |
- else |
1019 |
- emesonargs+=(-Dgallium-vdpau=disabled) |
1020 |
- fi |
1021 |
- |
1022 |
- if use video_cards_freedreno || |
1023 |
- use video_cards_nouveau || |
1024 |
- use video_cards_vmware; then |
1025 |
- emesonargs+=($(meson_feature xa gallium-xa)) |
1026 |
- else |
1027 |
- emesonargs+=(-Dgallium-xa=disabled) |
1028 |
- fi |
1029 |
- |
1030 |
- if use video_cards_r600 || |
1031 |
- use video_cards_nouveau; then |
1032 |
- emesonargs+=($(meson_feature xvmc gallium-xvmc)) |
1033 |
- else |
1034 |
- emesonargs+=(-Dgallium-xvmc=disabled) |
1035 |
- fi |
1036 |
- |
1037 |
- if use video_cards_freedreno || |
1038 |
- use video_cards_lima || |
1039 |
- use video_cards_panfrost || |
1040 |
- use video_cards_v3d || |
1041 |
- use video_cards_vc4 || |
1042 |
- use video_cards_vivante; then |
1043 |
- gallium_enable -- kmsro |
1044 |
- fi |
1045 |
- |
1046 |
- gallium_enable video_cards_lima lima |
1047 |
- gallium_enable video_cards_panfrost panfrost |
1048 |
- gallium_enable video_cards_v3d v3d |
1049 |
- gallium_enable video_cards_vc4 vc4 |
1050 |
- gallium_enable video_cards_vivante etnaviv |
1051 |
- gallium_enable video_cards_vmware svga |
1052 |
- gallium_enable video_cards_nouveau nouveau |
1053 |
- gallium_enable zink zink |
1054 |
- |
1055 |
- # Only one i915 driver (classic vs gallium). Default to classic. |
1056 |
- if ! use classic; then |
1057 |
- gallium_enable video_cards_i915 i915 |
1058 |
- if ! use video_cards_i915 && \ |
1059 |
- ! use video_cards_i965; then |
1060 |
- gallium_enable video_cards_intel i915 |
1061 |
- fi |
1062 |
- fi |
1063 |
- |
1064 |
- gallium_enable video_cards_iris iris |
1065 |
- |
1066 |
- gallium_enable video_cards_r300 r300 |
1067 |
- gallium_enable video_cards_r600 r600 |
1068 |
- gallium_enable video_cards_radeonsi radeonsi |
1069 |
- if ! use video_cards_r300 && \ |
1070 |
- ! use video_cards_r600; then |
1071 |
- gallium_enable video_cards_radeon r300 r600 |
1072 |
- fi |
1073 |
- |
1074 |
- gallium_enable video_cards_freedreno freedreno |
1075 |
- gallium_enable video_cards_virgl virgl |
1076 |
- |
1077 |
- # opencl stuff |
1078 |
- emesonargs+=( |
1079 |
- -Dgallium-opencl="$(usex opencl icd disabled)" |
1080 |
- ) |
1081 |
- fi |
1082 |
- |
1083 |
- if use vulkan; then |
1084 |
- vulkan_enable video_cards_i965 intel |
1085 |
- vulkan_enable video_cards_iris intel |
1086 |
- vulkan_enable video_cards_radeonsi amd |
1087 |
- vulkan_enable video_cards_v3d broadcom |
1088 |
- fi |
1089 |
- |
1090 |
- if use gallium; then |
1091 |
- gallium_enable -- swrast |
1092 |
- emesonargs+=( -Dosmesa=$(usex osmesa gallium none) ) |
1093 |
- else |
1094 |
- dri_driver_enable -- swrast |
1095 |
- emesonargs+=( -Dosmesa=$(usex osmesa classic none) ) |
1096 |
- fi |
1097 |
- |
1098 |
- driver_list() { |
1099 |
- local drivers="$(sort -u <<< "${1// /$'\n'}")" |
1100 |
- echo "${drivers//$'\n'/,}" |
1101 |
- } |
1102 |
- |
1103 |
- emesonargs+=( |
1104 |
- $(meson_use test build-tests) |
1105 |
- -Dglx=$(usex X dri disabled) |
1106 |
- -Dshared-glapi=enabled |
1107 |
- $(meson_feature dri3) |
1108 |
- $(meson_feature egl) |
1109 |
- $(meson_feature gbm) |
1110 |
- $(meson_feature gles1) |
1111 |
- $(meson_feature gles2) |
1112 |
- $(meson_use selinux) |
1113 |
- $(meson_feature zstd) |
1114 |
- -Dvalgrind=$(usex valgrind auto false) |
1115 |
- -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}") |
1116 |
- -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}") |
1117 |
- -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}") |
1118 |
- $(meson_use vulkan vulkan-device-select-layer) |
1119 |
- $(meson_use vulkan-overlay vulkan-overlay-layer) |
1120 |
- --buildtype $(usex debug debug plain) |
1121 |
- -Db_ndebug=$(usex debug false true) |
1122 |
- ) |
1123 |
- meson_src_configure |
1124 |
-} |
1125 |
- |
1126 |
-multilib_src_compile() { |
1127 |
- meson_src_compile |
1128 |
-} |
1129 |
- |
1130 |
-multilib_src_install() { |
1131 |
- meson_src_install |
1132 |
-} |
1133 |
- |
1134 |
-multilib_src_install_all() { |
1135 |
- einstalldocs |
1136 |
-} |
1137 |
- |
1138 |
-multilib_src_test() { |
1139 |
- meson_src_test -t 100 |
1140 |
-} |
1141 |
- |
1142 |
-# $1 - VIDEO_CARDS flag (check skipped for "--") |
1143 |
-# other args - names of DRI drivers to enable |
1144 |
-dri_driver_enable() { |
1145 |
- if [[ $1 == -- ]] || use $1; then |
1146 |
- shift |
1147 |
- DRI_DRIVERS+=("$@") |
1148 |
- fi |
1149 |
-} |
1150 |
- |
1151 |
-gallium_enable() { |
1152 |
- if [[ $1 == -- ]] || use $1; then |
1153 |
- shift |
1154 |
- GALLIUM_DRIVERS+=("$@") |
1155 |
- fi |
1156 |
-} |
1157 |
- |
1158 |
-vulkan_enable() { |
1159 |
- if [[ $1 == -- ]] || use $1; then |
1160 |
- shift |
1161 |
- VULKAN_DRIVERS+=("$@") |
1162 |
- fi |
1163 |
-} |
1164 |
|
1165 |
diff --git a/media-libs/mesa/mesa-21.0.0.ebuild b/media-libs/mesa/mesa-21.0.0.ebuild |
1166 |
deleted file mode 100644 |
1167 |
index aac65f99e5f..00000000000 |
1168 |
--- a/media-libs/mesa/mesa-21.0.0.ebuild |
1169 |
+++ /dev/null |
1170 |
@@ -1,563 +0,0 @@ |
1171 |
-# Copyright 1999-2021 Gentoo Authors |
1172 |
-# Distributed under the terms of the GNU General Public License v2 |
1173 |
- |
1174 |
-EAPI=7 |
1175 |
- |
1176 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
1177 |
- |
1178 |
-inherit llvm meson multilib-minimal python-any-r1 linux-info |
1179 |
- |
1180 |
-OPENGL_DIR="xorg-x11" |
1181 |
- |
1182 |
-MY_P="${P/_/-}" |
1183 |
- |
1184 |
-DESCRIPTION="OpenGL-like graphic library for Linux" |
1185 |
-HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/" |
1186 |
- |
1187 |
-if [[ ${PV} == 9999 ]]; then |
1188 |
- EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git" |
1189 |
- inherit git-r3 |
1190 |
-else |
1191 |
- SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz" |
1192 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
1193 |
-fi |
1194 |
- |
1195 |
-LICENSE="MIT" |
1196 |
-SLOT="0" |
1197 |
-RESTRICT=" |
1198 |
- !test? ( test ) |
1199 |
-" |
1200 |
- |
1201 |
-RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi" |
1202 |
-VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost v3d vc4 virgl vivante vmware" |
1203 |
-for card in ${VIDEO_CARDS}; do |
1204 |
- IUSE_VIDEO_CARDS+=" video_cards_${card}" |
1205 |
-done |
1206 |
- |
1207 |
-IUSE="${IUSE_VIDEO_CARDS} |
1208 |
- +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm |
1209 |
- lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan |
1210 |
- vulkan-overlay wayland +X xa xvmc zink +zstd" |
1211 |
- |
1212 |
-REQUIRED_USE=" |
1213 |
- d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) ) |
1214 |
- gles1? ( egl ) |
1215 |
- gles2? ( egl ) |
1216 |
- osmesa? ( gallium ) |
1217 |
- vulkan? ( dri3 |
1218 |
- video_cards_radeonsi? ( llvm ) ) |
1219 |
- vulkan-overlay? ( vulkan ) |
1220 |
- wayland? ( egl gbm ) |
1221 |
- video_cards_freedreno? ( gallium ) |
1222 |
- video_cards_intel? ( classic ) |
1223 |
- video_cards_i915? ( || ( classic gallium ) ) |
1224 |
- video_cards_i965? ( classic ) |
1225 |
- video_cards_iris? ( gallium ) |
1226 |
- video_cards_lima? ( gallium ) |
1227 |
- video_cards_nouveau? ( || ( classic gallium ) ) |
1228 |
- video_cards_panfrost? ( gallium ) |
1229 |
- video_cards_radeon? ( || ( classic gallium ) |
1230 |
- gallium? ( x86? ( llvm ) amd64? ( llvm ) ) ) |
1231 |
- video_cards_r100? ( classic ) |
1232 |
- video_cards_r200? ( classic ) |
1233 |
- video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) ) |
1234 |
- video_cards_r600? ( gallium ) |
1235 |
- video_cards_radeonsi? ( gallium llvm ) |
1236 |
- video_cards_v3d? ( gallium ) |
1237 |
- video_cards_vc4? ( gallium ) |
1238 |
- video_cards_virgl? ( gallium ) |
1239 |
- video_cards_vivante? ( gallium gbm ) |
1240 |
- video_cards_vmware? ( gallium ) |
1241 |
- xa? ( X ) |
1242 |
- xvmc? ( X ) |
1243 |
- zink? ( gallium vulkan ) |
1244 |
-" |
1245 |
- |
1246 |
-LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100" |
1247 |
-RDEPEND=" |
1248 |
- >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] |
1249 |
- >=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}] |
1250 |
- >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}] |
1251 |
- gallium? ( |
1252 |
- unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] ) |
1253 |
- llvm? ( |
1254 |
- video_cards_radeonsi? ( |
1255 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
1256 |
- ) |
1257 |
- video_cards_r600? ( |
1258 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
1259 |
- ) |
1260 |
- video_cards_radeon? ( |
1261 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
1262 |
- ) |
1263 |
- ) |
1264 |
- lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] ) |
1265 |
- opencl? ( |
1266 |
- >=virtual/opencl-3[${MULTILIB_USEDEP}] |
1267 |
- dev-libs/libclc |
1268 |
- virtual/libelf:0=[${MULTILIB_USEDEP}] |
1269 |
- ) |
1270 |
- vaapi? ( |
1271 |
- >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}] |
1272 |
- ) |
1273 |
- vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] ) |
1274 |
- xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] ) |
1275 |
- ) |
1276 |
- selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] ) |
1277 |
- wayland? ( |
1278 |
- >=dev-libs/wayland-1.18.0:=[${MULTILIB_USEDEP}] |
1279 |
- >=dev-libs/wayland-protocols-1.8 |
1280 |
- ) |
1281 |
- ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}] |
1282 |
- video_cards_intel? ( |
1283 |
- !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
1284 |
- ) |
1285 |
- video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
1286 |
- vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] ) |
1287 |
- X? ( |
1288 |
- >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] |
1289 |
- >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] |
1290 |
- >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] |
1291 |
- >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] |
1292 |
- >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}] |
1293 |
- x11-libs/libXfixes:=[${MULTILIB_USEDEP}] |
1294 |
- ) |
1295 |
- zink? ( media-libs/vulkan-loader:=[${MULTILIB_USEDEP}] ) |
1296 |
- zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] ) |
1297 |
-" |
1298 |
-for card in ${RADEON_CARDS}; do |
1299 |
- RDEPEND="${RDEPEND} |
1300 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) |
1301 |
- " |
1302 |
-done |
1303 |
-RDEPEND="${RDEPEND} |
1304 |
- video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] ) |
1305 |
-" |
1306 |
- |
1307 |
-# Please keep the LLVM dependency block separate. Since LLVM is slotted, |
1308 |
-# we need to *really* make sure we're not pulling one than more slot |
1309 |
-# simultaneously. |
1310 |
-# |
1311 |
-# How to use it: |
1312 |
-# 1. List all the working slots (with min versions) in ||, newest first. |
1313 |
-# 2. Update the := to specify *max* version, e.g. < 10. |
1314 |
-# 3. Specify LLVM_MAX_SLOT, e.g. 9. |
1315 |
-LLVM_MAX_SLOT="11" |
1316 |
-LLVM_DEPSTR=" |
1317 |
- || ( |
1318 |
- sys-devel/llvm:11[${MULTILIB_USEDEP}] |
1319 |
- sys-devel/llvm:10[${MULTILIB_USEDEP}] |
1320 |
- ) |
1321 |
- <sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}] |
1322 |
-" |
1323 |
-LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]} |
1324 |
-CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang} |
1325 |
-CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]} |
1326 |
-RDEPEND="${RDEPEND} |
1327 |
- gallium? ( |
1328 |
- llvm? ( |
1329 |
- opencl? ( |
1330 |
- video_cards_r600? ( |
1331 |
- ${CLANG_DEPSTR_AMDGPU} |
1332 |
- ) |
1333 |
- !video_cards_r600? ( |
1334 |
- video_cards_radeonsi? ( |
1335 |
- ${CLANG_DEPSTR_AMDGPU} |
1336 |
- ) |
1337 |
- ) |
1338 |
- !video_cards_r600? ( |
1339 |
- !video_cards_radeonsi? ( |
1340 |
- video_cards_radeon? ( |
1341 |
- ${CLANG_DEPSTR_AMDGPU} |
1342 |
- ) |
1343 |
- ) |
1344 |
- ) |
1345 |
- !video_cards_r600? ( |
1346 |
- !video_cards_radeon? ( |
1347 |
- !video_cards_radeonsi? ( |
1348 |
- ${CLANG_DEPSTR} |
1349 |
- ) |
1350 |
- ) |
1351 |
- ) |
1352 |
- ) |
1353 |
- !opencl? ( |
1354 |
- video_cards_r600? ( |
1355 |
- ${LLVM_DEPSTR_AMDGPU} |
1356 |
- ) |
1357 |
- !video_cards_r600? ( |
1358 |
- video_cards_radeonsi? ( |
1359 |
- ${LLVM_DEPSTR_AMDGPU} |
1360 |
- ) |
1361 |
- ) |
1362 |
- !video_cards_r600? ( |
1363 |
- !video_cards_radeonsi? ( |
1364 |
- video_cards_radeon? ( |
1365 |
- ${LLVM_DEPSTR_AMDGPU} |
1366 |
- ) |
1367 |
- ) |
1368 |
- ) |
1369 |
- !video_cards_r600? ( |
1370 |
- !video_cards_radeon? ( |
1371 |
- !video_cards_radeonsi? ( |
1372 |
- ${LLVM_DEPSTR} |
1373 |
- ) |
1374 |
- ) |
1375 |
- ) |
1376 |
- ) |
1377 |
- ) |
1378 |
- ) |
1379 |
-" |
1380 |
-unset {LLVM,CLANG}_DEPSTR{,_AMDGPU} |
1381 |
- |
1382 |
-DEPEND="${RDEPEND} |
1383 |
- valgrind? ( dev-util/valgrind ) |
1384 |
- X? ( |
1385 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
1386 |
- x11-base/xorg-proto |
1387 |
- ) |
1388 |
-" |
1389 |
-BDEPEND=" |
1390 |
- ${PYTHON_DEPS} |
1391 |
- opencl? ( |
1392 |
- >=sys-devel/gcc-4.6 |
1393 |
- ) |
1394 |
- sys-devel/bison |
1395 |
- sys-devel/flex |
1396 |
- virtual/pkgconfig |
1397 |
- $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]") |
1398 |
-" |
1399 |
- |
1400 |
-S="${WORKDIR}/${MY_P}" |
1401 |
-EGIT_CHECKOUT_DIR=${S} |
1402 |
- |
1403 |
-QA_WX_LOAD=" |
1404 |
-x86? ( |
1405 |
- usr/lib*/libglapi.so.0.0.0 |
1406 |
- usr/lib*/libGLESv1_CM.so.1.1.0 |
1407 |
- usr/lib*/libGLESv2.so.2.0.0 |
1408 |
- usr/lib*/libGL.so.1.2.0 |
1409 |
- usr/lib*/libOSMesa.so.8.0.0 |
1410 |
- usr/lib/libGLX_mesa.so.0.0.0 |
1411 |
-)" |
1412 |
- |
1413 |
-llvm_check_deps() { |
1414 |
- local flags=${MULTILIB_USEDEP} |
1415 |
- if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi |
1416 |
- then |
1417 |
- flags+=",llvm_targets_AMDGPU(-)" |
1418 |
- fi |
1419 |
- |
1420 |
- if use opencl; then |
1421 |
- has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1 |
1422 |
- fi |
1423 |
- has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]" |
1424 |
-} |
1425 |
- |
1426 |
-pkg_pretend() { |
1427 |
- if use vulkan; then |
1428 |
- if ! use video_cards_i965 && |
1429 |
- ! use video_cards_iris && |
1430 |
- ! use video_cards_radeonsi && |
1431 |
- ! use video_cards_v3d; then |
1432 |
- ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, iris, radeonsi, or v3d" |
1433 |
- fi |
1434 |
- fi |
1435 |
- |
1436 |
- if use opencl; then |
1437 |
- if ! use video_cards_r600 && |
1438 |
- ! use video_cards_radeonsi; then |
1439 |
- ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi" |
1440 |
- fi |
1441 |
- fi |
1442 |
- |
1443 |
- if use vaapi; then |
1444 |
- if ! use video_cards_r600 && |
1445 |
- ! use video_cards_radeonsi && |
1446 |
- ! use video_cards_nouveau; then |
1447 |
- ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau" |
1448 |
- fi |
1449 |
- fi |
1450 |
- |
1451 |
- if use vdpau; then |
1452 |
- if ! use video_cards_r300 && |
1453 |
- ! use video_cards_r600 && |
1454 |
- ! use video_cards_radeonsi && |
1455 |
- ! use video_cards_nouveau; then |
1456 |
- ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau" |
1457 |
- fi |
1458 |
- fi |
1459 |
- |
1460 |
- if use xa; then |
1461 |
- if ! use video_cards_freedreno && |
1462 |
- ! use video_cards_nouveau && |
1463 |
- ! use video_cards_vmware; then |
1464 |
- ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware" |
1465 |
- fi |
1466 |
- fi |
1467 |
- |
1468 |
- if use xvmc; then |
1469 |
- if ! use video_cards_r600 && |
1470 |
- ! use video_cards_nouveau; then |
1471 |
- ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau" |
1472 |
- fi |
1473 |
- fi |
1474 |
- |
1475 |
- if ! use gallium; then |
1476 |
- use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium" |
1477 |
- use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium" |
1478 |
- use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium" |
1479 |
- use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium" |
1480 |
- use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium" |
1481 |
- use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium" |
1482 |
- use xa && ewarn "Ignoring USE=xa since USE does not contain gallium" |
1483 |
- use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium" |
1484 |
- fi |
1485 |
- |
1486 |
- if ! use llvm; then |
1487 |
- use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm" |
1488 |
- fi |
1489 |
- |
1490 |
- if use osmesa && ! use llvm; then |
1491 |
- ewarn "OSMesa will be slow without enabling USE=llvm" |
1492 |
- fi |
1493 |
-} |
1494 |
- |
1495 |
-python_check_deps() { |
1496 |
- has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]" |
1497 |
-} |
1498 |
- |
1499 |
-pkg_setup() { |
1500 |
- # warning message for bug 459306 |
1501 |
- if use llvm && has_version sys-devel/llvm[!debug=]; then |
1502 |
- ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm" |
1503 |
- ewarn "detected! This can cause problems. For details, see bug 459306." |
1504 |
- fi |
1505 |
- |
1506 |
- if use video_cards_i965 || |
1507 |
- use video_cards_iris || |
1508 |
- use video_cards_radeonsi; then |
1509 |
- if kernel_is -ge 5 11 3; then |
1510 |
- CONFIG_CHECK="~KCMP" |
1511 |
- elif kernel_is -ge 5 11; then |
1512 |
- CONFIG_CHECK="~CHECKPOINT_RESTORE" |
1513 |
- elif kernel_is -ge 5 10 20; then |
1514 |
- CONFIG_CHECK="~KCMP" |
1515 |
- else |
1516 |
- CONFIG_CHECK="~CHECKPOINT_RESTORE" |
1517 |
- fi |
1518 |
- linux-info_pkg_setup |
1519 |
- fi |
1520 |
- |
1521 |
- if use gallium && use llvm; then |
1522 |
- llvm_pkg_setup |
1523 |
- fi |
1524 |
- python-any-r1_pkg_setup |
1525 |
-} |
1526 |
- |
1527 |
-multilib_src_configure() { |
1528 |
- local emesonargs=() |
1529 |
- |
1530 |
- if use classic; then |
1531 |
- # Intel code |
1532 |
- dri_driver_enable video_cards_i915 i915 |
1533 |
- dri_driver_enable video_cards_i965 i965 |
1534 |
- if ! use video_cards_i915 && \ |
1535 |
- ! use video_cards_i965; then |
1536 |
- dri_driver_enable video_cards_intel i915 i965 |
1537 |
- fi |
1538 |
- |
1539 |
- # Nouveau code |
1540 |
- dri_driver_enable video_cards_nouveau nouveau |
1541 |
- |
1542 |
- # ATI code |
1543 |
- dri_driver_enable video_cards_r100 r100 |
1544 |
- dri_driver_enable video_cards_r200 r200 |
1545 |
- if ! use video_cards_r100 && \ |
1546 |
- ! use video_cards_r200; then |
1547 |
- dri_driver_enable video_cards_radeon r100 r200 |
1548 |
- fi |
1549 |
- fi |
1550 |
- |
1551 |
- local platforms |
1552 |
- use X && platforms+="x11" |
1553 |
- use wayland && platforms+=",wayland" |
1554 |
- emesonargs+=(-Dplatforms=${platforms#,}) |
1555 |
- |
1556 |
- if use X || use egl; then |
1557 |
- emesonargs+=(-Dglvnd=true) |
1558 |
- else |
1559 |
- emesonargs+=(-Dglvnd=false) |
1560 |
- fi |
1561 |
- |
1562 |
- if use gallium; then |
1563 |
- emesonargs+=( |
1564 |
- $(meson_feature llvm) |
1565 |
- $(meson_feature lm-sensors lmsensors) |
1566 |
- $(meson_feature unwind libunwind) |
1567 |
- ) |
1568 |
- |
1569 |
- if use video_cards_iris || |
1570 |
- use video_cards_r300 || |
1571 |
- use video_cards_r600 || |
1572 |
- use video_cards_radeonsi || |
1573 |
- use video_cards_nouveau || |
1574 |
- use video_cards_vmware; then |
1575 |
- emesonargs+=($(meson_use d3d9 gallium-nine)) |
1576 |
- else |
1577 |
- emesonargs+=(-Dgallium-nine=false) |
1578 |
- fi |
1579 |
- |
1580 |
- if use video_cards_r600 || |
1581 |
- use video_cards_radeonsi || |
1582 |
- use video_cards_nouveau; then |
1583 |
- emesonargs+=($(meson_feature vaapi gallium-va)) |
1584 |
- use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers ) |
1585 |
- else |
1586 |
- emesonargs+=(-Dgallium-va=disabled) |
1587 |
- fi |
1588 |
- |
1589 |
- if use video_cards_r300 || |
1590 |
- use video_cards_r600 || |
1591 |
- use video_cards_radeonsi || |
1592 |
- use video_cards_nouveau; then |
1593 |
- emesonargs+=($(meson_feature vdpau gallium-vdpau)) |
1594 |
- else |
1595 |
- emesonargs+=(-Dgallium-vdpau=disabled) |
1596 |
- fi |
1597 |
- |
1598 |
- if use video_cards_freedreno || |
1599 |
- use video_cards_nouveau || |
1600 |
- use video_cards_vmware; then |
1601 |
- emesonargs+=($(meson_feature xa gallium-xa)) |
1602 |
- else |
1603 |
- emesonargs+=(-Dgallium-xa=disabled) |
1604 |
- fi |
1605 |
- |
1606 |
- if use video_cards_r600 || |
1607 |
- use video_cards_nouveau; then |
1608 |
- emesonargs+=($(meson_feature xvmc gallium-xvmc)) |
1609 |
- else |
1610 |
- emesonargs+=(-Dgallium-xvmc=disabled) |
1611 |
- fi |
1612 |
- |
1613 |
- if use video_cards_freedreno || |
1614 |
- use video_cards_lima || |
1615 |
- use video_cards_panfrost || |
1616 |
- use video_cards_v3d || |
1617 |
- use video_cards_vc4 || |
1618 |
- use video_cards_vivante; then |
1619 |
- gallium_enable -- kmsro |
1620 |
- fi |
1621 |
- |
1622 |
- gallium_enable -- swrast |
1623 |
- gallium_enable video_cards_lima lima |
1624 |
- gallium_enable video_cards_panfrost panfrost |
1625 |
- gallium_enable video_cards_v3d v3d |
1626 |
- gallium_enable video_cards_vc4 vc4 |
1627 |
- gallium_enable video_cards_vivante etnaviv |
1628 |
- gallium_enable video_cards_vmware svga |
1629 |
- gallium_enable video_cards_nouveau nouveau |
1630 |
- gallium_enable zink zink |
1631 |
- |
1632 |
- # Only one i915 driver (classic vs gallium). Default to classic. |
1633 |
- if ! use classic; then |
1634 |
- gallium_enable video_cards_i915 i915 |
1635 |
- if ! use video_cards_i915 && \ |
1636 |
- ! use video_cards_i965; then |
1637 |
- gallium_enable video_cards_intel i915 |
1638 |
- fi |
1639 |
- fi |
1640 |
- |
1641 |
- gallium_enable video_cards_iris iris |
1642 |
- |
1643 |
- gallium_enable video_cards_r300 r300 |
1644 |
- gallium_enable video_cards_r600 r600 |
1645 |
- gallium_enable video_cards_radeonsi radeonsi |
1646 |
- if ! use video_cards_r300 && \ |
1647 |
- ! use video_cards_r600; then |
1648 |
- gallium_enable video_cards_radeon r300 r600 |
1649 |
- fi |
1650 |
- |
1651 |
- gallium_enable video_cards_freedreno freedreno |
1652 |
- gallium_enable video_cards_virgl virgl |
1653 |
- |
1654 |
- # opencl stuff |
1655 |
- emesonargs+=( |
1656 |
- -Dgallium-opencl="$(usex opencl icd disabled)" |
1657 |
- ) |
1658 |
- fi |
1659 |
- |
1660 |
- if use vulkan; then |
1661 |
- vulkan_enable video_cards_i965 intel |
1662 |
- vulkan_enable video_cards_iris intel |
1663 |
- vulkan_enable video_cards_radeonsi amd |
1664 |
- vulkan_enable video_cards_v3d broadcom |
1665 |
- fi |
1666 |
- |
1667 |
- driver_list() { |
1668 |
- local drivers="$(sort -u <<< "${1// /$'\n'}")" |
1669 |
- echo "${drivers//$'\n'/,}" |
1670 |
- } |
1671 |
- |
1672 |
- emesonargs+=( |
1673 |
- $(meson_use test build-tests) |
1674 |
- -Dglx=$(usex X dri disabled) |
1675 |
- -Dshared-glapi=enabled |
1676 |
- $(meson_feature dri3) |
1677 |
- $(meson_feature egl) |
1678 |
- $(meson_feature gbm) |
1679 |
- $(meson_feature gles1) |
1680 |
- $(meson_feature gles2) |
1681 |
- $(meson_use osmesa) |
1682 |
- $(meson_use selinux) |
1683 |
- $(meson_feature zstd) |
1684 |
- -Dvalgrind=$(usex valgrind auto false) |
1685 |
- -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}") |
1686 |
- -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}") |
1687 |
- -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}") |
1688 |
- $(meson_use vulkan vulkan-device-select-layer) |
1689 |
- $(meson_use vulkan-overlay vulkan-overlay-layer) |
1690 |
- --buildtype $(usex debug debug plain) |
1691 |
- -Db_ndebug=$(usex debug false true) |
1692 |
- ) |
1693 |
- meson_src_configure |
1694 |
-} |
1695 |
- |
1696 |
-multilib_src_compile() { |
1697 |
- meson_src_compile |
1698 |
-} |
1699 |
- |
1700 |
-multilib_src_install() { |
1701 |
- meson_src_install |
1702 |
-} |
1703 |
- |
1704 |
-multilib_src_install_all() { |
1705 |
- einstalldocs |
1706 |
-} |
1707 |
- |
1708 |
-multilib_src_test() { |
1709 |
- meson_src_test -t 100 |
1710 |
-} |
1711 |
- |
1712 |
-# $1 - VIDEO_CARDS flag (check skipped for "--") |
1713 |
-# other args - names of DRI drivers to enable |
1714 |
-dri_driver_enable() { |
1715 |
- if [[ $1 == -- ]] || use $1; then |
1716 |
- shift |
1717 |
- DRI_DRIVERS+=("$@") |
1718 |
- fi |
1719 |
-} |
1720 |
- |
1721 |
-gallium_enable() { |
1722 |
- if [[ $1 == -- ]] || use $1; then |
1723 |
- shift |
1724 |
- GALLIUM_DRIVERS+=("$@") |
1725 |
- fi |
1726 |
-} |
1727 |
- |
1728 |
-vulkan_enable() { |
1729 |
- if [[ $1 == -- ]] || use $1; then |
1730 |
- shift |
1731 |
- VULKAN_DRIVERS+=("$@") |
1732 |
- fi |
1733 |
-} |