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