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: Wed, 30 Sep 2020 21:31:47
Message-Id: 1601501495.3cbee35dee39199802d04663815bbf5754604fbb.mattst88@gentoo
1 commit: 3cbee35dee39199802d04663815bbf5754604fbb
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 30 21:28:05 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 30 21:31:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cbee35d
7
8 media-libs/mesa: Version bump to 20.1.9
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 media-libs/mesa/Manifest | 1 +
13 media-libs/mesa/mesa-20.1.9.ebuild | 543 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 544 insertions(+)
15
16 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
17 index 68ca134d2c2..543a59257ea 100644
18 --- a/media-libs/mesa/Manifest
19 +++ b/media-libs/mesa/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mesa-20.1.8.tar.xz 12846348 BLAKE2B b31680458100fc4394819a379a14237cfe39befea91f53641dc181d29891cb3e508c45f5ea1b07deee97f6bf04b6d8b2ca9cd8270bf79ab4a524035fbdc58c36 SHA512 519b0e2837982d097c362d974a90c94efd1cdf14505fc43eaa740a23c042bc0c3f04d0edaf6b371966d82667cade6d0c68c92528e1be6c12884b38c67fd064c1
22 +DIST mesa-20.1.9.tar.xz 12870484 BLAKE2B 01ef2387e7bfc174b40b530f2ae9ea02dc288bd171d3caedc470808502c21e3949609e94aeb1454a8001fb74c8be9684777fa7d3cc3da2c22758599a09896943 SHA512 0fb8ceff3c91ad2076efb0b2ac7e95d2d72ff1df955eb8fedf712ceaa7f49184eae9958072edd872f5c38adbaeb867988f67627b33da8b208706f69325d7e260
23 DIST mesa-20.2.0.tar.xz 13675596 BLAKE2B d1c6b4ac631446a35eb916d0b2ddbe2a8d75429268b1598b35f5776953b560ac08917bde07e32cf4ca33aa4e6a2713d46dc6de86d717127fbb950f0de2aa6325 SHA512 3dd7def04ba4f196be8fd59999285febb10366e89d6e649c518b436b732c62d3f1bd235fc470de7fda4b4cc09a1baaadca4222dcdc2449225d789b151cea69d7
24
25 diff --git a/media-libs/mesa/mesa-20.1.9.ebuild b/media-libs/mesa/mesa-20.1.9.ebuild
26 new file mode 100644
27 index 00000000000..2d132350da8
28 --- /dev/null
29 +++ b/media-libs/mesa/mesa-20.1.9.ebuild
30 @@ -0,0 +1,543 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{6,7,8} )
37 +
38 +inherit llvm meson multilib-minimal python-any-r1 linux-info
39 +
40 +OPENGL_DIR="xorg-x11"
41 +
42 +MY_P="${P/_/-}"
43 +
44 +DESCRIPTION="OpenGL-like graphic library for Linux"
45 +HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
46 +
47 +if [[ ${PV} == 9999 ]]; then
48 + EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
49 + inherit git-r3
50 +else
51 + SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz"
52 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
53 +fi
54 +
55 +LICENSE="MIT"
56 +SLOT="0"
57 +RESTRICT="
58 + !test? ( test )
59 +"
60 +
61 +RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
62 +VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost vc4 virgl vivante vmware"
63 +for card in ${VIDEO_CARDS}; do
64 + IUSE_VIDEO_CARDS+=" video_cards_${card}"
65 +done
66 +
67 +IUSE="${IUSE_VIDEO_CARDS}
68 + +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm
69 + lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan
70 + vulkan-overlay wayland +X xa xvmc +zstd"
71 +
72 +REQUIRED_USE="
73 + d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
74 + gles1? ( egl )
75 + gles2? ( egl )
76 + vulkan? ( dri3
77 + video_cards_radeonsi? ( llvm ) )
78 + vulkan-overlay? ( vulkan )
79 + wayland? ( egl gbm )
80 + video_cards_freedreno? ( gallium )
81 + video_cards_intel? ( classic )
82 + video_cards_i915? ( || ( classic gallium ) )
83 + video_cards_i965? ( classic )
84 + video_cards_iris? ( gallium )
85 + video_cards_lima? ( gallium )
86 + video_cards_nouveau? ( || ( classic gallium ) )
87 + video_cards_panfrost? ( gallium )
88 + video_cards_radeon? ( || ( classic gallium )
89 + gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
90 + video_cards_r100? ( classic )
91 + video_cards_r200? ( classic )
92 + video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
93 + video_cards_r600? ( gallium )
94 + video_cards_radeonsi? ( gallium llvm )
95 + video_cards_vc4? ( gallium )
96 + video_cards_virgl? ( gallium )
97 + video_cards_vivante? ( gallium gbm )
98 + video_cards_vmware? ( gallium )
99 + xa? ( X )
100 + xvmc? ( X )
101 +"
102 +
103 +LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
104 +RDEPEND="
105 + !app-eselect/eselect-mesa
106 + >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
107 + >=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}]
108 + >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
109 + gallium? (
110 + unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
111 + llvm? (
112 + video_cards_radeonsi? (
113 + virtual/libelf:0=[${MULTILIB_USEDEP}]
114 + )
115 + video_cards_r600? (
116 + virtual/libelf:0=[${MULTILIB_USEDEP}]
117 + )
118 + video_cards_radeon? (
119 + virtual/libelf:0=[${MULTILIB_USEDEP}]
120 + )
121 + )
122 + lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
123 + opencl? (
124 + >=virtual/opencl-3[${MULTILIB_USEDEP}]
125 + dev-libs/libclc
126 + virtual/libelf:0=[${MULTILIB_USEDEP}]
127 + )
128 + vaapi? (
129 + >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
130 + )
131 + vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
132 + xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
133 + )
134 + selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
135 + wayland? (
136 + >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
137 + >=dev-libs/wayland-protocols-1.8
138 + )
139 + ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
140 + video_cards_intel? (
141 + !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
142 + )
143 + video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
144 + vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
145 + X? (
146 + >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
147 + >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
148 + >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
149 + >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
150 + >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
151 + >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
152 + x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
153 + )
154 + zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
155 +"
156 +for card in ${RADEON_CARDS}; do
157 + RDEPEND="${RDEPEND}
158 + video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
159 + "
160 +done
161 +RDEPEND="${RDEPEND}
162 + video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
163 +"
164 +
165 +# Please keep the LLVM dependency block separate. Since LLVM is slotted,
166 +# we need to *really* make sure we're not pulling one than more slot
167 +# simultaneously.
168 +#
169 +# How to use it:
170 +# 1. List all the working slots (with min versions) in ||, newest first.
171 +# 2. Update the := to specify *max* version, e.g. < 10.
172 +# 3. Specify LLVM_MAX_SLOT, e.g. 9.
173 +LLVM_MAX_SLOT="10"
174 +LLVM_DEPSTR="
175 + || (
176 + sys-devel/llvm:10[${MULTILIB_USEDEP}]
177 + sys-devel/llvm:9[${MULTILIB_USEDEP}]
178 + )
179 + <sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}]
180 +"
181 +LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
182 +CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
183 +CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
184 +RDEPEND="${RDEPEND}
185 + gallium? (
186 + llvm? (
187 + opencl? (
188 + video_cards_r600? (
189 + ${CLANG_DEPSTR_AMDGPU}
190 + )
191 + !video_cards_r600? (
192 + video_cards_radeonsi? (
193 + ${CLANG_DEPSTR_AMDGPU}
194 + )
195 + )
196 + !video_cards_r600? (
197 + !video_cards_radeonsi? (
198 + video_cards_radeon? (
199 + ${CLANG_DEPSTR_AMDGPU}
200 + )
201 + )
202 + )
203 + !video_cards_r600? (
204 + !video_cards_radeon? (
205 + !video_cards_radeonsi? (
206 + ${CLANG_DEPSTR}
207 + )
208 + )
209 + )
210 + )
211 + !opencl? (
212 + video_cards_r600? (
213 + ${LLVM_DEPSTR_AMDGPU}
214 + )
215 + !video_cards_r600? (
216 + video_cards_radeonsi? (
217 + ${LLVM_DEPSTR_AMDGPU}
218 + )
219 + )
220 + !video_cards_r600? (
221 + !video_cards_radeonsi? (
222 + video_cards_radeon? (
223 + ${LLVM_DEPSTR_AMDGPU}
224 + )
225 + )
226 + )
227 + !video_cards_r600? (
228 + !video_cards_radeon? (
229 + !video_cards_radeonsi? (
230 + ${LLVM_DEPSTR}
231 + )
232 + )
233 + )
234 + )
235 + )
236 + )
237 +"
238 +unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
239 +
240 +DEPEND="${RDEPEND}
241 + valgrind? ( dev-util/valgrind )
242 + X? (
243 + x11-libs/libXrandr[${MULTILIB_USEDEP}]
244 + x11-base/xorg-proto
245 + )
246 +"
247 +BDEPEND="
248 + ${PYTHON_DEPS}
249 + opencl? (
250 + >=sys-devel/gcc-4.6
251 + )
252 + sys-devel/bison
253 + sys-devel/flex
254 + sys-devel/gettext
255 + virtual/pkgconfig
256 + $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
257 +"
258 +
259 +S="${WORKDIR}/${MY_P}"
260 +EGIT_CHECKOUT_DIR=${S}
261 +
262 +QA_WX_LOAD="
263 +x86? (
264 + usr/lib*/libglapi.so.0.0.0
265 + usr/lib*/libGLESv1_CM.so.1.1.0
266 + usr/lib*/libGLESv2.so.2.0.0
267 + usr/lib*/libGL.so.1.2.0
268 + usr/lib*/libOSMesa.so.8.0.0
269 + usr/lib/libGLX_mesa.so.0.0.0
270 +)"
271 +
272 +llvm_check_deps() {
273 + local flags=${MULTILIB_USEDEP}
274 + if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
275 + then
276 + flags+=",llvm_targets_AMDGPU(-)"
277 + fi
278 +
279 + if use opencl; then
280 + has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
281 + fi
282 + has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
283 +}
284 +
285 +pkg_pretend() {
286 + if use vulkan; then
287 + if ! use video_cards_i965 &&
288 + ! use video_cards_iris &&
289 + ! use video_cards_radeonsi; then
290 + ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, iris, or radeonsi"
291 + fi
292 + fi
293 +
294 + if use opencl; then
295 + if ! use video_cards_r600 &&
296 + ! use video_cards_radeonsi; then
297 + ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
298 + fi
299 + fi
300 +
301 + if use vaapi; then
302 + if ! use video_cards_r600 &&
303 + ! use video_cards_radeonsi &&
304 + ! use video_cards_nouveau; then
305 + ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
306 + fi
307 + fi
308 +
309 + if use vdpau; then
310 + if ! use video_cards_r300 &&
311 + ! use video_cards_r600 &&
312 + ! use video_cards_radeonsi &&
313 + ! use video_cards_nouveau; then
314 + ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
315 + fi
316 + fi
317 +
318 + if use xa; then
319 + if ! use video_cards_freedreno &&
320 + ! use video_cards_nouveau &&
321 + ! use video_cards_vmware; then
322 + ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
323 + fi
324 + fi
325 +
326 + if use xvmc; then
327 + if ! use video_cards_r600 &&
328 + ! use video_cards_nouveau; then
329 + ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
330 + fi
331 + fi
332 +
333 + if ! use gallium; then
334 + use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
335 + use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
336 + use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
337 + use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
338 + use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
339 + use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
340 + use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
341 + use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
342 + fi
343 +
344 + if ! use llvm; then
345 + use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
346 + fi
347 +}
348 +
349 +python_check_deps() {
350 + has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
351 +}
352 +
353 +pkg_setup() {
354 + # warning message for bug 459306
355 + if use llvm && has_version sys-devel/llvm[!debug=]; then
356 + ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
357 + ewarn "detected! This can cause problems. For details, see bug 459306."
358 + fi
359 +
360 + if use video_cards_i965 ||
361 + use video_cards_iris ||
362 + use video_cards_radeonsi; then
363 + CONFIG_CHECK="~CHECKPOINT_RESTORE"
364 + linux-info_pkg_setup
365 + fi
366 +
367 + if use gallium && use llvm; then
368 + llvm_pkg_setup
369 + fi
370 + python-any-r1_pkg_setup
371 +}
372 +
373 +multilib_src_configure() {
374 + local emesonargs=()
375 +
376 + if use classic; then
377 + # Intel code
378 + dri_driver_enable video_cards_i915 i915
379 + dri_driver_enable video_cards_i965 i965
380 + if ! use video_cards_i915 && \
381 + ! use video_cards_i965; then
382 + dri_driver_enable video_cards_intel i915 i965
383 + fi
384 +
385 + # Nouveau code
386 + dri_driver_enable video_cards_nouveau nouveau
387 +
388 + # ATI code
389 + dri_driver_enable video_cards_r100 r100
390 + dri_driver_enable video_cards_r200 r200
391 + if ! use video_cards_r100 && \
392 + ! use video_cards_r200; then
393 + dri_driver_enable video_cards_radeon r100 r200
394 + fi
395 + fi
396 +
397 + emesonargs+=( -Dplatforms=$(use X && echo "x11,")$(use wayland && echo "wayland,")$(use gbm && echo "drm,")surfaceless )
398 +
399 + if use gallium; then
400 + emesonargs+=(
401 + $(meson_use llvm)
402 + $(meson_use lm-sensors lmsensors)
403 + $(meson_use unwind libunwind)
404 + )
405 +
406 + if use video_cards_iris ||
407 + use video_cards_r300 ||
408 + use video_cards_r600 ||
409 + use video_cards_radeonsi ||
410 + use video_cards_nouveau ||
411 + use video_cards_vmware; then
412 + emesonargs+=($(meson_use d3d9 gallium-nine))
413 + else
414 + emesonargs+=(-Dgallium-nine=false)
415 + fi
416 +
417 + if use video_cards_r600 ||
418 + use video_cards_radeonsi ||
419 + use video_cards_nouveau; then
420 + emesonargs+=($(meson_use vaapi gallium-va))
421 + use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
422 + else
423 + emesonargs+=(-Dgallium-va=false)
424 + fi
425 +
426 + if use video_cards_r300 ||
427 + use video_cards_r600 ||
428 + use video_cards_radeonsi ||
429 + use video_cards_nouveau; then
430 + emesonargs+=($(meson_use vdpau gallium-vdpau))
431 + else
432 + emesonargs+=(-Dgallium-vdpau=false)
433 + fi
434 +
435 + if use video_cards_freedreno ||
436 + use video_cards_nouveau ||
437 + use video_cards_vmware; then
438 + emesonargs+=($(meson_use xa gallium-xa))
439 + else
440 + emesonargs+=(-Dgallium-xa=false)
441 + fi
442 +
443 + if use video_cards_r600 ||
444 + use video_cards_nouveau; then
445 + emesonargs+=($(meson_use xvmc gallium-xvmc))
446 + else
447 + emesonargs+=(-Dgallium-xvmc=false)
448 + fi
449 +
450 + if use video_cards_freedreno ||
451 + use video_cards_lima ||
452 + use video_cards_panfrost ||
453 + use video_cards_vc4 ||
454 + use video_cards_vivante; then
455 + gallium_enable -- kmsro
456 + fi
457 +
458 + gallium_enable video_cards_lima lima
459 + gallium_enable video_cards_panfrost panfrost
460 + gallium_enable video_cards_vc4 vc4
461 + gallium_enable video_cards_vivante etnaviv
462 + gallium_enable video_cards_vmware svga
463 + gallium_enable video_cards_nouveau nouveau
464 +
465 + # Only one i915 driver (classic vs gallium). Default to classic.
466 + if ! use classic; then
467 + gallium_enable video_cards_i915 i915
468 + if ! use video_cards_i915 && \
469 + ! use video_cards_i965; then
470 + gallium_enable video_cards_intel i915
471 + fi
472 + fi
473 +
474 + gallium_enable video_cards_iris iris
475 +
476 + gallium_enable video_cards_r300 r300
477 + gallium_enable video_cards_r600 r600
478 + gallium_enable video_cards_radeonsi radeonsi
479 + if ! use video_cards_r300 && \
480 + ! use video_cards_r600; then
481 + gallium_enable video_cards_radeon r300 r600
482 + fi
483 +
484 + gallium_enable video_cards_freedreno freedreno
485 + gallium_enable video_cards_virgl virgl
486 +
487 + # opencl stuff
488 + emesonargs+=(
489 + -Dgallium-opencl="$(usex opencl icd disabled)"
490 + )
491 + fi
492 +
493 + if use vulkan; then
494 + vulkan_enable video_cards_i965 intel
495 + vulkan_enable video_cards_iris intel
496 + vulkan_enable video_cards_radeonsi amd
497 + fi
498 +
499 + if use gallium; then
500 + gallium_enable -- swrast
501 + emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
502 + else
503 + dri_driver_enable -- swrast
504 + emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
505 + fi
506 +
507 + driver_list() {
508 + local drivers="$(sort -u <<< "${1// /$'\n'}")"
509 + echo "${drivers//$'\n'/,}"
510 + }
511 +
512 + emesonargs+=(
513 + $(meson_use test build-tests)
514 + -Dglx=$(usex X dri disabled)
515 + -Dglvnd=enabled
516 + -Dshared-glapi=true
517 + $(meson_use dri3)
518 + $(meson_use egl)
519 + $(meson_use gbm)
520 + $(meson_use gles1)
521 + $(meson_use gles2)
522 + $(meson_use selinux)
523 + $(meson_use zstd)
524 + -Dvalgrind=$(usex valgrind auto false)
525 + -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
526 + -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
527 + -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
528 + $(meson_use vulkan vulkan-device-select-layer)
529 + $(meson_use vulkan-overlay vulkan-overlay-layer)
530 + --buildtype $(usex debug debug plain)
531 + -Db_ndebug=$(usex debug false true)
532 + )
533 + meson_src_configure
534 +}
535 +
536 +multilib_src_compile() {
537 + meson_src_compile
538 +}
539 +
540 +multilib_src_install() {
541 + meson_src_install
542 +}
543 +
544 +multilib_src_install_all() {
545 + einstalldocs
546 +}
547 +
548 +multilib_src_test() {
549 + meson test -v -C "${BUILD_DIR}" -t 100
550 +}
551 +
552 +# $1 - VIDEO_CARDS flag (check skipped for "--")
553 +# other args - names of DRI drivers to enable
554 +dri_driver_enable() {
555 + if [[ $1 == -- ]] || use $1; then
556 + shift
557 + DRI_DRIVERS+=("$@")
558 + fi
559 +}
560 +
561 +gallium_enable() {
562 + if [[ $1 == -- ]] || use $1; then
563 + shift
564 + GALLIUM_DRIVERS+=("$@")
565 + fi
566 +}
567 +
568 +vulkan_enable() {
569 + if [[ $1 == -- ]] || use $1; then
570 + shift
571 + VULKAN_DRIVERS+=("$@")
572 + fi
573 +}