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, 19 Feb 2020 22:13:43
Message-Id: 1582150401.1bc37cd25777dd889cfbc68dc533cd87a6ed70a5.mattst88@gentoo
1 commit: 1bc37cd25777dd889cfbc68dc533cd87a6ed70a5
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 19 22:11:45 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 19 22:13:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bc37cd2
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 | 4 -
13 media-libs/mesa/mesa-19.3.2.ebuild | 547 ---------------------------------
14 media-libs/mesa/mesa-19.3.3.ebuild | 547 ---------------------------------
15 media-libs/mesa/mesa-20.0.0_rc2.ebuild | 542 --------------------------------
16 media-libs/mesa/mesa-20.0.0_rc3.ebuild | 542 --------------------------------
17 5 files changed, 2182 deletions(-)
18
19 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
20 index 4624078c979..776ba075152 100644
21 --- a/media-libs/mesa/Manifest
22 +++ b/media-libs/mesa/Manifest
23 @@ -1,7 +1,3 @@
24 DIST mesa-19.2.8.tar.xz 11462168 BLAKE2B c49d6d3d10b4c85534a75e4bea29fc8b7526c784af5068764de623d40cbb59ecb96beb1969fa1a13815b6bd259bb98faaf42e4969792c6a75ce702d4b2e57155 SHA512 9bedc2f1a5296da96c1a2a491edaea701e70f683b26eac076e8cbef2230156d5d5ddb2330c3a2530afd4982a9893d76ded8d54bc73a98c846de0c3dfa3634c43
25 -DIST mesa-19.3.2.tar.xz 11834324 BLAKE2B 114912816a08424da1d55c65d8ff4fb97d58022f5968d37938055e0b0fcdfeeebdbdca3c28d187fd85aaf6385d3a1bfbfe3f011f410e9a991519d34cb81697b5 SHA512 fb69999fa7a15cd6f2c254fb6e8fe635e56dc49a5c2c762a96c77815cbad77060b8f81a02e67ac9ec58092ab866e080fb928086a5ac1e61c3efe882e5825cd28
26 -DIST mesa-19.3.3.tar.xz 11938700 BLAKE2B a2fd88e8c2d8b189ddf4fcebe324d2f6c00e0c101a565eeb783f50ecc7b2b85f3fe698822788807ab9aaf0403a4d27b7c469bd73c891f535e220b9a0204059f9 SHA512 1f792fbde71132afd4a43d6abe6a3d640f375e83641c6144c82312774434c9588ffba65a3ba38394947bd753656aa85213b6cd9f745cec0040c0559eb41f0dc9
27 DIST mesa-19.3.4.tar.xz 11968288 BLAKE2B be39a2ca08d91f8afbc2f3a47d596b14445fac62600f64d627b23d63b340b002bc05246eece95e19b33485a92c01f7980fff52b2375b7a2053161e0aa87d0b38 SHA512 2bbb3dc8f1d839f11fe12cc959393cd69607fa6714b2166b80299e0559d2d3b0ac38ed4e15ac3e5f472264eb24536d1901d350f7409f3a7e00d6f4ccbb2312fb
28 -DIST mesa-20.0.0-rc2.tar.xz 12100548 BLAKE2B 6bc2130dd7920d2a6eee845d4f53633e609ec2f8a740e39df23a732db842dbe5e0da6374dd0a8b2dfbd938ef1d0de55281a80c061d568dd609f8ac78da528aee SHA512 27e23925ce7e3a38954088db47d564776c4ac7e028d30ef5c58229b3182b461ece37863a69bc42ea4ff0a4817c46c0b0ca8d70f6fafddb5c3fe60bd9c429563b
29 -DIST mesa-20.0.0-rc3.tar.xz 12107300 BLAKE2B 937cca2152bf2d8c3fea267409d5ec87ebd44e47e9928860fe44d572e1e0b6f6821d786d11dc4e4a149a06f15fb0d51458c0d26d0ce3321bd50a47c6e3305a36 SHA512 df873cf961e641b9d9e9a6ce7eccde1a865e9125507e304b1600c6c28f15f89f9b66898a5a474f08a8ad05781d46db532fc7aedf92de3bb73b9ed1f2ba24b6cb
30 DIST mesa-20.0.0.tar.xz 12153408 BLAKE2B 41daa21c5b74bb0e50e713ee9766fb60bad5bce4c6ab23aee6e7c32fead61dcc3f17f927a91cb6f1fa1f1c1c314c666a81fde3e5d1b388ed930811b15f92d647 SHA512 3968820029434682fb6644947c76e12b6bb991a3d05cb519a6ea971ecc4aa9b21d03f84b9a452cc21cc77a7981db9e40dd2dfd3ea3dee85b3dd88a59b4842bbb
31
32 diff --git a/media-libs/mesa/mesa-19.3.2.ebuild b/media-libs/mesa/mesa-19.3.2.ebuild
33 deleted file mode 100644
34 index 26304ad69b1..00000000000
35 --- a/media-libs/mesa/mesa-19.3.2.ebuild
36 +++ /dev/null
37 @@ -1,547 +0,0 @@
38 -# Copyright 1999-2020 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=7
42 -
43 -PYTHON_COMPAT=( python3_{6,7,8} )
44 -
45 -inherit llvm meson multilib-minimal pax-utils python-any-r1
46 -
47 -OPENGL_DIR="xorg-x11"
48 -
49 -MY_P="${P/_/-}"
50 -
51 -DESCRIPTION="OpenGL-like graphic library for Linux"
52 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
53 -
54 -if [[ ${PV} == 9999 ]]; then
55 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
56 - inherit git-r3
57 -else
58 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
59 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
60 -fi
61 -
62 -LICENSE="MIT"
63 -SLOT="0"
64 -RESTRICT="
65 - !test? ( test )
66 -"
67 -
68 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
69 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost vc4 virgl vivante vmware"
70 -for card in ${VIDEO_CARDS}; do
71 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
72 -done
73 -
74 -IUSE="${IUSE_VIDEO_CARDS}
75 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 libglvnd +llvm
76 - lm-sensors opencl osmesa pax_kernel selinux test unwind vaapi valgrind
77 - vdpau vulkan vulkan-overlay wayland +X xa xvmc"
78 -
79 -REQUIRED_USE="
80 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
81 - gles1? ( egl )
82 - gles2? ( egl )
83 - vulkan? ( dri3
84 - || ( video_cards_i965 video_cards_iris video_cards_radeonsi )
85 - video_cards_radeonsi? ( llvm ) )
86 - vulkan-overlay? ( vulkan )
87 - wayland? ( egl gbm )
88 - video_cards_freedreno? ( gallium )
89 - video_cards_intel? ( classic )
90 - video_cards_i915? ( || ( classic gallium ) )
91 - video_cards_i965? ( classic )
92 - video_cards_iris? ( gallium )
93 - video_cards_lima? ( gallium )
94 - video_cards_nouveau? ( || ( classic gallium ) )
95 - video_cards_panfrost? ( gallium )
96 - video_cards_radeon? ( || ( classic gallium )
97 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
98 - video_cards_r100? ( classic )
99 - video_cards_r200? ( classic )
100 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
101 - video_cards_r600? ( gallium )
102 - video_cards_radeonsi? ( gallium llvm )
103 - video_cards_vc4? ( gallium )
104 - video_cards_virgl? ( gallium )
105 - video_cards_vivante? ( gallium gbm )
106 - video_cards_vmware? ( gallium )
107 - xa? ( X )
108 - xvmc? ( X )
109 -"
110 -
111 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
112 -RDEPEND="
113 - !app-eselect/eselect-mesa
114 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
115 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
116 - libglvnd? (
117 - >=media-libs/libglvnd-1.2.0-r1[${MULTILIB_USEDEP}]
118 - !app-eselect/eselect-opengl
119 - )
120 - !libglvnd? (
121 - >=app-eselect/eselect-opengl-1.3.0
122 - )
123 - gallium? (
124 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
125 - llvm? (
126 - video_cards_radeonsi? (
127 - virtual/libelf:0=[${MULTILIB_USEDEP}]
128 - )
129 - video_cards_r600? (
130 - virtual/libelf:0=[${MULTILIB_USEDEP}]
131 - )
132 - video_cards_radeon? (
133 - virtual/libelf:0=[${MULTILIB_USEDEP}]
134 - )
135 - )
136 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
137 - opencl? (
138 - dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
139 - dev-libs/libclc
140 - virtual/libelf:0=[${MULTILIB_USEDEP}]
141 - )
142 - vaapi? (
143 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
144 - )
145 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
146 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
147 - )
148 - selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
149 - wayland? (
150 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
151 - >=dev-libs/wayland-protocols-1.8
152 - )
153 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
154 - video_cards_intel? (
155 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
156 - )
157 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
158 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
159 - X? (
160 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
161 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
162 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
163 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
164 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
165 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
166 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
167 - )
168 -"
169 -for card in ${RADEON_CARDS}; do
170 - RDEPEND="${RDEPEND}
171 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
172 - "
173 -done
174 -RDEPEND="${RDEPEND}
175 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
176 -"
177 -
178 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
179 -# we need to *really* make sure we're not pulling one than more slot
180 -# simultaneously.
181 -#
182 -# How to use it:
183 -# 1. List all the working slots (with min versions) in ||, newest first.
184 -# 2. Update the := to specify *max* version, e.g. < 10.
185 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
186 -LLVM_MAX_SLOT="9"
187 -LLVM_DEPSTR="
188 - || (
189 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
190 - sys-devel/llvm:8[${MULTILIB_USEDEP}]
191 - )
192 - sys-devel/llvm:=[${MULTILIB_USEDEP}]
193 -"
194 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
195 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
196 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
197 -RDEPEND="${RDEPEND}
198 - gallium? (
199 - llvm? (
200 - opencl? (
201 - video_cards_r600? (
202 - ${CLANG_DEPSTR_AMDGPU}
203 - )
204 - !video_cards_r600? (
205 - video_cards_radeonsi? (
206 - ${CLANG_DEPSTR_AMDGPU}
207 - )
208 - )
209 - !video_cards_r600? (
210 - !video_cards_radeonsi? (
211 - video_cards_radeon? (
212 - ${CLANG_DEPSTR_AMDGPU}
213 - )
214 - )
215 - )
216 - !video_cards_r600? (
217 - !video_cards_radeon? (
218 - !video_cards_radeonsi? (
219 - ${CLANG_DEPSTR}
220 - )
221 - )
222 - )
223 - )
224 - !opencl? (
225 - video_cards_r600? (
226 - ${LLVM_DEPSTR_AMDGPU}
227 - )
228 - !video_cards_r600? (
229 - video_cards_radeonsi? (
230 - ${LLVM_DEPSTR_AMDGPU}
231 - )
232 - )
233 - !video_cards_r600? (
234 - !video_cards_radeonsi? (
235 - video_cards_radeon? (
236 - ${LLVM_DEPSTR_AMDGPU}
237 - )
238 - )
239 - )
240 - !video_cards_r600? (
241 - !video_cards_radeon? (
242 - !video_cards_radeonsi? (
243 - ${LLVM_DEPSTR}
244 - )
245 - )
246 - )
247 - )
248 - )
249 - )
250 -"
251 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
252 -
253 -DEPEND="${RDEPEND}
254 - valgrind? ( dev-util/valgrind )
255 - X? (
256 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
257 - x11-base/xorg-proto
258 - )
259 -"
260 -BDEPEND="
261 - ${PYTHON_DEPS}
262 - opencl? (
263 - >=sys-devel/gcc-4.6
264 - )
265 - sys-devel/bison
266 - sys-devel/flex
267 - sys-devel/gettext
268 - virtual/pkgconfig
269 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
270 -"
271 -
272 -S="${WORKDIR}/${MY_P}"
273 -EGIT_CHECKOUT_DIR=${S}
274 -
275 -QA_WX_LOAD="
276 -x86? (
277 - usr/lib*/libglapi.so.0.0.0
278 - usr/lib*/libGLESv1_CM.so.1.1.0
279 - usr/lib*/libGLESv2.so.2.0.0
280 - usr/lib*/libGL.so.1.2.0
281 - usr/lib*/libOSMesa.so.8.0.0
282 - libglvnd? ( usr/lib/libGLX_mesa.so.0.0.0 )
283 -)"
284 -
285 -llvm_check_deps() {
286 - local flags=${MULTILIB_USEDEP}
287 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
288 - then
289 - flags+=",llvm_targets_AMDGPU(-)"
290 - fi
291 -
292 - if use opencl; then
293 - has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
294 - fi
295 - has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
296 -}
297 -
298 -pkg_pretend() {
299 - if use opencl; then
300 - if ! use video_cards_r600 &&
301 - ! use video_cards_radeonsi; then
302 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
303 - fi
304 - fi
305 -
306 - if use vaapi; then
307 - if ! use video_cards_r600 &&
308 - ! use video_cards_radeonsi &&
309 - ! use video_cards_nouveau; then
310 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
311 - fi
312 - fi
313 -
314 - if use vdpau; then
315 - if ! use video_cards_r300 &&
316 - ! use video_cards_r600 &&
317 - ! use video_cards_radeonsi &&
318 - ! use video_cards_nouveau; then
319 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
320 - fi
321 - fi
322 -
323 - if use xa; then
324 - if ! use video_cards_freedreno &&
325 - ! use video_cards_nouveau &&
326 - ! use video_cards_vmware; then
327 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
328 - fi
329 - fi
330 -
331 - if use xvmc; then
332 - if ! use video_cards_r600 &&
333 - ! use video_cards_nouveau; then
334 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
335 - fi
336 - fi
337 -
338 - if ! use gallium; then
339 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
340 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
341 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
342 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
343 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
344 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
345 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
346 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
347 - fi
348 -
349 - if ! use llvm; then
350 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
351 - fi
352 -}
353 -
354 -python_check_deps() {
355 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
356 -}
357 -
358 -pkg_setup() {
359 - # warning message for bug 459306
360 - if use llvm && has_version sys-devel/llvm[!debug=]; then
361 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
362 - ewarn "detected! This can cause problems. For details, see bug 459306."
363 - fi
364 -
365 - if use llvm; then
366 - llvm_pkg_setup
367 - fi
368 - python-any-r1_pkg_setup
369 -}
370 -
371 -multilib_src_configure() {
372 - local emesonargs=()
373 -
374 - if use classic; then
375 - # Intel code
376 - dri_driver_enable video_cards_i915 i915
377 - dri_driver_enable video_cards_i965 i965
378 - if ! use video_cards_i915 && \
379 - ! use video_cards_i965; then
380 - dri_driver_enable video_cards_intel i915 i965
381 - fi
382 -
383 - # Nouveau code
384 - dri_driver_enable video_cards_nouveau nouveau
385 -
386 - # ATI code
387 - dri_driver_enable video_cards_r100 r100
388 - dri_driver_enable video_cards_r200 r200
389 - if ! use video_cards_r100 && \
390 - ! use video_cards_r200; then
391 - dri_driver_enable video_cards_radeon r100 r200
392 - fi
393 - fi
394 -
395 - emesonargs+=( -Dplatforms=surfaceless$(use X && echo ",x11")$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
396 -
397 - if use gallium; then
398 - emesonargs+=(
399 - $(meson_use llvm)
400 - $(meson_use lm-sensors lmsensors)
401 - $(meson_use unwind libunwind)
402 - )
403 -
404 - if use video_cards_iris ||
405 - use video_cards_r300 ||
406 - use video_cards_r600 ||
407 - use video_cards_radeonsi ||
408 - use video_cards_nouveau ||
409 - use video_cards_vmware; then
410 - emesonargs+=($(meson_use d3d9 gallium-nine))
411 - else
412 - emesonargs+=(-Dgallium-nine=false)
413 - fi
414 -
415 - if use video_cards_r600 ||
416 - use video_cards_radeonsi ||
417 - use video_cards_nouveau; then
418 - emesonargs+=($(meson_use vaapi gallium-va))
419 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
420 - else
421 - emesonargs+=(-Dgallium-va=false)
422 - fi
423 -
424 - if use video_cards_r300 ||
425 - use video_cards_r600 ||
426 - use video_cards_radeonsi ||
427 - use video_cards_nouveau; then
428 - emesonargs+=($(meson_use vdpau gallium-vdpau))
429 - else
430 - emesonargs+=(-Dgallium-vdpau=false)
431 - fi
432 -
433 - if use video_cards_freedreno ||
434 - use video_cards_nouveau ||
435 - use video_cards_vmware; then
436 - emesonargs+=($(meson_use xa gallium-xa))
437 - else
438 - emesonargs+=(-Dgallium-xa=false)
439 - fi
440 -
441 - if use video_cards_r600 ||
442 - use video_cards_nouveau; then
443 - emesonargs+=($(meson_use xvmc gallium-xvmc))
444 - else
445 - emesonargs+=(-Dgallium-xvmc=false)
446 - fi
447 -
448 - if use video_cards_freedreno ||
449 - use video_cards_lima ||
450 - use video_cards_panfrost ||
451 - use video_cards_vc4 ||
452 - use video_cards_vivante; then
453 - gallium_enable -- kmsro
454 - fi
455 -
456 - gallium_enable video_cards_lima lima
457 - gallium_enable video_cards_panfrost panfrost
458 - gallium_enable video_cards_vc4 vc4
459 - gallium_enable video_cards_vivante etnaviv
460 - gallium_enable video_cards_vmware svga
461 - gallium_enable video_cards_nouveau nouveau
462 -
463 - # Only one i915 driver (classic vs gallium). Default to classic.
464 - if ! use classic; then
465 - gallium_enable video_cards_i915 i915
466 - if ! use video_cards_i915 && \
467 - ! use video_cards_i965; then
468 - gallium_enable video_cards_intel i915
469 - fi
470 - fi
471 -
472 - gallium_enable video_cards_iris iris
473 -
474 - gallium_enable video_cards_r300 r300
475 - gallium_enable video_cards_r600 r600
476 - gallium_enable video_cards_radeonsi radeonsi
477 - if ! use video_cards_r300 && \
478 - ! use video_cards_r600; then
479 - gallium_enable video_cards_radeon r300 r600
480 - fi
481 -
482 - gallium_enable video_cards_freedreno freedreno
483 - gallium_enable video_cards_virgl virgl
484 -
485 - # opencl stuff
486 - emesonargs+=(
487 - -Dgallium-opencl="$(usex opencl icd disabled)"
488 - )
489 - fi
490 -
491 - if use vulkan; then
492 - vulkan_enable video_cards_i965 intel
493 - vulkan_enable video_cards_iris intel
494 - vulkan_enable video_cards_radeonsi amd
495 - fi
496 -
497 - # x86 hardened pax_kernel needs glx-rts, bug 240956
498 - if [[ ${ABI} == x86 ]]; then
499 - emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
500 - fi
501 -
502 - if use gallium; then
503 - gallium_enable -- swrast
504 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
505 - else
506 - dri_driver_enable -- swrast
507 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
508 - fi
509 -
510 - driver_list() {
511 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
512 - echo "${drivers//$'\n'/,}"
513 - }
514 -
515 - emesonargs+=(
516 - $(meson_use test build-tests)
517 - -Dglx=$(usex X dri disabled)
518 - -Dshared-glapi=true
519 - $(meson_use dri3)
520 - $(meson_use egl)
521 - $(meson_use gbm)
522 - $(meson_use gles1)
523 - $(meson_use gles2)
524 - $(meson_use libglvnd glvnd)
525 - $(meson_use selinux)
526 - -Dvalgrind=$(usex valgrind auto false)
527 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
528 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
529 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
530 - $(meson_use vulkan-overlay vulkan-overlay-layer)
531 - --buildtype $(usex debug debug plain)
532 - -Db_ndebug=$(usex debug false true)
533 - )
534 - meson_src_configure
535 -}
536 -
537 -multilib_src_compile() {
538 - meson_src_compile
539 -}
540 -
541 -multilib_src_install() {
542 - meson_src_install
543 -
544 - use libglvnd && rm -f "${D}"/usr/$(get_libdir)/pkgconfig/{egl,gl}.pc
545 -}
546 -
547 -multilib_src_install_all() {
548 - einstalldocs
549 -}
550 -
551 -multilib_src_test() {
552 - meson test -v -C "${BUILD_DIR}" -t 100
553 -}
554 -
555 -pkg_postinst() {
556 - if ! use libglvnd; then
557 - # Switch to the xorg implementation.
558 - echo
559 - eselect opengl set --use-old ${OPENGL_DIR}
560 - fi
561 -}
562 -
563 -# $1 - VIDEO_CARDS flag (check skipped for "--")
564 -# other args - names of DRI drivers to enable
565 -dri_driver_enable() {
566 - if [[ $1 == -- ]] || use $1; then
567 - shift
568 - DRI_DRIVERS+=("$@")
569 - fi
570 -}
571 -
572 -gallium_enable() {
573 - if [[ $1 == -- ]] || use $1; then
574 - shift
575 - GALLIUM_DRIVERS+=("$@")
576 - fi
577 -}
578 -
579 -vulkan_enable() {
580 - if [[ $1 == -- ]] || use $1; then
581 - shift
582 - VULKAN_DRIVERS+=("$@")
583 - fi
584 -}
585
586 diff --git a/media-libs/mesa/mesa-19.3.3.ebuild b/media-libs/mesa/mesa-19.3.3.ebuild
587 deleted file mode 100644
588 index 26304ad69b1..00000000000
589 --- a/media-libs/mesa/mesa-19.3.3.ebuild
590 +++ /dev/null
591 @@ -1,547 +0,0 @@
592 -# Copyright 1999-2020 Gentoo Authors
593 -# Distributed under the terms of the GNU General Public License v2
594 -
595 -EAPI=7
596 -
597 -PYTHON_COMPAT=( python3_{6,7,8} )
598 -
599 -inherit llvm meson multilib-minimal pax-utils python-any-r1
600 -
601 -OPENGL_DIR="xorg-x11"
602 -
603 -MY_P="${P/_/-}"
604 -
605 -DESCRIPTION="OpenGL-like graphic library for Linux"
606 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
607 -
608 -if [[ ${PV} == 9999 ]]; then
609 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
610 - inherit git-r3
611 -else
612 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
613 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
614 -fi
615 -
616 -LICENSE="MIT"
617 -SLOT="0"
618 -RESTRICT="
619 - !test? ( test )
620 -"
621 -
622 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
623 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost vc4 virgl vivante vmware"
624 -for card in ${VIDEO_CARDS}; do
625 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
626 -done
627 -
628 -IUSE="${IUSE_VIDEO_CARDS}
629 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 libglvnd +llvm
630 - lm-sensors opencl osmesa pax_kernel selinux test unwind vaapi valgrind
631 - vdpau vulkan vulkan-overlay wayland +X xa xvmc"
632 -
633 -REQUIRED_USE="
634 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
635 - gles1? ( egl )
636 - gles2? ( egl )
637 - vulkan? ( dri3
638 - || ( video_cards_i965 video_cards_iris video_cards_radeonsi )
639 - video_cards_radeonsi? ( llvm ) )
640 - vulkan-overlay? ( vulkan )
641 - wayland? ( egl gbm )
642 - video_cards_freedreno? ( gallium )
643 - video_cards_intel? ( classic )
644 - video_cards_i915? ( || ( classic gallium ) )
645 - video_cards_i965? ( classic )
646 - video_cards_iris? ( gallium )
647 - video_cards_lima? ( gallium )
648 - video_cards_nouveau? ( || ( classic gallium ) )
649 - video_cards_panfrost? ( gallium )
650 - video_cards_radeon? ( || ( classic gallium )
651 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
652 - video_cards_r100? ( classic )
653 - video_cards_r200? ( classic )
654 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
655 - video_cards_r600? ( gallium )
656 - video_cards_radeonsi? ( gallium llvm )
657 - video_cards_vc4? ( gallium )
658 - video_cards_virgl? ( gallium )
659 - video_cards_vivante? ( gallium gbm )
660 - video_cards_vmware? ( gallium )
661 - xa? ( X )
662 - xvmc? ( X )
663 -"
664 -
665 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
666 -RDEPEND="
667 - !app-eselect/eselect-mesa
668 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
669 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
670 - libglvnd? (
671 - >=media-libs/libglvnd-1.2.0-r1[${MULTILIB_USEDEP}]
672 - !app-eselect/eselect-opengl
673 - )
674 - !libglvnd? (
675 - >=app-eselect/eselect-opengl-1.3.0
676 - )
677 - gallium? (
678 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
679 - llvm? (
680 - video_cards_radeonsi? (
681 - virtual/libelf:0=[${MULTILIB_USEDEP}]
682 - )
683 - video_cards_r600? (
684 - virtual/libelf:0=[${MULTILIB_USEDEP}]
685 - )
686 - video_cards_radeon? (
687 - virtual/libelf:0=[${MULTILIB_USEDEP}]
688 - )
689 - )
690 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
691 - opencl? (
692 - dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
693 - dev-libs/libclc
694 - virtual/libelf:0=[${MULTILIB_USEDEP}]
695 - )
696 - vaapi? (
697 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
698 - )
699 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
700 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
701 - )
702 - selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
703 - wayland? (
704 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
705 - >=dev-libs/wayland-protocols-1.8
706 - )
707 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
708 - video_cards_intel? (
709 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
710 - )
711 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
712 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
713 - X? (
714 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
715 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
716 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
717 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
718 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
719 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
720 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
721 - )
722 -"
723 -for card in ${RADEON_CARDS}; do
724 - RDEPEND="${RDEPEND}
725 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
726 - "
727 -done
728 -RDEPEND="${RDEPEND}
729 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
730 -"
731 -
732 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
733 -# we need to *really* make sure we're not pulling one than more slot
734 -# simultaneously.
735 -#
736 -# How to use it:
737 -# 1. List all the working slots (with min versions) in ||, newest first.
738 -# 2. Update the := to specify *max* version, e.g. < 10.
739 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
740 -LLVM_MAX_SLOT="9"
741 -LLVM_DEPSTR="
742 - || (
743 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
744 - sys-devel/llvm:8[${MULTILIB_USEDEP}]
745 - )
746 - sys-devel/llvm:=[${MULTILIB_USEDEP}]
747 -"
748 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
749 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
750 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
751 -RDEPEND="${RDEPEND}
752 - gallium? (
753 - llvm? (
754 - opencl? (
755 - video_cards_r600? (
756 - ${CLANG_DEPSTR_AMDGPU}
757 - )
758 - !video_cards_r600? (
759 - video_cards_radeonsi? (
760 - ${CLANG_DEPSTR_AMDGPU}
761 - )
762 - )
763 - !video_cards_r600? (
764 - !video_cards_radeonsi? (
765 - video_cards_radeon? (
766 - ${CLANG_DEPSTR_AMDGPU}
767 - )
768 - )
769 - )
770 - !video_cards_r600? (
771 - !video_cards_radeon? (
772 - !video_cards_radeonsi? (
773 - ${CLANG_DEPSTR}
774 - )
775 - )
776 - )
777 - )
778 - !opencl? (
779 - video_cards_r600? (
780 - ${LLVM_DEPSTR_AMDGPU}
781 - )
782 - !video_cards_r600? (
783 - video_cards_radeonsi? (
784 - ${LLVM_DEPSTR_AMDGPU}
785 - )
786 - )
787 - !video_cards_r600? (
788 - !video_cards_radeonsi? (
789 - video_cards_radeon? (
790 - ${LLVM_DEPSTR_AMDGPU}
791 - )
792 - )
793 - )
794 - !video_cards_r600? (
795 - !video_cards_radeon? (
796 - !video_cards_radeonsi? (
797 - ${LLVM_DEPSTR}
798 - )
799 - )
800 - )
801 - )
802 - )
803 - )
804 -"
805 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
806 -
807 -DEPEND="${RDEPEND}
808 - valgrind? ( dev-util/valgrind )
809 - X? (
810 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
811 - x11-base/xorg-proto
812 - )
813 -"
814 -BDEPEND="
815 - ${PYTHON_DEPS}
816 - opencl? (
817 - >=sys-devel/gcc-4.6
818 - )
819 - sys-devel/bison
820 - sys-devel/flex
821 - sys-devel/gettext
822 - virtual/pkgconfig
823 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
824 -"
825 -
826 -S="${WORKDIR}/${MY_P}"
827 -EGIT_CHECKOUT_DIR=${S}
828 -
829 -QA_WX_LOAD="
830 -x86? (
831 - usr/lib*/libglapi.so.0.0.0
832 - usr/lib*/libGLESv1_CM.so.1.1.0
833 - usr/lib*/libGLESv2.so.2.0.0
834 - usr/lib*/libGL.so.1.2.0
835 - usr/lib*/libOSMesa.so.8.0.0
836 - libglvnd? ( usr/lib/libGLX_mesa.so.0.0.0 )
837 -)"
838 -
839 -llvm_check_deps() {
840 - local flags=${MULTILIB_USEDEP}
841 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
842 - then
843 - flags+=",llvm_targets_AMDGPU(-)"
844 - fi
845 -
846 - if use opencl; then
847 - has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
848 - fi
849 - has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
850 -}
851 -
852 -pkg_pretend() {
853 - if use opencl; then
854 - if ! use video_cards_r600 &&
855 - ! use video_cards_radeonsi; then
856 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
857 - fi
858 - fi
859 -
860 - if use vaapi; then
861 - if ! use video_cards_r600 &&
862 - ! use video_cards_radeonsi &&
863 - ! use video_cards_nouveau; then
864 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
865 - fi
866 - fi
867 -
868 - if use vdpau; then
869 - if ! use video_cards_r300 &&
870 - ! use video_cards_r600 &&
871 - ! use video_cards_radeonsi &&
872 - ! use video_cards_nouveau; then
873 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
874 - fi
875 - fi
876 -
877 - if use xa; then
878 - if ! use video_cards_freedreno &&
879 - ! use video_cards_nouveau &&
880 - ! use video_cards_vmware; then
881 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
882 - fi
883 - fi
884 -
885 - if use xvmc; then
886 - if ! use video_cards_r600 &&
887 - ! use video_cards_nouveau; then
888 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
889 - fi
890 - fi
891 -
892 - if ! use gallium; then
893 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
894 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
895 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
896 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
897 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
898 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
899 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
900 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
901 - fi
902 -
903 - if ! use llvm; then
904 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
905 - fi
906 -}
907 -
908 -python_check_deps() {
909 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
910 -}
911 -
912 -pkg_setup() {
913 - # warning message for bug 459306
914 - if use llvm && has_version sys-devel/llvm[!debug=]; then
915 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
916 - ewarn "detected! This can cause problems. For details, see bug 459306."
917 - fi
918 -
919 - if use llvm; then
920 - llvm_pkg_setup
921 - fi
922 - python-any-r1_pkg_setup
923 -}
924 -
925 -multilib_src_configure() {
926 - local emesonargs=()
927 -
928 - if use classic; then
929 - # Intel code
930 - dri_driver_enable video_cards_i915 i915
931 - dri_driver_enable video_cards_i965 i965
932 - if ! use video_cards_i915 && \
933 - ! use video_cards_i965; then
934 - dri_driver_enable video_cards_intel i915 i965
935 - fi
936 -
937 - # Nouveau code
938 - dri_driver_enable video_cards_nouveau nouveau
939 -
940 - # ATI code
941 - dri_driver_enable video_cards_r100 r100
942 - dri_driver_enable video_cards_r200 r200
943 - if ! use video_cards_r100 && \
944 - ! use video_cards_r200; then
945 - dri_driver_enable video_cards_radeon r100 r200
946 - fi
947 - fi
948 -
949 - emesonargs+=( -Dplatforms=surfaceless$(use X && echo ",x11")$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
950 -
951 - if use gallium; then
952 - emesonargs+=(
953 - $(meson_use llvm)
954 - $(meson_use lm-sensors lmsensors)
955 - $(meson_use unwind libunwind)
956 - )
957 -
958 - if use video_cards_iris ||
959 - use video_cards_r300 ||
960 - use video_cards_r600 ||
961 - use video_cards_radeonsi ||
962 - use video_cards_nouveau ||
963 - use video_cards_vmware; then
964 - emesonargs+=($(meson_use d3d9 gallium-nine))
965 - else
966 - emesonargs+=(-Dgallium-nine=false)
967 - fi
968 -
969 - if use video_cards_r600 ||
970 - use video_cards_radeonsi ||
971 - use video_cards_nouveau; then
972 - emesonargs+=($(meson_use vaapi gallium-va))
973 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
974 - else
975 - emesonargs+=(-Dgallium-va=false)
976 - fi
977 -
978 - if use video_cards_r300 ||
979 - use video_cards_r600 ||
980 - use video_cards_radeonsi ||
981 - use video_cards_nouveau; then
982 - emesonargs+=($(meson_use vdpau gallium-vdpau))
983 - else
984 - emesonargs+=(-Dgallium-vdpau=false)
985 - fi
986 -
987 - if use video_cards_freedreno ||
988 - use video_cards_nouveau ||
989 - use video_cards_vmware; then
990 - emesonargs+=($(meson_use xa gallium-xa))
991 - else
992 - emesonargs+=(-Dgallium-xa=false)
993 - fi
994 -
995 - if use video_cards_r600 ||
996 - use video_cards_nouveau; then
997 - emesonargs+=($(meson_use xvmc gallium-xvmc))
998 - else
999 - emesonargs+=(-Dgallium-xvmc=false)
1000 - fi
1001 -
1002 - if use video_cards_freedreno ||
1003 - use video_cards_lima ||
1004 - use video_cards_panfrost ||
1005 - use video_cards_vc4 ||
1006 - use video_cards_vivante; then
1007 - gallium_enable -- kmsro
1008 - fi
1009 -
1010 - gallium_enable video_cards_lima lima
1011 - gallium_enable video_cards_panfrost panfrost
1012 - gallium_enable video_cards_vc4 vc4
1013 - gallium_enable video_cards_vivante etnaviv
1014 - gallium_enable video_cards_vmware svga
1015 - gallium_enable video_cards_nouveau nouveau
1016 -
1017 - # Only one i915 driver (classic vs gallium). Default to classic.
1018 - if ! use classic; then
1019 - gallium_enable video_cards_i915 i915
1020 - if ! use video_cards_i915 && \
1021 - ! use video_cards_i965; then
1022 - gallium_enable video_cards_intel i915
1023 - fi
1024 - fi
1025 -
1026 - gallium_enable video_cards_iris iris
1027 -
1028 - gallium_enable video_cards_r300 r300
1029 - gallium_enable video_cards_r600 r600
1030 - gallium_enable video_cards_radeonsi radeonsi
1031 - if ! use video_cards_r300 && \
1032 - ! use video_cards_r600; then
1033 - gallium_enable video_cards_radeon r300 r600
1034 - fi
1035 -
1036 - gallium_enable video_cards_freedreno freedreno
1037 - gallium_enable video_cards_virgl virgl
1038 -
1039 - # opencl stuff
1040 - emesonargs+=(
1041 - -Dgallium-opencl="$(usex opencl icd disabled)"
1042 - )
1043 - fi
1044 -
1045 - if use vulkan; then
1046 - vulkan_enable video_cards_i965 intel
1047 - vulkan_enable video_cards_iris intel
1048 - vulkan_enable video_cards_radeonsi amd
1049 - fi
1050 -
1051 - # x86 hardened pax_kernel needs glx-rts, bug 240956
1052 - if [[ ${ABI} == x86 ]]; then
1053 - emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
1054 - fi
1055 -
1056 - if use gallium; then
1057 - gallium_enable -- swrast
1058 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
1059 - else
1060 - dri_driver_enable -- swrast
1061 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
1062 - fi
1063 -
1064 - driver_list() {
1065 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
1066 - echo "${drivers//$'\n'/,}"
1067 - }
1068 -
1069 - emesonargs+=(
1070 - $(meson_use test build-tests)
1071 - -Dglx=$(usex X dri disabled)
1072 - -Dshared-glapi=true
1073 - $(meson_use dri3)
1074 - $(meson_use egl)
1075 - $(meson_use gbm)
1076 - $(meson_use gles1)
1077 - $(meson_use gles2)
1078 - $(meson_use libglvnd glvnd)
1079 - $(meson_use selinux)
1080 - -Dvalgrind=$(usex valgrind auto false)
1081 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
1082 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
1083 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
1084 - $(meson_use vulkan-overlay vulkan-overlay-layer)
1085 - --buildtype $(usex debug debug plain)
1086 - -Db_ndebug=$(usex debug false true)
1087 - )
1088 - meson_src_configure
1089 -}
1090 -
1091 -multilib_src_compile() {
1092 - meson_src_compile
1093 -}
1094 -
1095 -multilib_src_install() {
1096 - meson_src_install
1097 -
1098 - use libglvnd && rm -f "${D}"/usr/$(get_libdir)/pkgconfig/{egl,gl}.pc
1099 -}
1100 -
1101 -multilib_src_install_all() {
1102 - einstalldocs
1103 -}
1104 -
1105 -multilib_src_test() {
1106 - meson test -v -C "${BUILD_DIR}" -t 100
1107 -}
1108 -
1109 -pkg_postinst() {
1110 - if ! use libglvnd; then
1111 - # Switch to the xorg implementation.
1112 - echo
1113 - eselect opengl set --use-old ${OPENGL_DIR}
1114 - fi
1115 -}
1116 -
1117 -# $1 - VIDEO_CARDS flag (check skipped for "--")
1118 -# other args - names of DRI drivers to enable
1119 -dri_driver_enable() {
1120 - if [[ $1 == -- ]] || use $1; then
1121 - shift
1122 - DRI_DRIVERS+=("$@")
1123 - fi
1124 -}
1125 -
1126 -gallium_enable() {
1127 - if [[ $1 == -- ]] || use $1; then
1128 - shift
1129 - GALLIUM_DRIVERS+=("$@")
1130 - fi
1131 -}
1132 -
1133 -vulkan_enable() {
1134 - if [[ $1 == -- ]] || use $1; then
1135 - shift
1136 - VULKAN_DRIVERS+=("$@")
1137 - fi
1138 -}
1139
1140 diff --git a/media-libs/mesa/mesa-20.0.0_rc2.ebuild b/media-libs/mesa/mesa-20.0.0_rc2.ebuild
1141 deleted file mode 100644
1142 index 39da329b5dd..00000000000
1143 --- a/media-libs/mesa/mesa-20.0.0_rc2.ebuild
1144 +++ /dev/null
1145 @@ -1,542 +0,0 @@
1146 -# Copyright 1999-2020 Gentoo Authors
1147 -# Distributed under the terms of the GNU General Public License v2
1148 -
1149 -EAPI=7
1150 -
1151 -PYTHON_COMPAT=( python3_{6,7,8} )
1152 -
1153 -inherit llvm meson multilib-minimal pax-utils python-any-r1
1154 -
1155 -OPENGL_DIR="xorg-x11"
1156 -
1157 -MY_P="${P/_/-}"
1158 -
1159 -DESCRIPTION="OpenGL-like graphic library for Linux"
1160 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
1161 -
1162 -if [[ ${PV} == 9999 ]]; then
1163 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
1164 - inherit git-r3
1165 -else
1166 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
1167 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
1168 -fi
1169 -
1170 -LICENSE="MIT"
1171 -SLOT="0"
1172 -RESTRICT="
1173 - !test? ( test )
1174 -"
1175 -
1176 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
1177 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost vc4 virgl vivante vmware"
1178 -for card in ${VIDEO_CARDS}; do
1179 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
1180 -done
1181 -
1182 -IUSE="${IUSE_VIDEO_CARDS}
1183 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 libglvnd +llvm
1184 - lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan
1185 - vulkan-overlay wayland +X xa xvmc"
1186 -
1187 -REQUIRED_USE="
1188 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
1189 - gles1? ( egl )
1190 - gles2? ( egl )
1191 - vulkan? ( dri3
1192 - || ( video_cards_i965 video_cards_iris video_cards_radeonsi )
1193 - video_cards_radeonsi? ( llvm ) )
1194 - vulkan-overlay? ( vulkan )
1195 - wayland? ( egl gbm )
1196 - video_cards_freedreno? ( gallium )
1197 - video_cards_intel? ( classic )
1198 - video_cards_i915? ( || ( classic gallium ) )
1199 - video_cards_i965? ( classic )
1200 - video_cards_iris? ( gallium )
1201 - video_cards_lima? ( gallium )
1202 - video_cards_nouveau? ( || ( classic gallium ) )
1203 - video_cards_panfrost? ( gallium )
1204 - video_cards_radeon? ( || ( classic gallium )
1205 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
1206 - video_cards_r100? ( classic )
1207 - video_cards_r200? ( classic )
1208 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
1209 - video_cards_r600? ( gallium )
1210 - video_cards_radeonsi? ( gallium llvm )
1211 - video_cards_vc4? ( gallium )
1212 - video_cards_virgl? ( gallium )
1213 - video_cards_vivante? ( gallium gbm )
1214 - video_cards_vmware? ( gallium )
1215 - xa? ( X )
1216 - xvmc? ( X )
1217 -"
1218 -
1219 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
1220 -RDEPEND="
1221 - !app-eselect/eselect-mesa
1222 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
1223 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
1224 - libglvnd? (
1225 - >=media-libs/libglvnd-1.2.0-r1[${MULTILIB_USEDEP}]
1226 - !app-eselect/eselect-opengl
1227 - )
1228 - !libglvnd? (
1229 - >=app-eselect/eselect-opengl-1.3.0
1230 - )
1231 - gallium? (
1232 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
1233 - llvm? (
1234 - video_cards_radeonsi? (
1235 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1236 - )
1237 - video_cards_r600? (
1238 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1239 - )
1240 - video_cards_radeon? (
1241 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1242 - )
1243 - )
1244 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
1245 - opencl? (
1246 - dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
1247 - dev-libs/libclc
1248 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1249 - )
1250 - vaapi? (
1251 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
1252 - )
1253 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
1254 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
1255 - )
1256 - selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
1257 - wayland? (
1258 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
1259 - >=dev-libs/wayland-protocols-1.8
1260 - )
1261 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
1262 - video_cards_intel? (
1263 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
1264 - )
1265 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
1266 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
1267 - X? (
1268 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
1269 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
1270 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
1271 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
1272 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
1273 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
1274 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
1275 - )
1276 -"
1277 -for card in ${RADEON_CARDS}; do
1278 - RDEPEND="${RDEPEND}
1279 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
1280 - "
1281 -done
1282 -RDEPEND="${RDEPEND}
1283 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
1284 -"
1285 -
1286 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
1287 -# we need to *really* make sure we're not pulling one than more slot
1288 -# simultaneously.
1289 -#
1290 -# How to use it:
1291 -# 1. List all the working slots (with min versions) in ||, newest first.
1292 -# 2. Update the := to specify *max* version, e.g. < 10.
1293 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
1294 -LLVM_MAX_SLOT="9"
1295 -LLVM_DEPSTR="
1296 - || (
1297 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
1298 - sys-devel/llvm:8[${MULTILIB_USEDEP}]
1299 - )
1300 - sys-devel/llvm:=[${MULTILIB_USEDEP}]
1301 -"
1302 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
1303 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
1304 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
1305 -RDEPEND="${RDEPEND}
1306 - gallium? (
1307 - llvm? (
1308 - opencl? (
1309 - video_cards_r600? (
1310 - ${CLANG_DEPSTR_AMDGPU}
1311 - )
1312 - !video_cards_r600? (
1313 - video_cards_radeonsi? (
1314 - ${CLANG_DEPSTR_AMDGPU}
1315 - )
1316 - )
1317 - !video_cards_r600? (
1318 - !video_cards_radeonsi? (
1319 - video_cards_radeon? (
1320 - ${CLANG_DEPSTR_AMDGPU}
1321 - )
1322 - )
1323 - )
1324 - !video_cards_r600? (
1325 - !video_cards_radeon? (
1326 - !video_cards_radeonsi? (
1327 - ${CLANG_DEPSTR}
1328 - )
1329 - )
1330 - )
1331 - )
1332 - !opencl? (
1333 - video_cards_r600? (
1334 - ${LLVM_DEPSTR_AMDGPU}
1335 - )
1336 - !video_cards_r600? (
1337 - video_cards_radeonsi? (
1338 - ${LLVM_DEPSTR_AMDGPU}
1339 - )
1340 - )
1341 - !video_cards_r600? (
1342 - !video_cards_radeonsi? (
1343 - video_cards_radeon? (
1344 - ${LLVM_DEPSTR_AMDGPU}
1345 - )
1346 - )
1347 - )
1348 - !video_cards_r600? (
1349 - !video_cards_radeon? (
1350 - !video_cards_radeonsi? (
1351 - ${LLVM_DEPSTR}
1352 - )
1353 - )
1354 - )
1355 - )
1356 - )
1357 - )
1358 -"
1359 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
1360 -
1361 -DEPEND="${RDEPEND}
1362 - valgrind? ( dev-util/valgrind )
1363 - X? (
1364 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
1365 - x11-base/xorg-proto
1366 - )
1367 -"
1368 -BDEPEND="
1369 - ${PYTHON_DEPS}
1370 - opencl? (
1371 - >=sys-devel/gcc-4.6
1372 - )
1373 - sys-devel/bison
1374 - sys-devel/flex
1375 - sys-devel/gettext
1376 - virtual/pkgconfig
1377 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
1378 -"
1379 -
1380 -S="${WORKDIR}/${MY_P}"
1381 -EGIT_CHECKOUT_DIR=${S}
1382 -
1383 -QA_WX_LOAD="
1384 -x86? (
1385 - usr/lib*/libglapi.so.0.0.0
1386 - usr/lib*/libGLESv1_CM.so.1.1.0
1387 - usr/lib*/libGLESv2.so.2.0.0
1388 - usr/lib*/libGL.so.1.2.0
1389 - usr/lib*/libOSMesa.so.8.0.0
1390 - libglvnd? ( usr/lib/libGLX_mesa.so.0.0.0 )
1391 -)"
1392 -
1393 -llvm_check_deps() {
1394 - local flags=${MULTILIB_USEDEP}
1395 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
1396 - then
1397 - flags+=",llvm_targets_AMDGPU(-)"
1398 - fi
1399 -
1400 - if use opencl; then
1401 - has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
1402 - fi
1403 - has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
1404 -}
1405 -
1406 -pkg_pretend() {
1407 - if use opencl; then
1408 - if ! use video_cards_r600 &&
1409 - ! use video_cards_radeonsi; then
1410 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
1411 - fi
1412 - fi
1413 -
1414 - if use vaapi; then
1415 - if ! use video_cards_r600 &&
1416 - ! use video_cards_radeonsi &&
1417 - ! use video_cards_nouveau; then
1418 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
1419 - fi
1420 - fi
1421 -
1422 - if use vdpau; then
1423 - if ! use video_cards_r300 &&
1424 - ! use video_cards_r600 &&
1425 - ! use video_cards_radeonsi &&
1426 - ! use video_cards_nouveau; then
1427 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
1428 - fi
1429 - fi
1430 -
1431 - if use xa; then
1432 - if ! use video_cards_freedreno &&
1433 - ! use video_cards_nouveau &&
1434 - ! use video_cards_vmware; then
1435 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
1436 - fi
1437 - fi
1438 -
1439 - if use xvmc; then
1440 - if ! use video_cards_r600 &&
1441 - ! use video_cards_nouveau; then
1442 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
1443 - fi
1444 - fi
1445 -
1446 - if ! use gallium; then
1447 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
1448 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
1449 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
1450 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
1451 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
1452 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
1453 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
1454 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
1455 - fi
1456 -
1457 - if ! use llvm; then
1458 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
1459 - fi
1460 -}
1461 -
1462 -python_check_deps() {
1463 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
1464 -}
1465 -
1466 -pkg_setup() {
1467 - # warning message for bug 459306
1468 - if use llvm && has_version sys-devel/llvm[!debug=]; then
1469 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
1470 - ewarn "detected! This can cause problems. For details, see bug 459306."
1471 - fi
1472 -
1473 - if use llvm; then
1474 - llvm_pkg_setup
1475 - fi
1476 - python-any-r1_pkg_setup
1477 -}
1478 -
1479 -multilib_src_configure() {
1480 - local emesonargs=()
1481 -
1482 - if use classic; then
1483 - # Intel code
1484 - dri_driver_enable video_cards_i915 i915
1485 - dri_driver_enable video_cards_i965 i965
1486 - if ! use video_cards_i915 && \
1487 - ! use video_cards_i965; then
1488 - dri_driver_enable video_cards_intel i915 i965
1489 - fi
1490 -
1491 - # Nouveau code
1492 - dri_driver_enable video_cards_nouveau nouveau
1493 -
1494 - # ATI code
1495 - dri_driver_enable video_cards_r100 r100
1496 - dri_driver_enable video_cards_r200 r200
1497 - if ! use video_cards_r100 && \
1498 - ! use video_cards_r200; then
1499 - dri_driver_enable video_cards_radeon r100 r200
1500 - fi
1501 - fi
1502 -
1503 - emesonargs+=( -Dplatforms=surfaceless$(use X && echo ",x11")$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
1504 -
1505 - if use gallium; then
1506 - emesonargs+=(
1507 - $(meson_use llvm)
1508 - $(meson_use lm-sensors lmsensors)
1509 - $(meson_use unwind libunwind)
1510 - )
1511 -
1512 - if use video_cards_iris ||
1513 - use video_cards_r300 ||
1514 - use video_cards_r600 ||
1515 - use video_cards_radeonsi ||
1516 - use video_cards_nouveau ||
1517 - use video_cards_vmware; then
1518 - emesonargs+=($(meson_use d3d9 gallium-nine))
1519 - else
1520 - emesonargs+=(-Dgallium-nine=false)
1521 - fi
1522 -
1523 - if use video_cards_r600 ||
1524 - use video_cards_radeonsi ||
1525 - use video_cards_nouveau; then
1526 - emesonargs+=($(meson_use vaapi gallium-va))
1527 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
1528 - else
1529 - emesonargs+=(-Dgallium-va=false)
1530 - fi
1531 -
1532 - if use video_cards_r300 ||
1533 - use video_cards_r600 ||
1534 - use video_cards_radeonsi ||
1535 - use video_cards_nouveau; then
1536 - emesonargs+=($(meson_use vdpau gallium-vdpau))
1537 - else
1538 - emesonargs+=(-Dgallium-vdpau=false)
1539 - fi
1540 -
1541 - if use video_cards_freedreno ||
1542 - use video_cards_nouveau ||
1543 - use video_cards_vmware; then
1544 - emesonargs+=($(meson_use xa gallium-xa))
1545 - else
1546 - emesonargs+=(-Dgallium-xa=false)
1547 - fi
1548 -
1549 - if use video_cards_r600 ||
1550 - use video_cards_nouveau; then
1551 - emesonargs+=($(meson_use xvmc gallium-xvmc))
1552 - else
1553 - emesonargs+=(-Dgallium-xvmc=false)
1554 - fi
1555 -
1556 - if use video_cards_freedreno ||
1557 - use video_cards_lima ||
1558 - use video_cards_panfrost ||
1559 - use video_cards_vc4 ||
1560 - use video_cards_vivante; then
1561 - gallium_enable -- kmsro
1562 - fi
1563 -
1564 - gallium_enable video_cards_lima lima
1565 - gallium_enable video_cards_panfrost panfrost
1566 - gallium_enable video_cards_vc4 vc4
1567 - gallium_enable video_cards_vivante etnaviv
1568 - gallium_enable video_cards_vmware svga
1569 - gallium_enable video_cards_nouveau nouveau
1570 -
1571 - # Only one i915 driver (classic vs gallium). Default to classic.
1572 - if ! use classic; then
1573 - gallium_enable video_cards_i915 i915
1574 - if ! use video_cards_i915 && \
1575 - ! use video_cards_i965; then
1576 - gallium_enable video_cards_intel i915
1577 - fi
1578 - fi
1579 -
1580 - gallium_enable video_cards_iris iris
1581 -
1582 - gallium_enable video_cards_r300 r300
1583 - gallium_enable video_cards_r600 r600
1584 - gallium_enable video_cards_radeonsi radeonsi
1585 - if ! use video_cards_r300 && \
1586 - ! use video_cards_r600; then
1587 - gallium_enable video_cards_radeon r300 r600
1588 - fi
1589 -
1590 - gallium_enable video_cards_freedreno freedreno
1591 - gallium_enable video_cards_virgl virgl
1592 -
1593 - # opencl stuff
1594 - emesonargs+=(
1595 - -Dgallium-opencl="$(usex opencl icd disabled)"
1596 - )
1597 - fi
1598 -
1599 - if use vulkan; then
1600 - vulkan_enable video_cards_i965 intel
1601 - vulkan_enable video_cards_iris intel
1602 - vulkan_enable video_cards_radeonsi amd
1603 - fi
1604 -
1605 - if use gallium; then
1606 - gallium_enable -- swrast
1607 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
1608 - else
1609 - dri_driver_enable -- swrast
1610 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
1611 - fi
1612 -
1613 - driver_list() {
1614 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
1615 - echo "${drivers//$'\n'/,}"
1616 - }
1617 -
1618 - emesonargs+=(
1619 - $(meson_use test build-tests)
1620 - -Dglx=$(usex X dri disabled)
1621 - -Dshared-glapi=true
1622 - $(meson_use dri3)
1623 - $(meson_use egl)
1624 - $(meson_use gbm)
1625 - $(meson_use gles1)
1626 - $(meson_use gles2)
1627 - $(meson_use libglvnd glvnd)
1628 - $(meson_use selinux)
1629 - -Dvalgrind=$(usex valgrind auto false)
1630 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
1631 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
1632 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
1633 - $(meson_use vulkan-overlay vulkan-overlay-layer)
1634 - --buildtype $(usex debug debug plain)
1635 - -Db_ndebug=$(usex debug false true)
1636 - )
1637 - meson_src_configure
1638 -}
1639 -
1640 -multilib_src_compile() {
1641 - meson_src_compile
1642 -}
1643 -
1644 -multilib_src_install() {
1645 - meson_src_install
1646 -
1647 - use libglvnd && rm -f "${D}"/usr/$(get_libdir)/pkgconfig/{egl,gl}.pc
1648 -}
1649 -
1650 -multilib_src_install_all() {
1651 - einstalldocs
1652 -}
1653 -
1654 -multilib_src_test() {
1655 - meson test -v -C "${BUILD_DIR}" -t 100
1656 -}
1657 -
1658 -pkg_postinst() {
1659 - if ! use libglvnd; then
1660 - # Switch to the xorg implementation.
1661 - echo
1662 - eselect opengl set --use-old ${OPENGL_DIR}
1663 - fi
1664 -}
1665 -
1666 -# $1 - VIDEO_CARDS flag (check skipped for "--")
1667 -# other args - names of DRI drivers to enable
1668 -dri_driver_enable() {
1669 - if [[ $1 == -- ]] || use $1; then
1670 - shift
1671 - DRI_DRIVERS+=("$@")
1672 - fi
1673 -}
1674 -
1675 -gallium_enable() {
1676 - if [[ $1 == -- ]] || use $1; then
1677 - shift
1678 - GALLIUM_DRIVERS+=("$@")
1679 - fi
1680 -}
1681 -
1682 -vulkan_enable() {
1683 - if [[ $1 == -- ]] || use $1; then
1684 - shift
1685 - VULKAN_DRIVERS+=("$@")
1686 - fi
1687 -}
1688
1689 diff --git a/media-libs/mesa/mesa-20.0.0_rc3.ebuild b/media-libs/mesa/mesa-20.0.0_rc3.ebuild
1690 deleted file mode 100644
1691 index 39da329b5dd..00000000000
1692 --- a/media-libs/mesa/mesa-20.0.0_rc3.ebuild
1693 +++ /dev/null
1694 @@ -1,542 +0,0 @@
1695 -# Copyright 1999-2020 Gentoo Authors
1696 -# Distributed under the terms of the GNU General Public License v2
1697 -
1698 -EAPI=7
1699 -
1700 -PYTHON_COMPAT=( python3_{6,7,8} )
1701 -
1702 -inherit llvm meson multilib-minimal pax-utils python-any-r1
1703 -
1704 -OPENGL_DIR="xorg-x11"
1705 -
1706 -MY_P="${P/_/-}"
1707 -
1708 -DESCRIPTION="OpenGL-like graphic library for Linux"
1709 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
1710 -
1711 -if [[ ${PV} == 9999 ]]; then
1712 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
1713 - inherit git-r3
1714 -else
1715 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
1716 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
1717 -fi
1718 -
1719 -LICENSE="MIT"
1720 -SLOT="0"
1721 -RESTRICT="
1722 - !test? ( test )
1723 -"
1724 -
1725 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
1726 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost vc4 virgl vivante vmware"
1727 -for card in ${VIDEO_CARDS}; do
1728 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
1729 -done
1730 -
1731 -IUSE="${IUSE_VIDEO_CARDS}
1732 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 libglvnd +llvm
1733 - lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan
1734 - vulkan-overlay wayland +X xa xvmc"
1735 -
1736 -REQUIRED_USE="
1737 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
1738 - gles1? ( egl )
1739 - gles2? ( egl )
1740 - vulkan? ( dri3
1741 - || ( video_cards_i965 video_cards_iris video_cards_radeonsi )
1742 - video_cards_radeonsi? ( llvm ) )
1743 - vulkan-overlay? ( vulkan )
1744 - wayland? ( egl gbm )
1745 - video_cards_freedreno? ( gallium )
1746 - video_cards_intel? ( classic )
1747 - video_cards_i915? ( || ( classic gallium ) )
1748 - video_cards_i965? ( classic )
1749 - video_cards_iris? ( gallium )
1750 - video_cards_lima? ( gallium )
1751 - video_cards_nouveau? ( || ( classic gallium ) )
1752 - video_cards_panfrost? ( gallium )
1753 - video_cards_radeon? ( || ( classic gallium )
1754 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
1755 - video_cards_r100? ( classic )
1756 - video_cards_r200? ( classic )
1757 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
1758 - video_cards_r600? ( gallium )
1759 - video_cards_radeonsi? ( gallium llvm )
1760 - video_cards_vc4? ( gallium )
1761 - video_cards_virgl? ( gallium )
1762 - video_cards_vivante? ( gallium gbm )
1763 - video_cards_vmware? ( gallium )
1764 - xa? ( X )
1765 - xvmc? ( X )
1766 -"
1767 -
1768 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.100"
1769 -RDEPEND="
1770 - !app-eselect/eselect-mesa
1771 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
1772 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
1773 - libglvnd? (
1774 - >=media-libs/libglvnd-1.2.0-r1[${MULTILIB_USEDEP}]
1775 - !app-eselect/eselect-opengl
1776 - )
1777 - !libglvnd? (
1778 - >=app-eselect/eselect-opengl-1.3.0
1779 - )
1780 - gallium? (
1781 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
1782 - llvm? (
1783 - video_cards_radeonsi? (
1784 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1785 - )
1786 - video_cards_r600? (
1787 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1788 - )
1789 - video_cards_radeon? (
1790 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1791 - )
1792 - )
1793 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
1794 - opencl? (
1795 - dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
1796 - dev-libs/libclc
1797 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1798 - )
1799 - vaapi? (
1800 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
1801 - )
1802 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
1803 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
1804 - )
1805 - selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
1806 - wayland? (
1807 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
1808 - >=dev-libs/wayland-protocols-1.8
1809 - )
1810 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
1811 - video_cards_intel? (
1812 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
1813 - )
1814 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
1815 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
1816 - X? (
1817 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
1818 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
1819 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
1820 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
1821 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
1822 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
1823 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
1824 - )
1825 -"
1826 -for card in ${RADEON_CARDS}; do
1827 - RDEPEND="${RDEPEND}
1828 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
1829 - "
1830 -done
1831 -RDEPEND="${RDEPEND}
1832 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
1833 -"
1834 -
1835 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
1836 -# we need to *really* make sure we're not pulling one than more slot
1837 -# simultaneously.
1838 -#
1839 -# How to use it:
1840 -# 1. List all the working slots (with min versions) in ||, newest first.
1841 -# 2. Update the := to specify *max* version, e.g. < 10.
1842 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
1843 -LLVM_MAX_SLOT="9"
1844 -LLVM_DEPSTR="
1845 - || (
1846 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
1847 - sys-devel/llvm:8[${MULTILIB_USEDEP}]
1848 - )
1849 - sys-devel/llvm:=[${MULTILIB_USEDEP}]
1850 -"
1851 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
1852 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
1853 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
1854 -RDEPEND="${RDEPEND}
1855 - gallium? (
1856 - llvm? (
1857 - opencl? (
1858 - video_cards_r600? (
1859 - ${CLANG_DEPSTR_AMDGPU}
1860 - )
1861 - !video_cards_r600? (
1862 - video_cards_radeonsi? (
1863 - ${CLANG_DEPSTR_AMDGPU}
1864 - )
1865 - )
1866 - !video_cards_r600? (
1867 - !video_cards_radeonsi? (
1868 - video_cards_radeon? (
1869 - ${CLANG_DEPSTR_AMDGPU}
1870 - )
1871 - )
1872 - )
1873 - !video_cards_r600? (
1874 - !video_cards_radeon? (
1875 - !video_cards_radeonsi? (
1876 - ${CLANG_DEPSTR}
1877 - )
1878 - )
1879 - )
1880 - )
1881 - !opencl? (
1882 - video_cards_r600? (
1883 - ${LLVM_DEPSTR_AMDGPU}
1884 - )
1885 - !video_cards_r600? (
1886 - video_cards_radeonsi? (
1887 - ${LLVM_DEPSTR_AMDGPU}
1888 - )
1889 - )
1890 - !video_cards_r600? (
1891 - !video_cards_radeonsi? (
1892 - video_cards_radeon? (
1893 - ${LLVM_DEPSTR_AMDGPU}
1894 - )
1895 - )
1896 - )
1897 - !video_cards_r600? (
1898 - !video_cards_radeon? (
1899 - !video_cards_radeonsi? (
1900 - ${LLVM_DEPSTR}
1901 - )
1902 - )
1903 - )
1904 - )
1905 - )
1906 - )
1907 -"
1908 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
1909 -
1910 -DEPEND="${RDEPEND}
1911 - valgrind? ( dev-util/valgrind )
1912 - X? (
1913 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
1914 - x11-base/xorg-proto
1915 - )
1916 -"
1917 -BDEPEND="
1918 - ${PYTHON_DEPS}
1919 - opencl? (
1920 - >=sys-devel/gcc-4.6
1921 - )
1922 - sys-devel/bison
1923 - sys-devel/flex
1924 - sys-devel/gettext
1925 - virtual/pkgconfig
1926 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
1927 -"
1928 -
1929 -S="${WORKDIR}/${MY_P}"
1930 -EGIT_CHECKOUT_DIR=${S}
1931 -
1932 -QA_WX_LOAD="
1933 -x86? (
1934 - usr/lib*/libglapi.so.0.0.0
1935 - usr/lib*/libGLESv1_CM.so.1.1.0
1936 - usr/lib*/libGLESv2.so.2.0.0
1937 - usr/lib*/libGL.so.1.2.0
1938 - usr/lib*/libOSMesa.so.8.0.0
1939 - libglvnd? ( usr/lib/libGLX_mesa.so.0.0.0 )
1940 -)"
1941 -
1942 -llvm_check_deps() {
1943 - local flags=${MULTILIB_USEDEP}
1944 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
1945 - then
1946 - flags+=",llvm_targets_AMDGPU(-)"
1947 - fi
1948 -
1949 - if use opencl; then
1950 - has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
1951 - fi
1952 - has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
1953 -}
1954 -
1955 -pkg_pretend() {
1956 - if use opencl; then
1957 - if ! use video_cards_r600 &&
1958 - ! use video_cards_radeonsi; then
1959 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
1960 - fi
1961 - fi
1962 -
1963 - if use vaapi; then
1964 - if ! use video_cards_r600 &&
1965 - ! use video_cards_radeonsi &&
1966 - ! use video_cards_nouveau; then
1967 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
1968 - fi
1969 - fi
1970 -
1971 - if use vdpau; then
1972 - if ! use video_cards_r300 &&
1973 - ! use video_cards_r600 &&
1974 - ! use video_cards_radeonsi &&
1975 - ! use video_cards_nouveau; then
1976 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
1977 - fi
1978 - fi
1979 -
1980 - if use xa; then
1981 - if ! use video_cards_freedreno &&
1982 - ! use video_cards_nouveau &&
1983 - ! use video_cards_vmware; then
1984 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
1985 - fi
1986 - fi
1987 -
1988 - if use xvmc; then
1989 - if ! use video_cards_r600 &&
1990 - ! use video_cards_nouveau; then
1991 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
1992 - fi
1993 - fi
1994 -
1995 - if ! use gallium; then
1996 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
1997 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
1998 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
1999 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
2000 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
2001 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
2002 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
2003 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
2004 - fi
2005 -
2006 - if ! use llvm; then
2007 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
2008 - fi
2009 -}
2010 -
2011 -python_check_deps() {
2012 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
2013 -}
2014 -
2015 -pkg_setup() {
2016 - # warning message for bug 459306
2017 - if use llvm && has_version sys-devel/llvm[!debug=]; then
2018 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
2019 - ewarn "detected! This can cause problems. For details, see bug 459306."
2020 - fi
2021 -
2022 - if use llvm; then
2023 - llvm_pkg_setup
2024 - fi
2025 - python-any-r1_pkg_setup
2026 -}
2027 -
2028 -multilib_src_configure() {
2029 - local emesonargs=()
2030 -
2031 - if use classic; then
2032 - # Intel code
2033 - dri_driver_enable video_cards_i915 i915
2034 - dri_driver_enable video_cards_i965 i965
2035 - if ! use video_cards_i915 && \
2036 - ! use video_cards_i965; then
2037 - dri_driver_enable video_cards_intel i915 i965
2038 - fi
2039 -
2040 - # Nouveau code
2041 - dri_driver_enable video_cards_nouveau nouveau
2042 -
2043 - # ATI code
2044 - dri_driver_enable video_cards_r100 r100
2045 - dri_driver_enable video_cards_r200 r200
2046 - if ! use video_cards_r100 && \
2047 - ! use video_cards_r200; then
2048 - dri_driver_enable video_cards_radeon r100 r200
2049 - fi
2050 - fi
2051 -
2052 - emesonargs+=( -Dplatforms=surfaceless$(use X && echo ",x11")$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
2053 -
2054 - if use gallium; then
2055 - emesonargs+=(
2056 - $(meson_use llvm)
2057 - $(meson_use lm-sensors lmsensors)
2058 - $(meson_use unwind libunwind)
2059 - )
2060 -
2061 - if use video_cards_iris ||
2062 - use video_cards_r300 ||
2063 - use video_cards_r600 ||
2064 - use video_cards_radeonsi ||
2065 - use video_cards_nouveau ||
2066 - use video_cards_vmware; then
2067 - emesonargs+=($(meson_use d3d9 gallium-nine))
2068 - else
2069 - emesonargs+=(-Dgallium-nine=false)
2070 - fi
2071 -
2072 - if use video_cards_r600 ||
2073 - use video_cards_radeonsi ||
2074 - use video_cards_nouveau; then
2075 - emesonargs+=($(meson_use vaapi gallium-va))
2076 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
2077 - else
2078 - emesonargs+=(-Dgallium-va=false)
2079 - fi
2080 -
2081 - if use video_cards_r300 ||
2082 - use video_cards_r600 ||
2083 - use video_cards_radeonsi ||
2084 - use video_cards_nouveau; then
2085 - emesonargs+=($(meson_use vdpau gallium-vdpau))
2086 - else
2087 - emesonargs+=(-Dgallium-vdpau=false)
2088 - fi
2089 -
2090 - if use video_cards_freedreno ||
2091 - use video_cards_nouveau ||
2092 - use video_cards_vmware; then
2093 - emesonargs+=($(meson_use xa gallium-xa))
2094 - else
2095 - emesonargs+=(-Dgallium-xa=false)
2096 - fi
2097 -
2098 - if use video_cards_r600 ||
2099 - use video_cards_nouveau; then
2100 - emesonargs+=($(meson_use xvmc gallium-xvmc))
2101 - else
2102 - emesonargs+=(-Dgallium-xvmc=false)
2103 - fi
2104 -
2105 - if use video_cards_freedreno ||
2106 - use video_cards_lima ||
2107 - use video_cards_panfrost ||
2108 - use video_cards_vc4 ||
2109 - use video_cards_vivante; then
2110 - gallium_enable -- kmsro
2111 - fi
2112 -
2113 - gallium_enable video_cards_lima lima
2114 - gallium_enable video_cards_panfrost panfrost
2115 - gallium_enable video_cards_vc4 vc4
2116 - gallium_enable video_cards_vivante etnaviv
2117 - gallium_enable video_cards_vmware svga
2118 - gallium_enable video_cards_nouveau nouveau
2119 -
2120 - # Only one i915 driver (classic vs gallium). Default to classic.
2121 - if ! use classic; then
2122 - gallium_enable video_cards_i915 i915
2123 - if ! use video_cards_i915 && \
2124 - ! use video_cards_i965; then
2125 - gallium_enable video_cards_intel i915
2126 - fi
2127 - fi
2128 -
2129 - gallium_enable video_cards_iris iris
2130 -
2131 - gallium_enable video_cards_r300 r300
2132 - gallium_enable video_cards_r600 r600
2133 - gallium_enable video_cards_radeonsi radeonsi
2134 - if ! use video_cards_r300 && \
2135 - ! use video_cards_r600; then
2136 - gallium_enable video_cards_radeon r300 r600
2137 - fi
2138 -
2139 - gallium_enable video_cards_freedreno freedreno
2140 - gallium_enable video_cards_virgl virgl
2141 -
2142 - # opencl stuff
2143 - emesonargs+=(
2144 - -Dgallium-opencl="$(usex opencl icd disabled)"
2145 - )
2146 - fi
2147 -
2148 - if use vulkan; then
2149 - vulkan_enable video_cards_i965 intel
2150 - vulkan_enable video_cards_iris intel
2151 - vulkan_enable video_cards_radeonsi amd
2152 - fi
2153 -
2154 - if use gallium; then
2155 - gallium_enable -- swrast
2156 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
2157 - else
2158 - dri_driver_enable -- swrast
2159 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
2160 - fi
2161 -
2162 - driver_list() {
2163 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
2164 - echo "${drivers//$'\n'/,}"
2165 - }
2166 -
2167 - emesonargs+=(
2168 - $(meson_use test build-tests)
2169 - -Dglx=$(usex X dri disabled)
2170 - -Dshared-glapi=true
2171 - $(meson_use dri3)
2172 - $(meson_use egl)
2173 - $(meson_use gbm)
2174 - $(meson_use gles1)
2175 - $(meson_use gles2)
2176 - $(meson_use libglvnd glvnd)
2177 - $(meson_use selinux)
2178 - -Dvalgrind=$(usex valgrind auto false)
2179 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
2180 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
2181 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
2182 - $(meson_use vulkan-overlay vulkan-overlay-layer)
2183 - --buildtype $(usex debug debug plain)
2184 - -Db_ndebug=$(usex debug false true)
2185 - )
2186 - meson_src_configure
2187 -}
2188 -
2189 -multilib_src_compile() {
2190 - meson_src_compile
2191 -}
2192 -
2193 -multilib_src_install() {
2194 - meson_src_install
2195 -
2196 - use libglvnd && rm -f "${D}"/usr/$(get_libdir)/pkgconfig/{egl,gl}.pc
2197 -}
2198 -
2199 -multilib_src_install_all() {
2200 - einstalldocs
2201 -}
2202 -
2203 -multilib_src_test() {
2204 - meson test -v -C "${BUILD_DIR}" -t 100
2205 -}
2206 -
2207 -pkg_postinst() {
2208 - if ! use libglvnd; then
2209 - # Switch to the xorg implementation.
2210 - echo
2211 - eselect opengl set --use-old ${OPENGL_DIR}
2212 - fi
2213 -}
2214 -
2215 -# $1 - VIDEO_CARDS flag (check skipped for "--")
2216 -# other args - names of DRI drivers to enable
2217 -dri_driver_enable() {
2218 - if [[ $1 == -- ]] || use $1; then
2219 - shift
2220 - DRI_DRIVERS+=("$@")
2221 - fi
2222 -}
2223 -
2224 -gallium_enable() {
2225 - if [[ $1 == -- ]] || use $1; then
2226 - shift
2227 - GALLIUM_DRIVERS+=("$@")
2228 - fi
2229 -}
2230 -
2231 -vulkan_enable() {
2232 - if [[ $1 == -- ]] || use $1; then
2233 - shift
2234 - VULKAN_DRIVERS+=("$@")
2235 - fi
2236 -}