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