Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/
Date: Thu, 31 Dec 2020 16:59:19
Message-Id: 1609433934.22046d8946dabce9b72a83f95be004a26271fa18.mattst88@gentoo
1 commit: 22046d8946dabce9b72a83f95be004a26271fa18
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 31 16:55:08 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 31 16:58:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22046d89
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 | 2 -
13 media-libs/mesa/mesa-20.1.10.ebuild | 543 -----------------------------------
14 media-libs/mesa/mesa-20.3.1.ebuild | 558 ------------------------------------
15 3 files changed, 1103 deletions(-)
16
17 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
18 index eadf3f2dfe5..c260532cfb3 100644
19 --- a/media-libs/mesa/Manifest
20 +++ b/media-libs/mesa/Manifest
21 @@ -1,5 +1,3 @@
22 -DIST mesa-20.1.10.tar.xz 12918420 BLAKE2B 408f4bc6eb0dc11199cd161d6914b77cb57313bca94f26794cbfd05332922c45dc216a64e33df9fad64cd41e1ad8b2de6c2e5f99cad234870f7a5b970a62dcbd SHA512 0d4016abfcc733c853d7b6c3c997ddc554a44088c0a4d9a7edb51ab5ad7d9e1234728b61ffcb9c82a6c5fee1429091a1c31cbeabcb1b50411337b99ee550d28a
23 DIST mesa-20.2.4.tar.xz 13869928 BLAKE2B 078dc88be08d3b41d5144c4d72b0044512dc77c7afcbc6366dc7b9d435886afc65009277b215f6e2898cef98a7c52fb232d8b36bd6e6d1114326302d5acc9216 SHA512 e60decb867a3ca08b99e72aa62db8c5515696bf4a9e2642c1703479167a79b0828192f6dcca688263f5786cd524308a4410e47111fa7b97c091473e4ac4ee799
24 DIST mesa-20.2.6.tar.xz 13886924 BLAKE2B 2bc5d680979b58a77105a8058da5dfea81afe05166a44d08cf243e5760b8c66e418fd78046a2c88243f56aa85a610d052f3aaf259938668cd0f4a184e9edca46 SHA512 347b275d88c0d14cacef570ed736cac07f2e607bc4c89a16b915ec01ac57dbbe698ddf9a0ad70f034e00318403351e3c728e74c72c653acf1fc99720887fa888
25 -DIST mesa-20.3.1.tar.xz 14176916 BLAKE2B a557949f5cddedee1ee157d982ff74330984c8e1f3a60731397234a2154ee908d1fd38b6f436ea139ba28ba7b45b597bfcd99d1cebd1a0a84bce4c071e591fd6 SHA512 06638b8d2d866b5e27024c58a2ca03a73869221a7d536f7a8f1679d73708e5c1713446c8fedc594844b95596ae817bfceb88ace6b42423328189778e5036edf6
26 DIST mesa-20.3.2.tar.xz 14194120 BLAKE2B 545073b7f3f9dd54e087402b599ffa55e37a6a0b2422a52fc22cbe8de0b91a88603bd2241e2308f6891cdab731f0e01c9c9683028819aebcf3251ef3ae3db9bf SHA512 0cabf8ddfd20b56098c8f4c081a3c2d4741ef42f40c929645e74284db99cf2a81137d7d279b7b6a0c15dea83905119ddf612411b36344dc22a488de9f311f5ed
27
28 diff --git a/media-libs/mesa/mesa-20.1.10.ebuild b/media-libs/mesa/mesa-20.1.10.ebuild
29 deleted file mode 100644
30 index e025c6db502..00000000000
31 --- a/media-libs/mesa/mesa-20.1.10.ebuild
32 +++ /dev/null
33 @@ -1,543 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -PYTHON_COMPAT=( python3_{6..9} )
40 -
41 -inherit llvm meson multilib-minimal python-any-r1 linux-info
42 -
43 -OPENGL_DIR="xorg-x11"
44 -
45 -MY_P="${P/_/-}"
46 -
47 -DESCRIPTION="OpenGL-like graphic library for Linux"
48 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
49 -
50 -if [[ ${PV} == 9999 ]]; then
51 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
52 - inherit git-r3
53 -else
54 - SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz"
55 - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
56 -fi
57 -
58 -LICENSE="MIT"
59 -SLOT="0"
60 -RESTRICT="
61 - !test? ( test )
62 -"
63 -
64 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
65 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost vc4 virgl vivante vmware"
66 -for card in ${VIDEO_CARDS}; do
67 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
68 -done
69 -
70 -IUSE="${IUSE_VIDEO_CARDS}
71 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm
72 - lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan
73 - vulkan-overlay wayland +X xa xvmc +zstd"
74 -
75 -REQUIRED_USE="
76 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
77 - gles1? ( egl )
78 - gles2? ( egl )
79 - vulkan? ( dri3
80 - video_cards_radeonsi? ( llvm ) )
81 - vulkan-overlay? ( vulkan )
82 - wayland? ( egl gbm )
83 - video_cards_freedreno? ( gallium )
84 - video_cards_intel? ( classic )
85 - video_cards_i915? ( || ( classic gallium ) )
86 - video_cards_i965? ( classic )
87 - video_cards_iris? ( gallium )
88 - video_cards_lima? ( gallium )
89 - video_cards_nouveau? ( || ( classic gallium ) )
90 - video_cards_panfrost? ( gallium )
91 - video_cards_radeon? ( || ( classic gallium )
92 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
93 - video_cards_r100? ( classic )
94 - video_cards_r200? ( classic )
95 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
96 - video_cards_r600? ( gallium )
97 - video_cards_radeonsi? ( gallium llvm )
98 - video_cards_vc4? ( gallium )
99 - video_cards_virgl? ( gallium )
100 - video_cards_vivante? ( gallium gbm )
101 - video_cards_vmware? ( gallium )
102 - xa? ( X )
103 - xvmc? ( X )
104 -"
105 -
106 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
107 -RDEPEND="
108 - !app-eselect/eselect-mesa
109 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
110 - >=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}]
111 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
112 - gallium? (
113 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
114 - llvm? (
115 - video_cards_radeonsi? (
116 - virtual/libelf:0=[${MULTILIB_USEDEP}]
117 - )
118 - video_cards_r600? (
119 - virtual/libelf:0=[${MULTILIB_USEDEP}]
120 - )
121 - video_cards_radeon? (
122 - virtual/libelf:0=[${MULTILIB_USEDEP}]
123 - )
124 - )
125 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
126 - opencl? (
127 - >=virtual/opencl-3[${MULTILIB_USEDEP}]
128 - dev-libs/libclc
129 - virtual/libelf:0=[${MULTILIB_USEDEP}]
130 - )
131 - vaapi? (
132 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
133 - )
134 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
135 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
136 - )
137 - selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
138 - wayland? (
139 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
140 - >=dev-libs/wayland-protocols-1.8
141 - )
142 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
143 - video_cards_intel? (
144 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
145 - )
146 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
147 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
148 - X? (
149 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
150 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
151 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
152 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
153 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
154 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
155 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
156 - )
157 - zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
158 -"
159 -for card in ${RADEON_CARDS}; do
160 - RDEPEND="${RDEPEND}
161 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
162 - "
163 -done
164 -RDEPEND="${RDEPEND}
165 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
166 -"
167 -
168 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
169 -# we need to *really* make sure we're not pulling one than more slot
170 -# simultaneously.
171 -#
172 -# How to use it:
173 -# 1. List all the working slots (with min versions) in ||, newest first.
174 -# 2. Update the := to specify *max* version, e.g. < 10.
175 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
176 -LLVM_MAX_SLOT="10"
177 -LLVM_DEPSTR="
178 - || (
179 - sys-devel/llvm:10[${MULTILIB_USEDEP}]
180 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
181 - )
182 - <sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}]
183 -"
184 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
185 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
186 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
187 -RDEPEND="${RDEPEND}
188 - gallium? (
189 - llvm? (
190 - opencl? (
191 - video_cards_r600? (
192 - ${CLANG_DEPSTR_AMDGPU}
193 - )
194 - !video_cards_r600? (
195 - video_cards_radeonsi? (
196 - ${CLANG_DEPSTR_AMDGPU}
197 - )
198 - )
199 - !video_cards_r600? (
200 - !video_cards_radeonsi? (
201 - video_cards_radeon? (
202 - ${CLANG_DEPSTR_AMDGPU}
203 - )
204 - )
205 - )
206 - !video_cards_r600? (
207 - !video_cards_radeon? (
208 - !video_cards_radeonsi? (
209 - ${CLANG_DEPSTR}
210 - )
211 - )
212 - )
213 - )
214 - !opencl? (
215 - video_cards_r600? (
216 - ${LLVM_DEPSTR_AMDGPU}
217 - )
218 - !video_cards_r600? (
219 - video_cards_radeonsi? (
220 - ${LLVM_DEPSTR_AMDGPU}
221 - )
222 - )
223 - !video_cards_r600? (
224 - !video_cards_radeonsi? (
225 - video_cards_radeon? (
226 - ${LLVM_DEPSTR_AMDGPU}
227 - )
228 - )
229 - )
230 - !video_cards_r600? (
231 - !video_cards_radeon? (
232 - !video_cards_radeonsi? (
233 - ${LLVM_DEPSTR}
234 - )
235 - )
236 - )
237 - )
238 - )
239 - )
240 -"
241 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
242 -
243 -DEPEND="${RDEPEND}
244 - valgrind? ( dev-util/valgrind )
245 - X? (
246 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
247 - x11-base/xorg-proto
248 - )
249 -"
250 -BDEPEND="
251 - ${PYTHON_DEPS}
252 - opencl? (
253 - >=sys-devel/gcc-4.6
254 - )
255 - sys-devel/bison
256 - sys-devel/flex
257 - sys-devel/gettext
258 - virtual/pkgconfig
259 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
260 -"
261 -
262 -S="${WORKDIR}/${MY_P}"
263 -EGIT_CHECKOUT_DIR=${S}
264 -
265 -QA_WX_LOAD="
266 -x86? (
267 - usr/lib*/libglapi.so.0.0.0
268 - usr/lib*/libGLESv1_CM.so.1.1.0
269 - usr/lib*/libGLESv2.so.2.0.0
270 - usr/lib*/libGL.so.1.2.0
271 - usr/lib*/libOSMesa.so.8.0.0
272 - usr/lib/libGLX_mesa.so.0.0.0
273 -)"
274 -
275 -llvm_check_deps() {
276 - local flags=${MULTILIB_USEDEP}
277 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
278 - then
279 - flags+=",llvm_targets_AMDGPU(-)"
280 - fi
281 -
282 - if use opencl; then
283 - has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
284 - fi
285 - has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
286 -}
287 -
288 -pkg_pretend() {
289 - if use vulkan; then
290 - if ! use video_cards_i965 &&
291 - ! use video_cards_iris &&
292 - ! use video_cards_radeonsi; then
293 - ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, iris, or radeonsi"
294 - fi
295 - fi
296 -
297 - if use opencl; then
298 - if ! use video_cards_r600 &&
299 - ! use video_cards_radeonsi; then
300 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
301 - fi
302 - fi
303 -
304 - if use vaapi; then
305 - if ! use video_cards_r600 &&
306 - ! use video_cards_radeonsi &&
307 - ! use video_cards_nouveau; then
308 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
309 - fi
310 - fi
311 -
312 - if use vdpau; then
313 - if ! use video_cards_r300 &&
314 - ! use video_cards_r600 &&
315 - ! use video_cards_radeonsi &&
316 - ! use video_cards_nouveau; then
317 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
318 - fi
319 - fi
320 -
321 - if use xa; then
322 - if ! use video_cards_freedreno &&
323 - ! use video_cards_nouveau &&
324 - ! use video_cards_vmware; then
325 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
326 - fi
327 - fi
328 -
329 - if use xvmc; then
330 - if ! use video_cards_r600 &&
331 - ! use video_cards_nouveau; then
332 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
333 - fi
334 - fi
335 -
336 - if ! use gallium; then
337 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
338 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
339 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
340 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
341 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
342 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
343 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
344 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
345 - fi
346 -
347 - if ! use llvm; then
348 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
349 - fi
350 -}
351 -
352 -python_check_deps() {
353 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
354 -}
355 -
356 -pkg_setup() {
357 - # warning message for bug 459306
358 - if use llvm && has_version sys-devel/llvm[!debug=]; then
359 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
360 - ewarn "detected! This can cause problems. For details, see bug 459306."
361 - fi
362 -
363 - if use video_cards_i965 ||
364 - use video_cards_iris ||
365 - use video_cards_radeonsi; then
366 - CONFIG_CHECK="~CHECKPOINT_RESTORE"
367 - linux-info_pkg_setup
368 - fi
369 -
370 - if use gallium && use llvm; then
371 - llvm_pkg_setup
372 - fi
373 - python-any-r1_pkg_setup
374 -}
375 -
376 -multilib_src_configure() {
377 - local emesonargs=()
378 -
379 - if use classic; then
380 - # Intel code
381 - dri_driver_enable video_cards_i915 i915
382 - dri_driver_enable video_cards_i965 i965
383 - if ! use video_cards_i915 && \
384 - ! use video_cards_i965; then
385 - dri_driver_enable video_cards_intel i915 i965
386 - fi
387 -
388 - # Nouveau code
389 - dri_driver_enable video_cards_nouveau nouveau
390 -
391 - # ATI code
392 - dri_driver_enable video_cards_r100 r100
393 - dri_driver_enable video_cards_r200 r200
394 - if ! use video_cards_r100 && \
395 - ! use video_cards_r200; then
396 - dri_driver_enable video_cards_radeon r100 r200
397 - fi
398 - fi
399 -
400 - emesonargs+=( -Dplatforms=$(use X && echo "x11,")$(use wayland && echo "wayland,")$(use gbm && echo "drm,")surfaceless )
401 -
402 - if use gallium; then
403 - emesonargs+=(
404 - $(meson_use llvm)
405 - $(meson_use lm-sensors lmsensors)
406 - $(meson_use unwind libunwind)
407 - )
408 -
409 - if use video_cards_iris ||
410 - use video_cards_r300 ||
411 - use video_cards_r600 ||
412 - use video_cards_radeonsi ||
413 - use video_cards_nouveau ||
414 - use video_cards_vmware; then
415 - emesonargs+=($(meson_use d3d9 gallium-nine))
416 - else
417 - emesonargs+=(-Dgallium-nine=false)
418 - fi
419 -
420 - if use video_cards_r600 ||
421 - use video_cards_radeonsi ||
422 - use video_cards_nouveau; then
423 - emesonargs+=($(meson_use vaapi gallium-va))
424 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
425 - else
426 - emesonargs+=(-Dgallium-va=false)
427 - fi
428 -
429 - if use video_cards_r300 ||
430 - use video_cards_r600 ||
431 - use video_cards_radeonsi ||
432 - use video_cards_nouveau; then
433 - emesonargs+=($(meson_use vdpau gallium-vdpau))
434 - else
435 - emesonargs+=(-Dgallium-vdpau=false)
436 - fi
437 -
438 - if use video_cards_freedreno ||
439 - use video_cards_nouveau ||
440 - use video_cards_vmware; then
441 - emesonargs+=($(meson_use xa gallium-xa))
442 - else
443 - emesonargs+=(-Dgallium-xa=false)
444 - fi
445 -
446 - if use video_cards_r600 ||
447 - use video_cards_nouveau; then
448 - emesonargs+=($(meson_use xvmc gallium-xvmc))
449 - else
450 - emesonargs+=(-Dgallium-xvmc=false)
451 - fi
452 -
453 - if use video_cards_freedreno ||
454 - use video_cards_lima ||
455 - use video_cards_panfrost ||
456 - use video_cards_vc4 ||
457 - use video_cards_vivante; then
458 - gallium_enable -- kmsro
459 - fi
460 -
461 - gallium_enable video_cards_lima lima
462 - gallium_enable video_cards_panfrost panfrost
463 - gallium_enable video_cards_vc4 vc4
464 - gallium_enable video_cards_vivante etnaviv
465 - gallium_enable video_cards_vmware svga
466 - gallium_enable video_cards_nouveau nouveau
467 -
468 - # Only one i915 driver (classic vs gallium). Default to classic.
469 - if ! use classic; then
470 - gallium_enable video_cards_i915 i915
471 - if ! use video_cards_i915 && \
472 - ! use video_cards_i965; then
473 - gallium_enable video_cards_intel i915
474 - fi
475 - fi
476 -
477 - gallium_enable video_cards_iris iris
478 -
479 - gallium_enable video_cards_r300 r300
480 - gallium_enable video_cards_r600 r600
481 - gallium_enable video_cards_radeonsi radeonsi
482 - if ! use video_cards_r300 && \
483 - ! use video_cards_r600; then
484 - gallium_enable video_cards_radeon r300 r600
485 - fi
486 -
487 - gallium_enable video_cards_freedreno freedreno
488 - gallium_enable video_cards_virgl virgl
489 -
490 - # opencl stuff
491 - emesonargs+=(
492 - -Dgallium-opencl="$(usex opencl icd disabled)"
493 - )
494 - fi
495 -
496 - if use vulkan; then
497 - vulkan_enable video_cards_i965 intel
498 - vulkan_enable video_cards_iris intel
499 - vulkan_enable video_cards_radeonsi amd
500 - fi
501 -
502 - if use gallium; then
503 - gallium_enable -- swrast
504 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
505 - else
506 - dri_driver_enable -- swrast
507 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
508 - fi
509 -
510 - driver_list() {
511 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
512 - echo "${drivers//$'\n'/,}"
513 - }
514 -
515 - emesonargs+=(
516 - $(meson_use test build-tests)
517 - -Dglx=$(usex X dri disabled)
518 - -Dglvnd=true
519 - -Dshared-glapi=true
520 - $(meson_use dri3)
521 - $(meson_use egl)
522 - $(meson_use gbm)
523 - $(meson_use gles1)
524 - $(meson_use gles2)
525 - $(meson_use selinux)
526 - $(meson_use zstd)
527 - -Dvalgrind=$(usex valgrind auto false)
528 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
529 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
530 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
531 - $(meson_use vulkan vulkan-device-select-layer)
532 - $(meson_use vulkan-overlay vulkan-overlay-layer)
533 - --buildtype $(usex debug debug plain)
534 - -Db_ndebug=$(usex debug false true)
535 - )
536 - meson_src_configure
537 -}
538 -
539 -multilib_src_compile() {
540 - meson_src_compile
541 -}
542 -
543 -multilib_src_install() {
544 - meson_src_install
545 -}
546 -
547 -multilib_src_install_all() {
548 - einstalldocs
549 -}
550 -
551 -multilib_src_test() {
552 - meson test -v -C "${BUILD_DIR}" -t 100 || die "tests failed"
553 -}
554 -
555 -# $1 - VIDEO_CARDS flag (check skipped for "--")
556 -# other args - names of DRI drivers to enable
557 -dri_driver_enable() {
558 - if [[ $1 == -- ]] || use $1; then
559 - shift
560 - DRI_DRIVERS+=("$@")
561 - fi
562 -}
563 -
564 -gallium_enable() {
565 - if [[ $1 == -- ]] || use $1; then
566 - shift
567 - GALLIUM_DRIVERS+=("$@")
568 - fi
569 -}
570 -
571 -vulkan_enable() {
572 - if [[ $1 == -- ]] || use $1; then
573 - shift
574 - VULKAN_DRIVERS+=("$@")
575 - fi
576 -}
577
578 diff --git a/media-libs/mesa/mesa-20.3.1.ebuild b/media-libs/mesa/mesa-20.3.1.ebuild
579 deleted file mode 100644
580 index 4a9d566b07c..00000000000
581 --- a/media-libs/mesa/mesa-20.3.1.ebuild
582 +++ /dev/null
583 @@ -1,558 +0,0 @@
584 -# Copyright 1999-2020 Gentoo Authors
585 -# Distributed under the terms of the GNU General Public License v2
586 -
587 -EAPI=7
588 -
589 -PYTHON_COMPAT=( python3_{6,7,8,9} )
590 -
591 -inherit llvm meson multilib-minimal python-any-r1 linux-info
592 -
593 -OPENGL_DIR="xorg-x11"
594 -
595 -MY_P="${P/_/-}"
596 -
597 -DESCRIPTION="OpenGL-like graphic library for Linux"
598 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
599 -
600 -if [[ ${PV} == 9999 ]]; then
601 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
602 - inherit git-r3
603 -else
604 - SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz"
605 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
606 -fi
607 -
608 -LICENSE="MIT"
609 -SLOT="0"
610 -RESTRICT="
611 - !test? ( test )
612 -"
613 -
614 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
615 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost v3d vc4 virgl vivante vmware"
616 -for card in ${VIDEO_CARDS}; do
617 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
618 -done
619 -
620 -IUSE="${IUSE_VIDEO_CARDS}
621 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm
622 - lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan
623 - vulkan-overlay wayland +X xa xvmc zink +zstd"
624 -
625 -REQUIRED_USE="
626 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
627 - gles1? ( egl )
628 - gles2? ( egl )
629 - vulkan? ( dri3
630 - video_cards_radeonsi? ( llvm ) )
631 - vulkan-overlay? ( vulkan )
632 - wayland? ( egl gbm )
633 - video_cards_freedreno? ( gallium )
634 - video_cards_intel? ( classic )
635 - video_cards_i915? ( || ( classic gallium ) )
636 - video_cards_i965? ( classic )
637 - video_cards_iris? ( gallium )
638 - video_cards_lima? ( gallium )
639 - video_cards_nouveau? ( || ( classic gallium ) )
640 - video_cards_panfrost? ( gallium )
641 - video_cards_radeon? ( || ( classic gallium )
642 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
643 - video_cards_r100? ( classic )
644 - video_cards_r200? ( classic )
645 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
646 - video_cards_r600? ( gallium )
647 - video_cards_radeonsi? ( gallium llvm )
648 - video_cards_v3d? ( gallium )
649 - video_cards_vc4? ( gallium )
650 - video_cards_virgl? ( gallium )
651 - video_cards_vivante? ( gallium gbm )
652 - video_cards_vmware? ( gallium )
653 - xa? ( X )
654 - xvmc? ( X )
655 - zink? ( gallium vulkan )
656 -"
657 -
658 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
659 -RDEPEND="
660 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
661 - >=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}]
662 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
663 - gallium? (
664 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
665 - llvm? (
666 - video_cards_radeonsi? (
667 - virtual/libelf:0=[${MULTILIB_USEDEP}]
668 - )
669 - video_cards_r600? (
670 - virtual/libelf:0=[${MULTILIB_USEDEP}]
671 - )
672 - video_cards_radeon? (
673 - virtual/libelf:0=[${MULTILIB_USEDEP}]
674 - )
675 - )
676 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
677 - opencl? (
678 - >=virtual/opencl-3[${MULTILIB_USEDEP}]
679 - dev-libs/libclc
680 - virtual/libelf:0=[${MULTILIB_USEDEP}]
681 - )
682 - vaapi? (
683 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
684 - )
685 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
686 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
687 - )
688 - selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
689 - wayland? (
690 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
691 - >=dev-libs/wayland-protocols-1.8
692 - )
693 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
694 - video_cards_intel? (
695 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
696 - )
697 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
698 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
699 - X? (
700 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
701 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
702 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
703 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
704 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
705 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
706 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
707 - )
708 - zink? ( media-libs/vulkan-loader:=[${MULTILIB_USEDEP}] )
709 - zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
710 -"
711 -for card in ${RADEON_CARDS}; do
712 - RDEPEND="${RDEPEND}
713 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
714 - "
715 -done
716 -RDEPEND="${RDEPEND}
717 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
718 -"
719 -
720 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
721 -# we need to *really* make sure we're not pulling one than more slot
722 -# simultaneously.
723 -#
724 -# How to use it:
725 -# 1. List all the working slots (with min versions) in ||, newest first.
726 -# 2. Update the := to specify *max* version, e.g. < 10.
727 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
728 -LLVM_MAX_SLOT="11"
729 -LLVM_DEPSTR="
730 - || (
731 - sys-devel/llvm:11[${MULTILIB_USEDEP}]
732 - sys-devel/llvm:10[${MULTILIB_USEDEP}]
733 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
734 - )
735 - <sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}]
736 -"
737 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
738 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
739 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
740 -RDEPEND="${RDEPEND}
741 - gallium? (
742 - llvm? (
743 - opencl? (
744 - video_cards_r600? (
745 - ${CLANG_DEPSTR_AMDGPU}
746 - )
747 - !video_cards_r600? (
748 - video_cards_radeonsi? (
749 - ${CLANG_DEPSTR_AMDGPU}
750 - )
751 - )
752 - !video_cards_r600? (
753 - !video_cards_radeonsi? (
754 - video_cards_radeon? (
755 - ${CLANG_DEPSTR_AMDGPU}
756 - )
757 - )
758 - )
759 - !video_cards_r600? (
760 - !video_cards_radeon? (
761 - !video_cards_radeonsi? (
762 - ${CLANG_DEPSTR}
763 - )
764 - )
765 - )
766 - )
767 - !opencl? (
768 - video_cards_r600? (
769 - ${LLVM_DEPSTR_AMDGPU}
770 - )
771 - !video_cards_r600? (
772 - video_cards_radeonsi? (
773 - ${LLVM_DEPSTR_AMDGPU}
774 - )
775 - )
776 - !video_cards_r600? (
777 - !video_cards_radeonsi? (
778 - video_cards_radeon? (
779 - ${LLVM_DEPSTR_AMDGPU}
780 - )
781 - )
782 - )
783 - !video_cards_r600? (
784 - !video_cards_radeon? (
785 - !video_cards_radeonsi? (
786 - ${LLVM_DEPSTR}
787 - )
788 - )
789 - )
790 - )
791 - )
792 - )
793 -"
794 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
795 -
796 -DEPEND="${RDEPEND}
797 - valgrind? ( dev-util/valgrind )
798 - X? (
799 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
800 - x11-base/xorg-proto
801 - )
802 -"
803 -BDEPEND="
804 - ${PYTHON_DEPS}
805 - opencl? (
806 - >=sys-devel/gcc-4.6
807 - )
808 - sys-devel/bison
809 - sys-devel/flex
810 - virtual/pkgconfig
811 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
812 -"
813 -
814 -S="${WORKDIR}/${MY_P}"
815 -EGIT_CHECKOUT_DIR=${S}
816 -
817 -QA_WX_LOAD="
818 -x86? (
819 - usr/lib*/libglapi.so.0.0.0
820 - usr/lib*/libGLESv1_CM.so.1.1.0
821 - usr/lib*/libGLESv2.so.2.0.0
822 - usr/lib*/libGL.so.1.2.0
823 - usr/lib*/libOSMesa.so.8.0.0
824 - usr/lib/libGLX_mesa.so.0.0.0
825 -)"
826 -
827 -llvm_check_deps() {
828 - local flags=${MULTILIB_USEDEP}
829 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
830 - then
831 - flags+=",llvm_targets_AMDGPU(-)"
832 - fi
833 -
834 - if use opencl; then
835 - has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
836 - fi
837 - has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
838 -}
839 -
840 -pkg_pretend() {
841 - if use vulkan; then
842 - if ! use video_cards_i965 &&
843 - ! use video_cards_iris &&
844 - ! use video_cards_radeonsi &&
845 - ! use video_cards_v3d; then
846 - ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, iris, radeonsi, or v3d"
847 - fi
848 - fi
849 -
850 - if use opencl; then
851 - if ! use video_cards_r600 &&
852 - ! use video_cards_radeonsi; then
853 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
854 - fi
855 - fi
856 -
857 - if use vaapi; then
858 - if ! use video_cards_r600 &&
859 - ! use video_cards_radeonsi &&
860 - ! use video_cards_nouveau; then
861 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
862 - fi
863 - fi
864 -
865 - if use vdpau; then
866 - if ! use video_cards_r300 &&
867 - ! use video_cards_r600 &&
868 - ! use video_cards_radeonsi &&
869 - ! use video_cards_nouveau; then
870 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
871 - fi
872 - fi
873 -
874 - if use xa; then
875 - if ! use video_cards_freedreno &&
876 - ! use video_cards_nouveau &&
877 - ! use video_cards_vmware; then
878 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
879 - fi
880 - fi
881 -
882 - if use xvmc; then
883 - if ! use video_cards_r600 &&
884 - ! use video_cards_nouveau; then
885 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
886 - fi
887 - fi
888 -
889 - if ! use gallium; then
890 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
891 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
892 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
893 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
894 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
895 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
896 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
897 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
898 - fi
899 -
900 - if ! use llvm; then
901 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
902 - fi
903 -}
904 -
905 -python_check_deps() {
906 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
907 -}
908 -
909 -pkg_setup() {
910 - # warning message for bug 459306
911 - if use llvm && has_version sys-devel/llvm[!debug=]; then
912 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
913 - ewarn "detected! This can cause problems. For details, see bug 459306."
914 - fi
915 -
916 - if use video_cards_i965 ||
917 - use video_cards_iris ||
918 - use video_cards_radeonsi; then
919 - CONFIG_CHECK="~CHECKPOINT_RESTORE"
920 - linux-info_pkg_setup
921 - fi
922 -
923 - if use gallium && use llvm; then
924 - llvm_pkg_setup
925 - fi
926 - python-any-r1_pkg_setup
927 -}
928 -
929 -multilib_src_configure() {
930 - local emesonargs=()
931 -
932 - if use classic; then
933 - # Intel code
934 - dri_driver_enable video_cards_i915 i915
935 - dri_driver_enable video_cards_i965 i965
936 - if ! use video_cards_i915 && \
937 - ! use video_cards_i965; then
938 - dri_driver_enable video_cards_intel i915 i965
939 - fi
940 -
941 - # Nouveau code
942 - dri_driver_enable video_cards_nouveau nouveau
943 -
944 - # ATI code
945 - dri_driver_enable video_cards_r100 r100
946 - dri_driver_enable video_cards_r200 r200
947 - if ! use video_cards_r100 && \
948 - ! use video_cards_r200; then
949 - dri_driver_enable video_cards_radeon r100 r200
950 - fi
951 - fi
952 -
953 - local platforms
954 - use X && platforms+="x11"
955 - use wayland && platforms+=",wayland"
956 - [[ -n $platforms ]] && emesonargs+=(-Dplatforms=${platforms#,})
957 -
958 - if use X || use egl; then
959 - emesonargs+=(-Dglvnd=true)
960 - else
961 - emesonargs+=(-Dglvnd=false)
962 - fi
963 -
964 - if use gallium; then
965 - emesonargs+=(
966 - $(meson_feature llvm)
967 - $(meson_feature lm-sensors lmsensors)
968 - $(meson_feature unwind libunwind)
969 - )
970 -
971 - if use video_cards_iris ||
972 - use video_cards_r300 ||
973 - use video_cards_r600 ||
974 - use video_cards_radeonsi ||
975 - use video_cards_nouveau ||
976 - use video_cards_vmware; then
977 - emesonargs+=($(meson_use d3d9 gallium-nine))
978 - else
979 - emesonargs+=(-Dgallium-nine=false)
980 - fi
981 -
982 - if use video_cards_r600 ||
983 - use video_cards_radeonsi ||
984 - use video_cards_nouveau; then
985 - emesonargs+=($(meson_feature vaapi gallium-va))
986 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
987 - else
988 - emesonargs+=(-Dgallium-va=disabled)
989 - fi
990 -
991 - if use video_cards_r300 ||
992 - use video_cards_r600 ||
993 - use video_cards_radeonsi ||
994 - use video_cards_nouveau; then
995 - emesonargs+=($(meson_feature vdpau gallium-vdpau))
996 - else
997 - emesonargs+=(-Dgallium-vdpau=disabled)
998 - fi
999 -
1000 - if use video_cards_freedreno ||
1001 - use video_cards_nouveau ||
1002 - use video_cards_vmware; then
1003 - emesonargs+=($(meson_feature xa gallium-xa))
1004 - else
1005 - emesonargs+=(-Dgallium-xa=disabled)
1006 - fi
1007 -
1008 - if use video_cards_r600 ||
1009 - use video_cards_nouveau; then
1010 - emesonargs+=($(meson_feature xvmc gallium-xvmc))
1011 - else
1012 - emesonargs+=(-Dgallium-xvmc=disabled)
1013 - fi
1014 -
1015 - if use video_cards_freedreno ||
1016 - use video_cards_lima ||
1017 - use video_cards_panfrost ||
1018 - use video_cards_v3d ||
1019 - use video_cards_vc4 ||
1020 - use video_cards_vivante; then
1021 - gallium_enable -- kmsro
1022 - fi
1023 -
1024 - gallium_enable video_cards_lima lima
1025 - gallium_enable video_cards_panfrost panfrost
1026 - gallium_enable video_cards_v3d v3d
1027 - gallium_enable video_cards_vc4 vc4
1028 - gallium_enable video_cards_vivante etnaviv
1029 - gallium_enable video_cards_vmware svga
1030 - gallium_enable video_cards_nouveau nouveau
1031 - gallium_enable zink zink
1032 -
1033 - # Only one i915 driver (classic vs gallium). Default to classic.
1034 - if ! use classic; then
1035 - gallium_enable video_cards_i915 i915
1036 - if ! use video_cards_i915 && \
1037 - ! use video_cards_i965; then
1038 - gallium_enable video_cards_intel i915
1039 - fi
1040 - fi
1041 -
1042 - gallium_enable video_cards_iris iris
1043 -
1044 - gallium_enable video_cards_r300 r300
1045 - gallium_enable video_cards_r600 r600
1046 - gallium_enable video_cards_radeonsi radeonsi
1047 - if ! use video_cards_r300 && \
1048 - ! use video_cards_r600; then
1049 - gallium_enable video_cards_radeon r300 r600
1050 - fi
1051 -
1052 - gallium_enable video_cards_freedreno freedreno
1053 - gallium_enable video_cards_virgl virgl
1054 -
1055 - # opencl stuff
1056 - emesonargs+=(
1057 - -Dgallium-opencl="$(usex opencl icd disabled)"
1058 - )
1059 - fi
1060 -
1061 - if use vulkan; then
1062 - vulkan_enable video_cards_i965 intel
1063 - vulkan_enable video_cards_iris intel
1064 - vulkan_enable video_cards_radeonsi amd
1065 - vulkan_enable video_cards_v3d broadcom
1066 - fi
1067 -
1068 - if use gallium; then
1069 - gallium_enable -- swrast
1070 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
1071 - else
1072 - dri_driver_enable -- swrast
1073 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
1074 - fi
1075 -
1076 - driver_list() {
1077 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
1078 - echo "${drivers//$'\n'/,}"
1079 - }
1080 -
1081 - emesonargs+=(
1082 - $(meson_use test build-tests)
1083 - -Dglx=$(usex X dri disabled)
1084 - -Dshared-glapi=enabled
1085 - $(meson_feature dri3)
1086 - $(meson_feature egl)
1087 - $(meson_feature gbm)
1088 - $(meson_feature gles1)
1089 - $(meson_feature gles2)
1090 - $(meson_use selinux)
1091 - $(meson_feature zstd)
1092 - -Dvalgrind=$(usex valgrind auto false)
1093 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
1094 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
1095 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
1096 - $(meson_use vulkan vulkan-device-select-layer)
1097 - $(meson_use vulkan-overlay vulkan-overlay-layer)
1098 - --buildtype $(usex debug debug plain)
1099 - -Db_ndebug=$(usex debug false true)
1100 - )
1101 - meson_src_configure
1102 -}
1103 -
1104 -multilib_src_compile() {
1105 - meson_src_compile
1106 -}
1107 -
1108 -multilib_src_install() {
1109 - meson_src_install
1110 -}
1111 -
1112 -multilib_src_install_all() {
1113 - einstalldocs
1114 -}
1115 -
1116 -multilib_src_test() {
1117 - meson_src_test -t 100
1118 -}
1119 -
1120 -# $1 - VIDEO_CARDS flag (check skipped for "--")
1121 -# other args - names of DRI drivers to enable
1122 -dri_driver_enable() {
1123 - if [[ $1 == -- ]] || use $1; then
1124 - shift
1125 - DRI_DRIVERS+=("$@")
1126 - fi
1127 -}
1128 -
1129 -gallium_enable() {
1130 - if [[ $1 == -- ]] || use $1; then
1131 - shift
1132 - GALLIUM_DRIVERS+=("$@")
1133 - fi
1134 -}
1135 -
1136 -vulkan_enable() {
1137 - if [[ $1 == -- ]] || use $1; then
1138 - shift
1139 - VULKAN_DRIVERS+=("$@")
1140 - fi
1141 -}