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