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