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