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