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, 13 Nov 2019 19:14:06
Message-Id: 1573672422.f976843a19a05f2f593f395ed47256c9d711822f.mattst88@gentoo
1 commit: f976843a19a05f2f593f395ed47256c9d711822f
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 13 19:13:13 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 13 19:13:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f976843a
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 | 3 -
13 media-libs/mesa/mesa-19.1.7.ebuild | 540 ------------------------------------
14 media-libs/mesa/mesa-19.2.2.ebuild | 548 -------------------------------------
15 media-libs/mesa/mesa-19.2.3.ebuild | 548 -------------------------------------
16 4 files changed, 1639 deletions(-)
17
18 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
19 index b039a712881..1cd727a99a1 100644
20 --- a/media-libs/mesa/Manifest
21 +++ b/media-libs/mesa/Manifest
22 @@ -1,6 +1,3 @@
23 -DIST mesa-19.1.7.tar.xz 10941152 BLAKE2B 6be14ddac404668bdd8b7b8756388019c3610ac41b65a7723a419b97b7eccbca666ad6d904f4cde186c4b171e056636a8a6a5727e30963c8fa177d7861bd6cfb SHA512 0865b5f91e5daa00e1da2b3d8b65fe5d2ff6332372bf8fec7d671d05d8d64ec5a7abea1858cdfc506c76b7226d2bea0af3426565f156b796d8e0f949ea33dc15
24 DIST mesa-19.1.8.tar.xz 10945480 BLAKE2B df2ce0561cd0a61f0f35a406a5a9b2384c0c5869efadabfa40b07cf96a592214aa5c6d03423598c531f117075c3b59aa5af6f9b1c5dfa5914aabe41f60b592a0 SHA512 3bcc90c17cf966ce3399434ca2d4f363c5778e52c56b8184d6cdf22ef2e4a4fdb9c3fbff5c98efc856e3535f81259608a6daa74af1f3bdce30ea251d86435c74
25 -DIST mesa-19.2.2.tar.xz 11456352 BLAKE2B b0900a486d5883759dc395a25195c46fbc90d0388840099d515713a3c1e27560ea6cf9f6bfc5987c9704593b174e26f49a4cd08ff1260b1c1b2197b56c6919b6 SHA512 a3269052c2dfb5404180d1aebd68f5b9b0cc136d634ba89fed3f60fcc9b279072e09ee2db9b485375d39e886209053841df920c9d0b975e0de2825e3da4164a5
26 -DIST mesa-19.2.3.tar.xz 11457544 BLAKE2B 60ff0296408447077ff0594022bf3e8d295274a6ce3009266ddd01bfb5b74e33ff3be802e61e777e1a61856bcc1c402428ca7d310256e59eb7b568b068e8c384 SHA512 a64a6b508c28a61b9f5a50f639d0cdca2546caa2118c2478100e3535961d76bf3877357d4a7ddd7dc1d3dfc617883c8ee188915523b003aed8db03e0d5e1c007
27 DIST mesa-19.2.4.tar.xz 11458340 BLAKE2B 2403f50e3d31f87981b8f243d8473672305c88f93daa11c0d9a373d5b68f52af105b134d9deda71bc9d4f56e6c8b2d6358b298060229802987ef88dd58bc5d21 SHA512 e8a0e90460f3153d730f8fb13f2c912a9826c05d2af9e22dc575bcd8885bf6a33c0af1c6659e81701ff097a132df88eead208e89dceb552b9da809ab543fa479
28 DIST mesa-19.3.0-rc2.tar.xz 11790920 BLAKE2B a1cf1b504cdd818aff33b739159dd715af2d30f346f396b9b7634096b74d77a798f302c044241bc42191b318c6314342f2fa670ec0f92279a50d1a0f7993fd71 SHA512 bc198c8cb625b59e11e7bc15e4021ac42733f297f30eb5a08e6fe9830df6f47416a5e8239a249ec2ce5038928fe63aacf5c6647edadf0ef8bb98ff2e9f85a66a
29
30 diff --git a/media-libs/mesa/mesa-19.1.7.ebuild b/media-libs/mesa/mesa-19.1.7.ebuild
31 deleted file mode 100644
32 index 9f078435bae..00000000000
33 --- a/media-libs/mesa/mesa-19.1.7.ebuild
34 +++ /dev/null
35 @@ -1,540 +0,0 @@
36 -# Copyright 1999-2019 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -PYTHON_COMPAT=( python3_5 python3_6 python3_7 )
42 -
43 -inherit llvm meson multilib-minimal pax-utils python-any-r1
44 -
45 -OPENGL_DIR="xorg-x11"
46 -
47 -MY_P="${P/_/-}"
48 -
49 -DESCRIPTION="OpenGL-like graphic library for Linux"
50 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
51 -
52 -if [[ ${PV} == 9999 ]]; then
53 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
54 - EXPERIMENTAL="true"
55 - inherit git-r3
56 -else
57 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
58 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
59 -fi
60 -
61 -LICENSE="MIT"
62 -SLOT="0"
63 -RESTRICT="
64 - !test? ( test )
65 -"
66 -
67 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
68 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris nouveau vc4 virgl vivante vmware"
69 -for card in ${VIDEO_CARDS}; do
70 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
71 -done
72 -
73 -IUSE="${IUSE_VIDEO_CARDS}
74 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +libglvnd +llvm
75 - lm-sensors opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind
76 - vdpau vulkan vulkan-overlay wayland xa xvmc"
77 -
78 -REQUIRED_USE="
79 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
80 - gles1? ( egl )
81 - gles2? ( egl )
82 - vulkan? ( dri3
83 - || ( video_cards_i965 video_cards_iris video_cards_radeonsi )
84 - video_cards_radeonsi? ( llvm ) )
85 - vulkan-overlay? ( vulkan )
86 - wayland? ( egl gbm )
87 - video_cards_freedreno? ( gallium )
88 - video_cards_intel? ( classic )
89 - video_cards_i915? ( || ( classic gallium ) )
90 - video_cards_i965? ( classic )
91 - video_cards_iris? ( gallium )
92 - video_cards_nouveau? ( || ( classic gallium ) )
93 - video_cards_radeon? ( || ( classic gallium )
94 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
95 - video_cards_r100? ( classic )
96 - video_cards_r200? ( classic )
97 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
98 - video_cards_r600? ( gallium )
99 - video_cards_radeonsi? ( gallium llvm )
100 - video_cards_vc4? ( gallium )
101 - video_cards_virgl? ( gallium )
102 - video_cards_vivante? ( gallium gbm )
103 - video_cards_vmware? ( gallium )
104 -"
105 -
106 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.97"
107 -RDEPEND="
108 - !app-eselect/eselect-mesa
109 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
110 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
111 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
112 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
113 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
114 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
115 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
116 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
117 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
118 - libglvnd? (
119 - media-libs/libglvnd[${MULTILIB_USEDEP}]
120 - !app-eselect/eselect-opengl
121 - )
122 - !libglvnd? (
123 - >=app-eselect/eselect-opengl-1.3.0
124 - )
125 - gallium? (
126 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
127 - llvm? (
128 - video_cards_radeonsi? (
129 - virtual/libelf:0=[${MULTILIB_USEDEP}]
130 - )
131 - video_cards_r600? (
132 - virtual/libelf:0=[${MULTILIB_USEDEP}]
133 - )
134 - video_cards_radeon? (
135 - virtual/libelf:0=[${MULTILIB_USEDEP}]
136 - )
137 - )
138 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
139 - opencl? (
140 - dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
141 - dev-libs/libclc
142 - virtual/libelf:0=[${MULTILIB_USEDEP}]
143 - )
144 - vaapi? (
145 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
146 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
147 - )
148 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
149 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
150 - )
151 - wayland? (
152 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
153 - >=dev-libs/wayland-protocols-1.8
154 - )
155 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
156 -
157 - video_cards_intel? (
158 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
159 - )
160 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
161 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
162 -"
163 -for card in ${RADEON_CARDS}; do
164 - RDEPEND="${RDEPEND}
165 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
166 - "
167 -done
168 -RDEPEND="${RDEPEND}
169 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
170 -"
171 -
172 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
173 -# we need to *really* make sure we're not pulling one than more slot
174 -# simultaneously.
175 -#
176 -# How to use it:
177 -# 1. List all the working slots (with min versions) in ||, newest first.
178 -# 2. Update the := to specify *max* version, e.g. < 10.
179 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
180 -LLVM_MAX_SLOT="9"
181 -LLVM_DEPSTR="
182 - || (
183 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
184 - sys-devel/llvm:8[${MULTILIB_USEDEP}]
185 - sys-devel/llvm:7[${MULTILIB_USEDEP}]
186 - )
187 - sys-devel/llvm:=[${MULTILIB_USEDEP}]
188 -"
189 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
190 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
191 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
192 -RDEPEND="${RDEPEND}
193 - llvm? (
194 - opencl? (
195 - video_cards_r600? (
196 - ${CLANG_DEPSTR_AMDGPU}
197 - )
198 - !video_cards_r600? (
199 - video_cards_radeonsi? (
200 - ${CLANG_DEPSTR_AMDGPU}
201 - )
202 - )
203 - !video_cards_r600? (
204 - !video_cards_radeonsi? (
205 - video_cards_radeon? (
206 - ${CLANG_DEPSTR_AMDGPU}
207 - )
208 - )
209 - )
210 - !video_cards_r600? (
211 - !video_cards_radeon? (
212 - !video_cards_radeonsi? (
213 - ${CLANG_DEPSTR}
214 - )
215 - )
216 - )
217 - )
218 - !opencl? (
219 - video_cards_r600? (
220 - ${LLVM_DEPSTR_AMDGPU}
221 - )
222 - !video_cards_r600? (
223 - video_cards_radeonsi? (
224 - ${LLVM_DEPSTR_AMDGPU}
225 - )
226 - )
227 - !video_cards_r600? (
228 - !video_cards_radeonsi? (
229 - video_cards_radeon? (
230 - ${LLVM_DEPSTR_AMDGPU}
231 - )
232 - )
233 - )
234 - !video_cards_r600? (
235 - !video_cards_radeon? (
236 - !video_cards_radeonsi? (
237 - ${LLVM_DEPSTR}
238 - )
239 - )
240 - )
241 - )
242 - )
243 -"
244 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
245 -
246 -DEPEND="${RDEPEND}
247 - valgrind? ( dev-util/valgrind )
248 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
249 - x11-base/xorg-proto
250 -"
251 -BDEPEND="
252 - ${PYTHON_DEPS}
253 - opencl? (
254 - >=sys-devel/gcc-4.6
255 - )
256 - sys-devel/bison
257 - sys-devel/flex
258 - sys-devel/gettext
259 - virtual/pkgconfig
260 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
261 -"
262 -
263 -S="${WORKDIR}/${MY_P}"
264 -EGIT_CHECKOUT_DIR=${S}
265 -
266 -QA_WX_LOAD="
267 -x86? (
268 - !pic? (
269 - usr/lib*/libglapi.so.0.0.0
270 - usr/lib*/libGLESv1_CM.so.1.0.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 - )
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 opencl; then
292 - if ! use video_cards_r600 &&
293 - ! use video_cards_radeonsi; then
294 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
295 - fi
296 - fi
297 -
298 - if use vaapi; then
299 - if ! use video_cards_r600 &&
300 - ! use video_cards_radeonsi &&
301 - ! use video_cards_nouveau; then
302 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
303 - fi
304 - fi
305 -
306 - if use vdpau; then
307 - if ! use video_cards_r300 &&
308 - ! use video_cards_r600 &&
309 - ! use video_cards_radeonsi &&
310 - ! use video_cards_nouveau; then
311 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
312 - fi
313 - fi
314 -
315 - if use xa; then
316 - if ! use video_cards_freedreno &&
317 - ! use video_cards_nouveau &&
318 - ! use video_cards_vmware; then
319 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
320 - fi
321 - fi
322 -
323 - if use xvmc; then
324 - if ! use video_cards_r600 &&
325 - ! use video_cards_nouveau; then
326 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
327 - fi
328 - fi
329 -
330 - if ! use gallium; then
331 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
332 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
333 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
334 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
335 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
336 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
337 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
338 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
339 - fi
340 -
341 - if ! use llvm; then
342 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
343 - fi
344 -}
345 -
346 -python_check_deps() {
347 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
348 -}
349 -
350 -pkg_setup() {
351 - # warning message for bug 459306
352 - if use llvm && has_version sys-devel/llvm[!debug=]; then
353 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
354 - ewarn "detected! This can cause problems. For details, see bug 459306."
355 - fi
356 -
357 - if use llvm; then
358 - llvm_pkg_setup
359 - fi
360 - python-any-r1_pkg_setup
361 -}
362 -
363 -multilib_src_configure() {
364 - local emesonargs=()
365 -
366 - if use classic; then
367 - # Intel code
368 - dri_driver_enable video_cards_i915 i915
369 - dri_driver_enable video_cards_i965 i965
370 - if ! use video_cards_i915 && \
371 - ! use video_cards_i965; then
372 - dri_driver_enable video_cards_intel i915 i965
373 - fi
374 -
375 - # Nouveau code
376 - dri_driver_enable video_cards_nouveau nouveau
377 -
378 - # ATI code
379 - dri_driver_enable video_cards_r100 r100
380 - dri_driver_enable video_cards_r200 r200
381 - if ! use video_cards_r100 && \
382 - ! use video_cards_r200; then
383 - dri_driver_enable video_cards_radeon r100 r200
384 - fi
385 - fi
386 -
387 - emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
388 -
389 - if use gallium; then
390 - emesonargs+=(
391 - $(meson_use llvm)
392 - $(meson_use lm-sensors lmsensors)
393 - $(meson_use unwind libunwind)
394 - )
395 -
396 - if use video_cards_iris ||
397 - use video_cards_r300 ||
398 - use video_cards_r600 ||
399 - use video_cards_radeonsi ||
400 - use video_cards_nouveau ||
401 - use video_cards_vmware; then
402 - emesonargs+=($(meson_use d3d9 gallium-nine))
403 - else
404 - emesonargs+=(-Dgallium-nine=false)
405 - fi
406 -
407 - if use video_cards_r600 ||
408 - use video_cards_radeonsi ||
409 - use video_cards_nouveau; then
410 - emesonargs+=($(meson_use vaapi gallium-va))
411 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
412 - else
413 - emesonargs+=(-Dgallium-va=false)
414 - fi
415 -
416 - if use video_cards_r300 ||
417 - use video_cards_r600 ||
418 - use video_cards_radeonsi ||
419 - use video_cards_nouveau; then
420 - emesonargs+=($(meson_use vdpau gallium-vdpau))
421 - else
422 - emesonargs+=(-Dgallium-vdpau=false)
423 - fi
424 -
425 - if use video_cards_freedreno ||
426 - use video_cards_nouveau ||
427 - use video_cards_vmware; then
428 - emesonargs+=($(meson_use xa gallium-xa))
429 - else
430 - emesonargs+=(-Dgallium-xa=false)
431 - fi
432 -
433 - if use video_cards_r600 ||
434 - use video_cards_nouveau; then
435 - emesonargs+=($(meson_use xvmc gallium-xvmc))
436 - else
437 - emesonargs+=(-Dgallium-xvmc=false)
438 - fi
439 -
440 - if use video_cards_freedreno ||
441 - use video_cards_vc4 ||
442 - use video_cards_vivante; then
443 - gallium_enable -- kmsro
444 - fi
445 -
446 - gallium_enable video_cards_vc4 vc4
447 - gallium_enable video_cards_vivante etnaviv
448 - gallium_enable video_cards_vmware svga
449 - gallium_enable video_cards_nouveau nouveau
450 -
451 - # Only one i915 driver (classic vs gallium). Default to classic.
452 - if ! use classic; then
453 - gallium_enable video_cards_i915 i915
454 - if ! use video_cards_i915 && \
455 - ! use video_cards_i965; then
456 - gallium_enable video_cards_intel i915
457 - fi
458 - fi
459 -
460 - gallium_enable video_cards_iris iris
461 -
462 - gallium_enable video_cards_r300 r300
463 - gallium_enable video_cards_r600 r600
464 - gallium_enable video_cards_radeonsi radeonsi
465 - if ! use video_cards_r300 && \
466 - ! use video_cards_r600; then
467 - gallium_enable video_cards_radeon r300 r600
468 - fi
469 -
470 - gallium_enable video_cards_freedreno freedreno
471 - gallium_enable video_cards_virgl virgl
472 -
473 - # opencl stuff
474 - emesonargs+=(
475 - -Dgallium-opencl="$(usex opencl icd disabled)"
476 - )
477 - fi
478 -
479 - if use vulkan; then
480 - vulkan_enable video_cards_i965 intel
481 - vulkan_enable video_cards_iris intel
482 - vulkan_enable video_cards_radeonsi amd
483 - fi
484 -
485 - # x86 hardened pax_kernel needs glx-rts, bug 240956
486 - if [[ ${ABI} == x86 ]]; then
487 - emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
488 - fi
489 -
490 - # on abi_x86_32 hardened we need to have asm disable
491 - if [[ ${ABI} == x86* ]] && use pic; then
492 - emesonargs+=( -Dasm=false )
493 - fi
494 -
495 - if use gallium; then
496 - gallium_enable -- swrast
497 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
498 - else
499 - dri_driver_enable -- swrast
500 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
501 - fi
502 -
503 - driver_list() {
504 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
505 - echo "${drivers//$'\n'/,}"
506 - }
507 -
508 - emesonargs+=(
509 - $(meson_use test build-tests)
510 - -Dglx=dri
511 - -Dshared-glapi=true
512 - $(meson_use dri3)
513 - $(meson_use egl)
514 - $(meson_use gbm)
515 - $(meson_use gles1)
516 - $(meson_use gles2)
517 - $(meson_use libglvnd glvnd)
518 - $(meson_use selinux)
519 - -Dvalgrind=$(usex valgrind auto false)
520 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
521 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
522 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
523 - $(meson_use vulkan-overlay vulkan-overlay-layer)
524 - --buildtype $(usex debug debug plain)
525 - -Db_ndebug=$(usex debug false true)
526 - )
527 - meson_src_configure
528 -}
529 -
530 -multilib_src_compile() {
531 - meson_src_compile
532 -}
533 -
534 -multilib_src_install() {
535 - meson_src_install
536 -
537 - use libglvnd && rm -f "${D}"/usr/$(get_libdir)/libGLESv{1_CM,2}.so*
538 -}
539 -
540 -multilib_src_install_all() {
541 - einstalldocs
542 -}
543 -
544 -multilib_src_test() {
545 - meson test -v -C "${BUILD_DIR}" -t 100
546 -}
547 -
548 -pkg_postinst() {
549 - # Switch to the xorg implementation.
550 - echo
551 - eselect opengl set --use-old ${OPENGL_DIR}
552 -}
553 -
554 -# $1 - VIDEO_CARDS flag (check skipped for "--")
555 -# other args - names of DRI drivers to enable
556 -dri_driver_enable() {
557 - if [[ $1 == -- ]] || use $1; then
558 - shift
559 - DRI_DRIVERS+=("$@")
560 - fi
561 -}
562 -
563 -gallium_enable() {
564 - if [[ $1 == -- ]] || use $1; then
565 - shift
566 - GALLIUM_DRIVERS+=("$@")
567 - fi
568 -}
569 -
570 -vulkan_enable() {
571 - if [[ $1 == -- ]] || use $1; then
572 - shift
573 - VULKAN_DRIVERS+=("$@")
574 - fi
575 -}
576
577 diff --git a/media-libs/mesa/mesa-19.2.2.ebuild b/media-libs/mesa/mesa-19.2.2.ebuild
578 deleted file mode 100644
579 index 9fb49167ff4..00000000000
580 --- a/media-libs/mesa/mesa-19.2.2.ebuild
581 +++ /dev/null
582 @@ -1,548 +0,0 @@
583 -# Copyright 1999-2019 Gentoo Authors
584 -# Distributed under the terms of the GNU General Public License v2
585 -
586 -EAPI=7
587 -
588 -PYTHON_COMPAT=( python3_5 python3_6 python3_7 )
589 -
590 -inherit llvm meson multilib-minimal pax-utils python-any-r1
591 -
592 -OPENGL_DIR="xorg-x11"
593 -
594 -MY_P="${P/_/-}"
595 -
596 -DESCRIPTION="OpenGL-like graphic library for Linux"
597 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
598 -
599 -if [[ ${PV} == 9999 ]]; then
600 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
601 - inherit git-r3
602 -else
603 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
604 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
605 -fi
606 -
607 -LICENSE="MIT"
608 -SLOT="0"
609 -RESTRICT="
610 - !test? ( test )
611 -"
612 -
613 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
614 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost vc4 virgl vivante vmware"
615 -for card in ${VIDEO_CARDS}; do
616 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
617 -done
618 -
619 -IUSE="${IUSE_VIDEO_CARDS}
620 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 libglvnd +llvm
621 - lm-sensors opencl osmesa pax_kernel selinux test unwind vaapi valgrind
622 - vdpau vulkan vulkan-overlay wayland +X xa xvmc"
623 -
624 -REQUIRED_USE="
625 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
626 - gles1? ( egl )
627 - gles2? ( egl )
628 - vulkan? ( dri3
629 - || ( video_cards_i965 video_cards_iris video_cards_radeonsi )
630 - video_cards_radeonsi? ( llvm ) )
631 - vulkan-overlay? ( vulkan )
632 - wayland? ( egl gbm )
633 - video_cards_freedreno? ( gallium )
634 - video_cards_intel? ( classic )
635 - video_cards_i915? ( || ( classic gallium ) )
636 - video_cards_i965? ( classic )
637 - video_cards_iris? ( gallium )
638 - video_cards_lima? ( gallium )
639 - video_cards_nouveau? ( || ( classic gallium ) )
640 - video_cards_panfrost? ( gallium )
641 - video_cards_radeon? ( || ( classic gallium )
642 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
643 - video_cards_r100? ( classic )
644 - video_cards_r200? ( classic )
645 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
646 - video_cards_r600? ( gallium )
647 - video_cards_radeonsi? ( gallium llvm )
648 - video_cards_vc4? ( gallium )
649 - video_cards_virgl? ( gallium )
650 - video_cards_vivante? ( gallium gbm )
651 - video_cards_vmware? ( gallium )
652 - xa? ( X )
653 - xvmc? ( X )
654 -"
655 -
656 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.99"
657 -RDEPEND="
658 - !app-eselect/eselect-mesa
659 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
660 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
661 - libglvnd? (
662 - >=media-libs/libglvnd-1.2.0-r1[${MULTILIB_USEDEP}]
663 - !app-eselect/eselect-opengl
664 - )
665 - !libglvnd? (
666 - >=app-eselect/eselect-opengl-1.3.0
667 - )
668 - gallium? (
669 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
670 - llvm? (
671 - video_cards_radeonsi? (
672 - virtual/libelf:0=[${MULTILIB_USEDEP}]
673 - )
674 - video_cards_r600? (
675 - virtual/libelf:0=[${MULTILIB_USEDEP}]
676 - )
677 - video_cards_radeon? (
678 - virtual/libelf:0=[${MULTILIB_USEDEP}]
679 - )
680 - )
681 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
682 - opencl? (
683 - dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
684 - dev-libs/libclc
685 - virtual/libelf:0=[${MULTILIB_USEDEP}]
686 - )
687 - vaapi? (
688 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
689 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
690 - )
691 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
692 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
693 - )
694 - wayland? (
695 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
696 - >=dev-libs/wayland-protocols-1.8
697 - )
698 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
699 -
700 - video_cards_intel? (
701 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
702 - )
703 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
704 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
705 - X? (
706 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
707 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
708 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
709 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
710 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
711 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
712 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
713 - )
714 -"
715 -for card in ${RADEON_CARDS}; do
716 - RDEPEND="${RDEPEND}
717 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
718 - "
719 -done
720 -RDEPEND="${RDEPEND}
721 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
722 -"
723 -
724 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
725 -# we need to *really* make sure we're not pulling one than more slot
726 -# simultaneously.
727 -#
728 -# How to use it:
729 -# 1. List all the working slots (with min versions) in ||, newest first.
730 -# 2. Update the := to specify *max* version, e.g. < 10.
731 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
732 -LLVM_MAX_SLOT="10"
733 -LLVM_DEPSTR="
734 - || (
735 - sys-devel/llvm:10[${MULTILIB_USEDEP}]
736 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
737 - sys-devel/llvm:8[${MULTILIB_USEDEP}]
738 - sys-devel/llvm:7[${MULTILIB_USEDEP}]
739 - )
740 - sys-devel/llvm:=[${MULTILIB_USEDEP}]
741 -"
742 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
743 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
744 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
745 -RDEPEND="${RDEPEND}
746 - llvm? (
747 - opencl? (
748 - video_cards_r600? (
749 - ${CLANG_DEPSTR_AMDGPU}
750 - )
751 - !video_cards_r600? (
752 - video_cards_radeonsi? (
753 - ${CLANG_DEPSTR_AMDGPU}
754 - )
755 - )
756 - !video_cards_r600? (
757 - !video_cards_radeonsi? (
758 - video_cards_radeon? (
759 - ${CLANG_DEPSTR_AMDGPU}
760 - )
761 - )
762 - )
763 - !video_cards_r600? (
764 - !video_cards_radeon? (
765 - !video_cards_radeonsi? (
766 - ${CLANG_DEPSTR}
767 - )
768 - )
769 - )
770 - )
771 - !opencl? (
772 - video_cards_r600? (
773 - ${LLVM_DEPSTR_AMDGPU}
774 - )
775 - !video_cards_r600? (
776 - video_cards_radeonsi? (
777 - ${LLVM_DEPSTR_AMDGPU}
778 - )
779 - )
780 - !video_cards_r600? (
781 - !video_cards_radeonsi? (
782 - video_cards_radeon? (
783 - ${LLVM_DEPSTR_AMDGPU}
784 - )
785 - )
786 - )
787 - !video_cards_r600? (
788 - !video_cards_radeon? (
789 - !video_cards_radeonsi? (
790 - ${LLVM_DEPSTR}
791 - )
792 - )
793 - )
794 - )
795 - )
796 -"
797 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
798 -
799 -DEPEND="${RDEPEND}
800 - valgrind? ( dev-util/valgrind )
801 - X? (
802 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
803 - x11-base/xorg-proto
804 - )
805 -"
806 -BDEPEND="
807 - ${PYTHON_DEPS}
808 - opencl? (
809 - >=sys-devel/gcc-4.6
810 - )
811 - sys-devel/bison
812 - sys-devel/flex
813 - sys-devel/gettext
814 - virtual/pkgconfig
815 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
816 -"
817 -
818 -S="${WORKDIR}/${MY_P}"
819 -EGIT_CHECKOUT_DIR=${S}
820 -
821 -QA_WX_LOAD="
822 -x86? (
823 - usr/lib*/libglapi.so.0.0.0
824 - usr/lib*/libGLESv1_CM.so.1.1.0
825 - usr/lib*/libGLESv2.so.2.0.0
826 - usr/lib*/libGL.so.1.2.0
827 - usr/lib*/libOSMesa.so.8.0.0
828 - libglvnd? ( usr/lib/libGLX_mesa.so.0.0.0 )
829 -)"
830 -
831 -llvm_check_deps() {
832 - local flags=${MULTILIB_USEDEP}
833 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
834 - then
835 - flags+=",llvm_targets_AMDGPU(-)"
836 - fi
837 -
838 - if use opencl; then
839 - has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
840 - fi
841 - has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
842 -}
843 -
844 -pkg_pretend() {
845 - if use opencl; then
846 - if ! use video_cards_r600 &&
847 - ! use video_cards_radeonsi; then
848 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
849 - fi
850 - fi
851 -
852 - if use vaapi; then
853 - if ! use video_cards_r600 &&
854 - ! use video_cards_radeonsi &&
855 - ! use video_cards_nouveau; then
856 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
857 - fi
858 - fi
859 -
860 - if use vdpau; then
861 - if ! use video_cards_r300 &&
862 - ! use video_cards_r600 &&
863 - ! use video_cards_radeonsi &&
864 - ! use video_cards_nouveau; then
865 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
866 - fi
867 - fi
868 -
869 - if use xa; then
870 - if ! use video_cards_freedreno &&
871 - ! use video_cards_nouveau &&
872 - ! use video_cards_vmware; then
873 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
874 - fi
875 - fi
876 -
877 - if use xvmc; then
878 - if ! use video_cards_r600 &&
879 - ! use video_cards_nouveau; then
880 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
881 - fi
882 - fi
883 -
884 - if ! use gallium; then
885 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
886 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
887 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
888 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
889 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
890 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
891 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
892 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
893 - fi
894 -
895 - if ! use llvm; then
896 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
897 - fi
898 -}
899 -
900 -python_check_deps() {
901 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
902 -}
903 -
904 -pkg_setup() {
905 - # warning message for bug 459306
906 - if use llvm && has_version sys-devel/llvm[!debug=]; then
907 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
908 - ewarn "detected! This can cause problems. For details, see bug 459306."
909 - fi
910 -
911 - if use llvm; then
912 - llvm_pkg_setup
913 - fi
914 - python-any-r1_pkg_setup
915 -}
916 -
917 -multilib_src_configure() {
918 - local emesonargs=()
919 -
920 - if use classic; then
921 - # Intel code
922 - dri_driver_enable video_cards_i915 i915
923 - dri_driver_enable video_cards_i965 i965
924 - if ! use video_cards_i915 && \
925 - ! use video_cards_i965; then
926 - dri_driver_enable video_cards_intel i915 i965
927 - fi
928 -
929 - # Nouveau code
930 - dri_driver_enable video_cards_nouveau nouveau
931 -
932 - # ATI code
933 - dri_driver_enable video_cards_r100 r100
934 - dri_driver_enable video_cards_r200 r200
935 - if ! use video_cards_r100 && \
936 - ! use video_cards_r200; then
937 - dri_driver_enable video_cards_radeon r100 r200
938 - fi
939 - fi
940 -
941 - emesonargs+=( -Dplatforms=surfaceless$(use X && echo ",x11")$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
942 -
943 - if use gallium; then
944 - emesonargs+=(
945 - $(meson_use llvm)
946 - $(meson_use lm-sensors lmsensors)
947 - $(meson_use unwind libunwind)
948 - )
949 -
950 - if use video_cards_iris ||
951 - use video_cards_r300 ||
952 - use video_cards_r600 ||
953 - use video_cards_radeonsi ||
954 - use video_cards_nouveau ||
955 - use video_cards_vmware; then
956 - emesonargs+=($(meson_use d3d9 gallium-nine))
957 - else
958 - emesonargs+=(-Dgallium-nine=false)
959 - fi
960 -
961 - if use video_cards_r600 ||
962 - use video_cards_radeonsi ||
963 - use video_cards_nouveau; then
964 - emesonargs+=($(meson_use vaapi gallium-va))
965 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
966 - else
967 - emesonargs+=(-Dgallium-va=false)
968 - fi
969 -
970 - if use video_cards_r300 ||
971 - use video_cards_r600 ||
972 - use video_cards_radeonsi ||
973 - use video_cards_nouveau; then
974 - emesonargs+=($(meson_use vdpau gallium-vdpau))
975 - else
976 - emesonargs+=(-Dgallium-vdpau=false)
977 - fi
978 -
979 - if use video_cards_freedreno ||
980 - use video_cards_nouveau ||
981 - use video_cards_vmware; then
982 - emesonargs+=($(meson_use xa gallium-xa))
983 - else
984 - emesonargs+=(-Dgallium-xa=false)
985 - fi
986 -
987 - if use video_cards_r600 ||
988 - use video_cards_nouveau; then
989 - emesonargs+=($(meson_use xvmc gallium-xvmc))
990 - else
991 - emesonargs+=(-Dgallium-xvmc=false)
992 - fi
993 -
994 - if use video_cards_freedreno ||
995 - use video_cards_lima ||
996 - use video_cards_panfrost ||
997 - use video_cards_vc4 ||
998 - use video_cards_vivante; then
999 - gallium_enable -- kmsro
1000 - fi
1001 -
1002 - gallium_enable video_cards_lima lima
1003 - gallium_enable video_cards_panfrost panfrost
1004 - gallium_enable video_cards_vc4 vc4
1005 - gallium_enable video_cards_vivante etnaviv
1006 - gallium_enable video_cards_vmware svga
1007 - gallium_enable video_cards_nouveau nouveau
1008 -
1009 - # Only one i915 driver (classic vs gallium). Default to classic.
1010 - if ! use classic; then
1011 - gallium_enable video_cards_i915 i915
1012 - if ! use video_cards_i915 && \
1013 - ! use video_cards_i965; then
1014 - gallium_enable video_cards_intel i915
1015 - fi
1016 - fi
1017 -
1018 - gallium_enable video_cards_iris iris
1019 -
1020 - gallium_enable video_cards_r300 r300
1021 - gallium_enable video_cards_r600 r600
1022 - gallium_enable video_cards_radeonsi radeonsi
1023 - if ! use video_cards_r300 && \
1024 - ! use video_cards_r600; then
1025 - gallium_enable video_cards_radeon r300 r600
1026 - fi
1027 -
1028 - gallium_enable video_cards_freedreno freedreno
1029 - gallium_enable video_cards_virgl virgl
1030 -
1031 - # opencl stuff
1032 - emesonargs+=(
1033 - -Dgallium-opencl="$(usex opencl icd disabled)"
1034 - )
1035 - fi
1036 -
1037 - if use vulkan; then
1038 - vulkan_enable video_cards_i965 intel
1039 - vulkan_enable video_cards_iris intel
1040 - vulkan_enable video_cards_radeonsi amd
1041 - fi
1042 -
1043 - # x86 hardened pax_kernel needs glx-rts, bug 240956
1044 - if [[ ${ABI} == x86 ]]; then
1045 - emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
1046 - fi
1047 -
1048 - if use gallium; then
1049 - gallium_enable -- swrast
1050 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
1051 - else
1052 - dri_driver_enable -- swrast
1053 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
1054 - fi
1055 -
1056 - driver_list() {
1057 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
1058 - echo "${drivers//$'\n'/,}"
1059 - }
1060 -
1061 - emesonargs+=(
1062 - $(meson_use test build-tests)
1063 - -Dglx=$(usex X dri disabled)
1064 - -Dshared-glapi=true
1065 - $(meson_use dri3)
1066 - $(meson_use egl)
1067 - $(meson_use gbm)
1068 - $(meson_use gles1)
1069 - $(meson_use gles2)
1070 - $(meson_use libglvnd glvnd)
1071 - $(meson_use selinux)
1072 - -Dvalgrind=$(usex valgrind auto false)
1073 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
1074 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
1075 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
1076 - $(meson_use vulkan-overlay vulkan-overlay-layer)
1077 - --buildtype $(usex debug debug plain)
1078 - -Db_ndebug=$(usex debug false true)
1079 - )
1080 - meson_src_configure
1081 -}
1082 -
1083 -multilib_src_compile() {
1084 - meson_src_compile
1085 -}
1086 -
1087 -multilib_src_install() {
1088 - meson_src_install
1089 -
1090 - use libglvnd && rm -f "${D}"/usr/$(get_libdir)/pkgconfig/{egl,gl}.pc
1091 -}
1092 -
1093 -multilib_src_install_all() {
1094 - einstalldocs
1095 -}
1096 -
1097 -multilib_src_test() {
1098 - meson test -v -C "${BUILD_DIR}" -t 100
1099 -}
1100 -
1101 -pkg_postinst() {
1102 - if ! use libglvnd; then
1103 - # Switch to the xorg implementation.
1104 - echo
1105 - eselect opengl set --use-old ${OPENGL_DIR}
1106 - fi
1107 -}
1108 -
1109 -# $1 - VIDEO_CARDS flag (check skipped for "--")
1110 -# other args - names of DRI drivers to enable
1111 -dri_driver_enable() {
1112 - if [[ $1 == -- ]] || use $1; then
1113 - shift
1114 - DRI_DRIVERS+=("$@")
1115 - fi
1116 -}
1117 -
1118 -gallium_enable() {
1119 - if [[ $1 == -- ]] || use $1; then
1120 - shift
1121 - GALLIUM_DRIVERS+=("$@")
1122 - fi
1123 -}
1124 -
1125 -vulkan_enable() {
1126 - if [[ $1 == -- ]] || use $1; then
1127 - shift
1128 - VULKAN_DRIVERS+=("$@")
1129 - fi
1130 -}
1131
1132 diff --git a/media-libs/mesa/mesa-19.2.3.ebuild b/media-libs/mesa/mesa-19.2.3.ebuild
1133 deleted file mode 100644
1134 index 9fb49167ff4..00000000000
1135 --- a/media-libs/mesa/mesa-19.2.3.ebuild
1136 +++ /dev/null
1137 @@ -1,548 +0,0 @@
1138 -# Copyright 1999-2019 Gentoo Authors
1139 -# Distributed under the terms of the GNU General Public License v2
1140 -
1141 -EAPI=7
1142 -
1143 -PYTHON_COMPAT=( python3_5 python3_6 python3_7 )
1144 -
1145 -inherit llvm meson multilib-minimal pax-utils python-any-r1
1146 -
1147 -OPENGL_DIR="xorg-x11"
1148 -
1149 -MY_P="${P/_/-}"
1150 -
1151 -DESCRIPTION="OpenGL-like graphic library for Linux"
1152 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
1153 -
1154 -if [[ ${PV} == 9999 ]]; then
1155 - EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
1156 - inherit git-r3
1157 -else
1158 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
1159 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
1160 -fi
1161 -
1162 -LICENSE="MIT"
1163 -SLOT="0"
1164 -RESTRICT="
1165 - !test? ( test )
1166 -"
1167 -
1168 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
1169 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 intel iris lima nouveau panfrost vc4 virgl vivante vmware"
1170 -for card in ${VIDEO_CARDS}; do
1171 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
1172 -done
1173 -
1174 -IUSE="${IUSE_VIDEO_CARDS}
1175 - +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 libglvnd +llvm
1176 - lm-sensors opencl osmesa pax_kernel selinux test unwind vaapi valgrind
1177 - vdpau vulkan vulkan-overlay wayland +X xa xvmc"
1178 -
1179 -REQUIRED_USE="
1180 - d3d9? ( dri3 || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
1181 - gles1? ( egl )
1182 - gles2? ( egl )
1183 - vulkan? ( dri3
1184 - || ( video_cards_i965 video_cards_iris video_cards_radeonsi )
1185 - video_cards_radeonsi? ( llvm ) )
1186 - vulkan-overlay? ( vulkan )
1187 - wayland? ( egl gbm )
1188 - video_cards_freedreno? ( gallium )
1189 - video_cards_intel? ( classic )
1190 - video_cards_i915? ( || ( classic gallium ) )
1191 - video_cards_i965? ( classic )
1192 - video_cards_iris? ( gallium )
1193 - video_cards_lima? ( gallium )
1194 - video_cards_nouveau? ( || ( classic gallium ) )
1195 - video_cards_panfrost? ( gallium )
1196 - video_cards_radeon? ( || ( classic gallium )
1197 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
1198 - video_cards_r100? ( classic )
1199 - video_cards_r200? ( classic )
1200 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
1201 - video_cards_r600? ( gallium )
1202 - video_cards_radeonsi? ( gallium llvm )
1203 - video_cards_vc4? ( gallium )
1204 - video_cards_virgl? ( gallium )
1205 - video_cards_vivante? ( gallium gbm )
1206 - video_cards_vmware? ( gallium )
1207 - xa? ( X )
1208 - xvmc? ( X )
1209 -"
1210 -
1211 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.99"
1212 -RDEPEND="
1213 - !app-eselect/eselect-mesa
1214 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
1215 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
1216 - libglvnd? (
1217 - >=media-libs/libglvnd-1.2.0-r1[${MULTILIB_USEDEP}]
1218 - !app-eselect/eselect-opengl
1219 - )
1220 - !libglvnd? (
1221 - >=app-eselect/eselect-opengl-1.3.0
1222 - )
1223 - gallium? (
1224 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
1225 - llvm? (
1226 - video_cards_radeonsi? (
1227 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1228 - )
1229 - video_cards_r600? (
1230 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1231 - )
1232 - video_cards_radeon? (
1233 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1234 - )
1235 - )
1236 - lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
1237 - opencl? (
1238 - dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
1239 - dev-libs/libclc
1240 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1241 - )
1242 - vaapi? (
1243 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
1244 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
1245 - )
1246 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
1247 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
1248 - )
1249 - wayland? (
1250 - >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
1251 - >=dev-libs/wayland-protocols-1.8
1252 - )
1253 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
1254 -
1255 - video_cards_intel? (
1256 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
1257 - )
1258 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
1259 - vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] )
1260 - X? (
1261 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
1262 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
1263 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
1264 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
1265 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
1266 - >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
1267 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
1268 - )
1269 -"
1270 -for card in ${RADEON_CARDS}; do
1271 - RDEPEND="${RDEPEND}
1272 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
1273 - "
1274 -done
1275 -RDEPEND="${RDEPEND}
1276 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
1277 -"
1278 -
1279 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
1280 -# we need to *really* make sure we're not pulling one than more slot
1281 -# simultaneously.
1282 -#
1283 -# How to use it:
1284 -# 1. List all the working slots (with min versions) in ||, newest first.
1285 -# 2. Update the := to specify *max* version, e.g. < 10.
1286 -# 3. Specify LLVM_MAX_SLOT, e.g. 9.
1287 -LLVM_MAX_SLOT="10"
1288 -LLVM_DEPSTR="
1289 - || (
1290 - sys-devel/llvm:10[${MULTILIB_USEDEP}]
1291 - sys-devel/llvm:9[${MULTILIB_USEDEP}]
1292 - sys-devel/llvm:8[${MULTILIB_USEDEP}]
1293 - sys-devel/llvm:7[${MULTILIB_USEDEP}]
1294 - )
1295 - sys-devel/llvm:=[${MULTILIB_USEDEP}]
1296 -"
1297 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
1298 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
1299 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
1300 -RDEPEND="${RDEPEND}
1301 - llvm? (
1302 - opencl? (
1303 - video_cards_r600? (
1304 - ${CLANG_DEPSTR_AMDGPU}
1305 - )
1306 - !video_cards_r600? (
1307 - video_cards_radeonsi? (
1308 - ${CLANG_DEPSTR_AMDGPU}
1309 - )
1310 - )
1311 - !video_cards_r600? (
1312 - !video_cards_radeonsi? (
1313 - video_cards_radeon? (
1314 - ${CLANG_DEPSTR_AMDGPU}
1315 - )
1316 - )
1317 - )
1318 - !video_cards_r600? (
1319 - !video_cards_radeon? (
1320 - !video_cards_radeonsi? (
1321 - ${CLANG_DEPSTR}
1322 - )
1323 - )
1324 - )
1325 - )
1326 - !opencl? (
1327 - video_cards_r600? (
1328 - ${LLVM_DEPSTR_AMDGPU}
1329 - )
1330 - !video_cards_r600? (
1331 - video_cards_radeonsi? (
1332 - ${LLVM_DEPSTR_AMDGPU}
1333 - )
1334 - )
1335 - !video_cards_r600? (
1336 - !video_cards_radeonsi? (
1337 - video_cards_radeon? (
1338 - ${LLVM_DEPSTR_AMDGPU}
1339 - )
1340 - )
1341 - )
1342 - !video_cards_r600? (
1343 - !video_cards_radeon? (
1344 - !video_cards_radeonsi? (
1345 - ${LLVM_DEPSTR}
1346 - )
1347 - )
1348 - )
1349 - )
1350 - )
1351 -"
1352 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
1353 -
1354 -DEPEND="${RDEPEND}
1355 - valgrind? ( dev-util/valgrind )
1356 - X? (
1357 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
1358 - x11-base/xorg-proto
1359 - )
1360 -"
1361 -BDEPEND="
1362 - ${PYTHON_DEPS}
1363 - opencl? (
1364 - >=sys-devel/gcc-4.6
1365 - )
1366 - sys-devel/bison
1367 - sys-devel/flex
1368 - sys-devel/gettext
1369 - virtual/pkgconfig
1370 - $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
1371 -"
1372 -
1373 -S="${WORKDIR}/${MY_P}"
1374 -EGIT_CHECKOUT_DIR=${S}
1375 -
1376 -QA_WX_LOAD="
1377 -x86? (
1378 - usr/lib*/libglapi.so.0.0.0
1379 - usr/lib*/libGLESv1_CM.so.1.1.0
1380 - usr/lib*/libGLESv2.so.2.0.0
1381 - usr/lib*/libGL.so.1.2.0
1382 - usr/lib*/libOSMesa.so.8.0.0
1383 - libglvnd? ( usr/lib/libGLX_mesa.so.0.0.0 )
1384 -)"
1385 -
1386 -llvm_check_deps() {
1387 - local flags=${MULTILIB_USEDEP}
1388 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
1389 - then
1390 - flags+=",llvm_targets_AMDGPU(-)"
1391 - fi
1392 -
1393 - if use opencl; then
1394 - has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
1395 - fi
1396 - has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
1397 -}
1398 -
1399 -pkg_pretend() {
1400 - if use opencl; then
1401 - if ! use video_cards_r600 &&
1402 - ! use video_cards_radeonsi; then
1403 - ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
1404 - fi
1405 - fi
1406 -
1407 - if use vaapi; then
1408 - if ! use video_cards_r600 &&
1409 - ! use video_cards_radeonsi &&
1410 - ! use video_cards_nouveau; then
1411 - ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
1412 - fi
1413 - fi
1414 -
1415 - if use vdpau; then
1416 - if ! use video_cards_r300 &&
1417 - ! use video_cards_r600 &&
1418 - ! use video_cards_radeonsi &&
1419 - ! use video_cards_nouveau; then
1420 - ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
1421 - fi
1422 - fi
1423 -
1424 - if use xa; then
1425 - if ! use video_cards_freedreno &&
1426 - ! use video_cards_nouveau &&
1427 - ! use video_cards_vmware; then
1428 - ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
1429 - fi
1430 - fi
1431 -
1432 - if use xvmc; then
1433 - if ! use video_cards_r600 &&
1434 - ! use video_cards_nouveau; then
1435 - ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
1436 - fi
1437 - fi
1438 -
1439 - if ! use gallium; then
1440 - use lm-sensors && ewarn "Ignoring USE=lm-sensors since USE does not contain gallium"
1441 - use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
1442 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
1443 - use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
1444 - use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
1445 - use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
1446 - use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
1447 - use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
1448 - fi
1449 -
1450 - if ! use llvm; then
1451 - use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
1452 - fi
1453 -}
1454 -
1455 -python_check_deps() {
1456 - has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
1457 -}
1458 -
1459 -pkg_setup() {
1460 - # warning message for bug 459306
1461 - if use llvm && has_version sys-devel/llvm[!debug=]; then
1462 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
1463 - ewarn "detected! This can cause problems. For details, see bug 459306."
1464 - fi
1465 -
1466 - if use llvm; then
1467 - llvm_pkg_setup
1468 - fi
1469 - python-any-r1_pkg_setup
1470 -}
1471 -
1472 -multilib_src_configure() {
1473 - local emesonargs=()
1474 -
1475 - if use classic; then
1476 - # Intel code
1477 - dri_driver_enable video_cards_i915 i915
1478 - dri_driver_enable video_cards_i965 i965
1479 - if ! use video_cards_i915 && \
1480 - ! use video_cards_i965; then
1481 - dri_driver_enable video_cards_intel i915 i965
1482 - fi
1483 -
1484 - # Nouveau code
1485 - dri_driver_enable video_cards_nouveau nouveau
1486 -
1487 - # ATI code
1488 - dri_driver_enable video_cards_r100 r100
1489 - dri_driver_enable video_cards_r200 r200
1490 - if ! use video_cards_r100 && \
1491 - ! use video_cards_r200; then
1492 - dri_driver_enable video_cards_radeon r100 r200
1493 - fi
1494 - fi
1495 -
1496 - emesonargs+=( -Dplatforms=surfaceless$(use X && echo ",x11")$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
1497 -
1498 - if use gallium; then
1499 - emesonargs+=(
1500 - $(meson_use llvm)
1501 - $(meson_use lm-sensors lmsensors)
1502 - $(meson_use unwind libunwind)
1503 - )
1504 -
1505 - if use video_cards_iris ||
1506 - use video_cards_r300 ||
1507 - use video_cards_r600 ||
1508 - use video_cards_radeonsi ||
1509 - use video_cards_nouveau ||
1510 - use video_cards_vmware; then
1511 - emesonargs+=($(meson_use d3d9 gallium-nine))
1512 - else
1513 - emesonargs+=(-Dgallium-nine=false)
1514 - fi
1515 -
1516 - if use video_cards_r600 ||
1517 - use video_cards_radeonsi ||
1518 - use video_cards_nouveau; then
1519 - emesonargs+=($(meson_use vaapi gallium-va))
1520 - use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
1521 - else
1522 - emesonargs+=(-Dgallium-va=false)
1523 - fi
1524 -
1525 - if use video_cards_r300 ||
1526 - use video_cards_r600 ||
1527 - use video_cards_radeonsi ||
1528 - use video_cards_nouveau; then
1529 - emesonargs+=($(meson_use vdpau gallium-vdpau))
1530 - else
1531 - emesonargs+=(-Dgallium-vdpau=false)
1532 - fi
1533 -
1534 - if use video_cards_freedreno ||
1535 - use video_cards_nouveau ||
1536 - use video_cards_vmware; then
1537 - emesonargs+=($(meson_use xa gallium-xa))
1538 - else
1539 - emesonargs+=(-Dgallium-xa=false)
1540 - fi
1541 -
1542 - if use video_cards_r600 ||
1543 - use video_cards_nouveau; then
1544 - emesonargs+=($(meson_use xvmc gallium-xvmc))
1545 - else
1546 - emesonargs+=(-Dgallium-xvmc=false)
1547 - fi
1548 -
1549 - if use video_cards_freedreno ||
1550 - use video_cards_lima ||
1551 - use video_cards_panfrost ||
1552 - use video_cards_vc4 ||
1553 - use video_cards_vivante; then
1554 - gallium_enable -- kmsro
1555 - fi
1556 -
1557 - gallium_enable video_cards_lima lima
1558 - gallium_enable video_cards_panfrost panfrost
1559 - gallium_enable video_cards_vc4 vc4
1560 - gallium_enable video_cards_vivante etnaviv
1561 - gallium_enable video_cards_vmware svga
1562 - gallium_enable video_cards_nouveau nouveau
1563 -
1564 - # Only one i915 driver (classic vs gallium). Default to classic.
1565 - if ! use classic; then
1566 - gallium_enable video_cards_i915 i915
1567 - if ! use video_cards_i915 && \
1568 - ! use video_cards_i965; then
1569 - gallium_enable video_cards_intel i915
1570 - fi
1571 - fi
1572 -
1573 - gallium_enable video_cards_iris iris
1574 -
1575 - gallium_enable video_cards_r300 r300
1576 - gallium_enable video_cards_r600 r600
1577 - gallium_enable video_cards_radeonsi radeonsi
1578 - if ! use video_cards_r300 && \
1579 - ! use video_cards_r600; then
1580 - gallium_enable video_cards_radeon r300 r600
1581 - fi
1582 -
1583 - gallium_enable video_cards_freedreno freedreno
1584 - gallium_enable video_cards_virgl virgl
1585 -
1586 - # opencl stuff
1587 - emesonargs+=(
1588 - -Dgallium-opencl="$(usex opencl icd disabled)"
1589 - )
1590 - fi
1591 -
1592 - if use vulkan; then
1593 - vulkan_enable video_cards_i965 intel
1594 - vulkan_enable video_cards_iris intel
1595 - vulkan_enable video_cards_radeonsi amd
1596 - fi
1597 -
1598 - # x86 hardened pax_kernel needs glx-rts, bug 240956
1599 - if [[ ${ABI} == x86 ]]; then
1600 - emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
1601 - fi
1602 -
1603 - if use gallium; then
1604 - gallium_enable -- swrast
1605 - emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
1606 - else
1607 - dri_driver_enable -- swrast
1608 - emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
1609 - fi
1610 -
1611 - driver_list() {
1612 - local drivers="$(sort -u <<< "${1// /$'\n'}")"
1613 - echo "${drivers//$'\n'/,}"
1614 - }
1615 -
1616 - emesonargs+=(
1617 - $(meson_use test build-tests)
1618 - -Dglx=$(usex X dri disabled)
1619 - -Dshared-glapi=true
1620 - $(meson_use dri3)
1621 - $(meson_use egl)
1622 - $(meson_use gbm)
1623 - $(meson_use gles1)
1624 - $(meson_use gles2)
1625 - $(meson_use libglvnd glvnd)
1626 - $(meson_use selinux)
1627 - -Dvalgrind=$(usex valgrind auto false)
1628 - -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
1629 - -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
1630 - -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
1631 - $(meson_use vulkan-overlay vulkan-overlay-layer)
1632 - --buildtype $(usex debug debug plain)
1633 - -Db_ndebug=$(usex debug false true)
1634 - )
1635 - meson_src_configure
1636 -}
1637 -
1638 -multilib_src_compile() {
1639 - meson_src_compile
1640 -}
1641 -
1642 -multilib_src_install() {
1643 - meson_src_install
1644 -
1645 - use libglvnd && rm -f "${D}"/usr/$(get_libdir)/pkgconfig/{egl,gl}.pc
1646 -}
1647 -
1648 -multilib_src_install_all() {
1649 - einstalldocs
1650 -}
1651 -
1652 -multilib_src_test() {
1653 - meson test -v -C "${BUILD_DIR}" -t 100
1654 -}
1655 -
1656 -pkg_postinst() {
1657 - if ! use libglvnd; then
1658 - # Switch to the xorg implementation.
1659 - echo
1660 - eselect opengl set --use-old ${OPENGL_DIR}
1661 - fi
1662 -}
1663 -
1664 -# $1 - VIDEO_CARDS flag (check skipped for "--")
1665 -# other args - names of DRI drivers to enable
1666 -dri_driver_enable() {
1667 - if [[ $1 == -- ]] || use $1; then
1668 - shift
1669 - DRI_DRIVERS+=("$@")
1670 - fi
1671 -}
1672 -
1673 -gallium_enable() {
1674 - if [[ $1 == -- ]] || use $1; then
1675 - shift
1676 - GALLIUM_DRIVERS+=("$@")
1677 - fi
1678 -}
1679 -
1680 -vulkan_enable() {
1681 - if [[ $1 == -- ]] || use $1; then
1682 - shift
1683 - VULKAN_DRIVERS+=("$@")
1684 - fi
1685 -}