1 |
commit: 137a54a981776c24e899e59477321317363d7422 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 11 22:47:49 2015 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 11 22:48:52 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137a54a9 |
7 |
|
8 |
media-libs/mesa: Remove old |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
media-libs/mesa/Manifest | 2 - |
13 |
media-libs/mesa/mesa-11.0.4.ebuild | 462 ------------------------------------- |
14 |
media-libs/mesa/mesa-11.0.5.ebuild | 462 ------------------------------------- |
15 |
3 files changed, 926 deletions(-) |
16 |
|
17 |
diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest |
18 |
index 70fd2f0..b7dce63 100644 |
19 |
--- a/media-libs/mesa/Manifest |
20 |
+++ b/media-libs/mesa/Manifest |
21 |
@@ -2,8 +2,6 @@ DIST MesaLib-10.2.8.tar.bz2 7113716 SHA256 1ef9ad3f241788d454f2ff8c9d65b6849dfc3 |
22 |
DIST MesaLib-10.3.7.tar.bz2 7287153 SHA256 43c6ced15e237cbb21b3082d7c0b42777c50c1f731d0d4b5efb5231063fb6a5b SHA512 bbc027c4146c42aaa160990f5281c71a342d32c10ba56f91da1a60dd4cb7d620ff49b72553d24bc1d87470e2baf9be81b5bdee9abe49d6acc57902fccb9e2e5f WHIRLPOOL 7fa32e70c6aabb84a06f2f852f77eac839aea08726c442742b3d3abdb94a0fd9f033439ab0cb16865f4ee14e1538cb86937856bbdfd1f9090e8e7c43eac52e03 |
23 |
DIST MesaLib-7.10.3.tar.bz2 6056837 SHA256 1e701fc839b872677ddca9ed8784d754c9da1fbeda98173980e06aa7df0e85c0 SHA512 aa1f5f068b305fae5519e11cad2db9c6dc647d3122252bbcb210f13ac6ef1b667ae750344898bca7c5bfae94934db05eff915cb7417a59590e6d3ba230817aa8 WHIRLPOOL 5c2adda647936ed4163a4e4d5afad8344eb576712f9432f697aa0fc22ca17d7aaf0aeb6ad2d4e7e0825dc27cae570660332450778f8091e9b27aad2865c9b5fc |
24 |
DIST mesa-10.6.9.tar.xz 7041588 SHA256 b04c4de6280b863babc2929573da17218d92e9e4ba6272d548d135415723e8c3 SHA512 32abcf167312dea06482e46da6f15b1c6902696a7dff759561f099eb12a6748673a5d6bb084c12ef57e6f13d3ec1b456541611a710519da87b11fd622f453344 WHIRLPOOL d3bf4627bdf7a576343bd2701948d5872e5d05a43b2980ce4e4915e8d95bd85eadb563cb3588918c55307769132a0cc8592361b4c9fbdf4831c181604d79028b |
25 |
-DIST mesa-11.0.4.tar.xz 7267588 SHA256 40201bf7fc6fa12a6d9edfe870b41eb4dd6669154e3c42c48a96f70805f5483d SHA512 1647ba750b6d8860d8a87aee5444c3aa4d7c916e38a699056d0b4e453651378728a875d6781598dbba7efa96f9c14f1fe6ef615aaa0ce80d02d86116d7331f14 WHIRLPOOL f2a0b877375439f65d888df3a107bf7a95bd6e606ed1337481d70c2c2b7eea0ded936ce06c7fd0cc2f4aaa68d4d7d779776ed9f9b0868b1e6e981ac609cba4ff |
26 |
-DIST mesa-11.0.5.tar.xz 7271684 SHA256 9c255a2a6695fcc6ef4a279e1df0aeaf417dc142f39ee59dfb533d80494bb67a SHA512 87b36b48d6a9d6abd47fb127c2bb2048aa1099f56ec2c9c4bcf6edd7c0d055abfffb4f63462a81b8852f79a8d8f173e7de5ac0dd8759b1645ea601c19fe26ee3 WHIRLPOOL cefd57b0bc934bb018ecd81485027c081c374cc862d2049361ebfce58417d40261b9d2694a0c3ded80205827e4b767e94230946ce784d6b98ac1d69c4c7fbb18 |
27 |
DIST mesa-11.0.6.tar.xz 7272972 SHA256 8340e64cdc91999840404c211496f3de38e7b4cb38db34e2f72f1642c5134760 SHA512 946a66803395ef0f4d3b328e981e03a87bb5173a523be5da1dd3363002fceacd8dcbfdbf9716e31bb4247b23cc5ef112b24bb4ef0709b514bc8160c6cbf1dbf3 WHIRLPOOL 19729acb5fbbcff3a99b4d7644750dff4a7a2d41c3f25f2e004938faf0c72abd33e97f5d23d2804f84b957824757b5f64f3a7f54a2dd8999b2a71eb9b1976e0b |
28 |
DIST mesa-11.0.7.tar.xz 7279276 SHA256 e7e90a332ede6c8fd08eff90786a3fd1605a4e62ebf3a9b514047838194538cb SHA512 cf3bae4db0a3af41d075498ad44f1bff994c30e97d58f9f4bdb52d1c6e1244365d68edfa55bf9076f1b4e9f8f4f3de9661f210291a5d8683e280327e1480c7cf WHIRLPOOL b599f605c1022f06953f11462c46525f2906106707e6e9e0e03c166ee6076eacc7ded68f4367f715556275053473532311aa61b11f99d6d81c647f23ffadd554 |
29 |
DIST mesa-7.10.1-gentoo-patches-01.tar.bz2 5488 SHA256 31cd4f6d1a0a70249c40452919074856d120cd473a01a8457e3dc147a1b622d8 SHA512 c62b45b32e396e67f629003fc5242b7b4df054b8e20b5237489212bc4f0171534915a02fc9efa68965068121d10660b5cd92a419efabe33fd4596a97a39249c2 WHIRLPOOL 5f171959e3a31f5c38438b4806ce371bb8fdf1c7a87501865e4ed5d5ab284cda9568b7773005997d7a1cff151f95e64c027b36c0be48a4dd288a7ab8b5f69b97 |
30 |
|
31 |
diff --git a/media-libs/mesa/mesa-11.0.4.ebuild b/media-libs/mesa/mesa-11.0.4.ebuild |
32 |
deleted file mode 100644 |
33 |
index 38d52d0..0000000 |
34 |
--- a/media-libs/mesa/mesa-11.0.4.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,462 +0,0 @@ |
37 |
-# Copyright 1999-2015 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
-# $Id$ |
40 |
- |
41 |
-EAPI=5 |
42 |
- |
43 |
-EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa" |
44 |
- |
45 |
-if [[ ${PV} = 9999 ]]; then |
46 |
- GIT_ECLASS="git-r3" |
47 |
- EXPERIMENTAL="true" |
48 |
-fi |
49 |
- |
50 |
-PYTHON_COMPAT=( python2_7 ) |
51 |
- |
52 |
-inherit autotools multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS} |
53 |
- |
54 |
-OPENGL_DIR="xorg-x11" |
55 |
- |
56 |
-MY_P="${P/_/-}" |
57 |
-FOLDER="${PV/_rc*/}" |
58 |
- |
59 |
-DESCRIPTION="OpenGL-like graphic library for Linux" |
60 |
-HOMEPAGE="http://mesa3d.sourceforge.net/" |
61 |
- |
62 |
-if [[ $PV == 9999 ]]; then |
63 |
- SRC_URI="" |
64 |
- KEYWORDS="" |
65 |
-else |
66 |
- SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_P}.tar.xz" |
67 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
68 |
-fi |
69 |
- |
70 |
-LICENSE="MIT" |
71 |
-SLOT="0" |
72 |
-RESTRICT="!bindist? ( bindist )" |
73 |
- |
74 |
-INTEL_CARDS="i915 i965 ilo intel" |
75 |
-RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi" |
76 |
-VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno nouveau vmware" |
77 |
-for card in ${VIDEO_CARDS}; do |
78 |
- IUSE_VIDEO_CARDS+=" video_cards_${card}" |
79 |
-done |
80 |
- |
81 |
-IUSE="${IUSE_VIDEO_CARDS} |
82 |
- bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm |
83 |
- +nptl opencl osmesa pax_kernel openmax pic selinux +udev vaapi vdpau |
84 |
- wayland xvmc xa kernel_FreeBSD" |
85 |
- |
86 |
-REQUIRED_USE=" |
87 |
- d3d9? ( dri3 gallium ) |
88 |
- llvm? ( gallium ) |
89 |
- opencl? ( gallium llvm ) |
90 |
- openmax? ( gallium ) |
91 |
- gles1? ( egl ) |
92 |
- gles2? ( egl ) |
93 |
- vaapi? ( gallium ) |
94 |
- vdpau? ( gallium ) |
95 |
- wayland? ( egl gbm ) |
96 |
- xa? ( gallium ) |
97 |
- video_cards_freedreno? ( gallium ) |
98 |
- video_cards_intel? ( classic ) |
99 |
- video_cards_i915? ( || ( classic gallium ) ) |
100 |
- video_cards_i965? ( classic ) |
101 |
- video_cards_ilo? ( gallium ) |
102 |
- video_cards_nouveau? ( || ( classic gallium ) ) |
103 |
- video_cards_radeon? ( || ( classic gallium ) ) |
104 |
- video_cards_r100? ( classic ) |
105 |
- video_cards_r200? ( classic ) |
106 |
- video_cards_r300? ( gallium llvm ) |
107 |
- video_cards_r600? ( gallium ) |
108 |
- video_cards_radeonsi? ( gallium llvm ) |
109 |
- video_cards_vmware? ( gallium ) |
110 |
- ${PYTHON_REQUIRED_USE} |
111 |
-" |
112 |
- |
113 |
-LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.64" |
114 |
-# keep correct libdrm and dri2proto dep |
115 |
-# keep blocks in rdepend for binpkg |
116 |
-RDEPEND=" |
117 |
- !<x11-base/xorg-server-1.7 |
118 |
- !<=x11-proto/xf86driproto-2.0.3 |
119 |
- abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] ) |
120 |
- classic? ( app-eselect/eselect-mesa ) |
121 |
- gallium? ( app-eselect/eselect-mesa ) |
122 |
- >=app-eselect/eselect-opengl-1.3.0 |
123 |
- udev? ( kernel_linux? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) ) |
124 |
- >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] |
125 |
- gbm? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) |
126 |
- dri3? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) |
127 |
- >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] |
128 |
- >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] |
129 |
- >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}] |
130 |
- >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] |
131 |
- >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] |
132 |
- >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}] |
133 |
- x11-libs/libXfixes:=[${MULTILIB_USEDEP}] |
134 |
- llvm? ( !kernel_FreeBSD? ( |
135 |
- video_cards_radeonsi? ( || ( |
136 |
- >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] |
137 |
- >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] |
138 |
- ) ) |
139 |
- !video_cards_r600? ( |
140 |
- video_cards_radeon? ( || ( |
141 |
- >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] |
142 |
- >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] |
143 |
- ) ) |
144 |
- ) ) |
145 |
- >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}] |
146 |
- ) |
147 |
- opencl? ( |
148 |
- app-eselect/eselect-opencl |
149 |
- dev-libs/libclc |
150 |
- !kernel_FreeBSD? ( || ( |
151 |
- >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] |
152 |
- >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] |
153 |
- ) ) |
154 |
- ) |
155 |
- openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] ) |
156 |
- vaapi? ( >=x11-libs/libva-0.35.0:=[${MULTILIB_USEDEP}] ) |
157 |
- vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] ) |
158 |
- wayland? ( >=dev-libs/wayland-1.2.0:=[${MULTILIB_USEDEP}] ) |
159 |
- xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] ) |
160 |
- ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?,${MULTILIB_USEDEP}] |
161 |
-" |
162 |
-for card in ${INTEL_CARDS}; do |
163 |
- RDEPEND="${RDEPEND} |
164 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
165 |
- " |
166 |
-done |
167 |
- |
168 |
-for card in ${RADEON_CARDS}; do |
169 |
- RDEPEND="${RDEPEND} |
170 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) |
171 |
- " |
172 |
-done |
173 |
-RDEPEND="${RDEPEND} |
174 |
- video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] ) |
175 |
-" |
176 |
- |
177 |
-DEPEND="${RDEPEND} |
178 |
- llvm? ( |
179 |
- video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) |
180 |
- ) |
181 |
- opencl? ( |
182 |
- >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}] |
183 |
- >=sys-devel/clang-3.4.2:=[${MULTILIB_USEDEP}] |
184 |
- >=sys-devel/gcc-4.6 |
185 |
- ) |
186 |
- sys-devel/gettext |
187 |
- virtual/pkgconfig |
188 |
- >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}] |
189 |
- dri3? ( |
190 |
- >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}] |
191 |
- >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}] |
192 |
- ) |
193 |
- >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}] |
194 |
- >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}] |
195 |
- >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}] |
196 |
- >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}] |
197 |
-" |
198 |
-[[ ${PV} == 9999 ]] && DEPEND+=" |
199 |
- sys-devel/bison |
200 |
- sys-devel/flex |
201 |
- ${PYTHON_DEPS} |
202 |
- $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]") |
203 |
-" |
204 |
- |
205 |
-S="${WORKDIR}/${MY_P}" |
206 |
-EGIT_CHECKOUT_DIR=${S} |
207 |
- |
208 |
-QA_WX_LOAD=" |
209 |
-x86? ( |
210 |
- !pic? ( |
211 |
- usr/lib*/libglapi.so.0.0.0 |
212 |
- usr/lib*/libGLESv1_CM.so.1.1.0 |
213 |
- usr/lib*/libGLESv2.so.2.0.0 |
214 |
- usr/lib*/libGL.so.1.2.0 |
215 |
- usr/lib*/libOSMesa.so.8.0.0 |
216 |
- ) |
217 |
-)" |
218 |
- |
219 |
-pkg_setup() { |
220 |
- # warning message for bug 459306 |
221 |
- if use llvm && has_version sys-devel/llvm[!debug=]; then |
222 |
- ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm" |
223 |
- ewarn "detected! This can cause problems. For details, see bug 459306." |
224 |
- fi |
225 |
- |
226 |
- python-any-r1_pkg_setup |
227 |
-} |
228 |
- |
229 |
-src_prepare() { |
230 |
- [[ ${PV} == 9999 ]] && eautoreconf |
231 |
-} |
232 |
- |
233 |
-multilib_src_configure() { |
234 |
- local myconf |
235 |
- |
236 |
- if use classic; then |
237 |
- # Configurable DRI drivers |
238 |
- driver_enable swrast |
239 |
- |
240 |
- # Intel code |
241 |
- driver_enable video_cards_i915 i915 |
242 |
- driver_enable video_cards_i965 i965 |
243 |
- if ! use video_cards_i915 && \ |
244 |
- ! use video_cards_i965; then |
245 |
- driver_enable video_cards_intel i915 i965 |
246 |
- fi |
247 |
- |
248 |
- # Nouveau code |
249 |
- driver_enable video_cards_nouveau nouveau |
250 |
- |
251 |
- # ATI code |
252 |
- driver_enable video_cards_r100 radeon |
253 |
- driver_enable video_cards_r200 r200 |
254 |
- if ! use video_cards_r100 && \ |
255 |
- ! use video_cards_r200; then |
256 |
- driver_enable video_cards_radeon radeon r200 |
257 |
- fi |
258 |
- fi |
259 |
- |
260 |
- if use egl; then |
261 |
- myconf+="--with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm") " |
262 |
- fi |
263 |
- |
264 |
- if use gallium; then |
265 |
- myconf+=" |
266 |
- $(use_enable d3d9 nine) |
267 |
- $(use_enable llvm gallium-llvm) |
268 |
- $(use_enable openmax omx) |
269 |
- $(use_enable vaapi va) |
270 |
- $(use_enable vdpau) |
271 |
- $(use_enable xa) |
272 |
- $(use_enable xvmc) |
273 |
- " |
274 |
- use vaapi && myconf+="--with-va-libdir=/usr/$(get_libdir)/va/drivers" |
275 |
- |
276 |
- gallium_enable swrast |
277 |
- gallium_enable video_cards_vmware svga |
278 |
- gallium_enable video_cards_nouveau nouveau |
279 |
- gallium_enable video_cards_i915 i915 |
280 |
- gallium_enable video_cards_ilo ilo |
281 |
- if ! use video_cards_i915 && \ |
282 |
- ! use video_cards_i965; then |
283 |
- gallium_enable video_cards_intel i915 |
284 |
- fi |
285 |
- |
286 |
- gallium_enable video_cards_r300 r300 |
287 |
- gallium_enable video_cards_r600 r600 |
288 |
- gallium_enable video_cards_radeonsi radeonsi |
289 |
- if ! use video_cards_r300 && \ |
290 |
- ! use video_cards_r600; then |
291 |
- gallium_enable video_cards_radeon r300 r600 |
292 |
- fi |
293 |
- |
294 |
- gallium_enable video_cards_freedreno freedreno |
295 |
- # opencl stuff |
296 |
- if use opencl; then |
297 |
- myconf+=" |
298 |
- $(use_enable opencl) |
299 |
- --with-clang-libdir="${EPREFIX}/usr/lib" |
300 |
- " |
301 |
- fi |
302 |
- fi |
303 |
- |
304 |
- # x86 hardened pax_kernel needs glx-read-only-text, bug 240956 |
305 |
- if [[ ${ABI} == x86 ]]; then |
306 |
- myconf+="$(use_enable pax_kernel glx-read-only-text)" |
307 |
- fi |
308 |
- |
309 |
- # on abi_x86_32 hardened we need to have asm disable |
310 |
- if [[ ${ABI} == x86* ]] && use pic; then |
311 |
- myconf+=" --disable-asm" |
312 |
- fi |
313 |
- |
314 |
- # build fails with BSD indent, bug #428112 |
315 |
- use userland_GNU || export INDENT=cat |
316 |
- |
317 |
- ECONF_SOURCE="${S}" \ |
318 |
- econf \ |
319 |
- --enable-dri \ |
320 |
- --enable-glx \ |
321 |
- --enable-shared-glapi \ |
322 |
- $(use_enable !bindist texture-float) \ |
323 |
- $(use_enable d3d9 nine) \ |
324 |
- $(use_enable debug) \ |
325 |
- $(use_enable dri3) \ |
326 |
- $(use_enable egl) \ |
327 |
- $(use_enable gbm) \ |
328 |
- $(use_enable gles1) \ |
329 |
- $(use_enable gles2) \ |
330 |
- $(use_enable nptl glx-tls) \ |
331 |
- $(use_enable osmesa) \ |
332 |
- $(use_enable !udev sysfs) \ |
333 |
- --enable-llvm-shared-libs \ |
334 |
- --with-dri-drivers=${DRI_DRIVERS} \ |
335 |
- --with-gallium-drivers=${GALLIUM_DRIVERS} \ |
336 |
- PYTHON2="${PYTHON}" \ |
337 |
- ${myconf} |
338 |
-} |
339 |
- |
340 |
-multilib_src_install() { |
341 |
- emake install DESTDIR="${D}" |
342 |
- |
343 |
- if use classic || use gallium; then |
344 |
- ebegin "Moving DRI/Gallium drivers for dynamic switching" |
345 |
- local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so ) |
346 |
- keepdir /usr/$(get_libdir)/dri |
347 |
- dodir /usr/$(get_libdir)/mesa |
348 |
- for x in ${gallium_drivers[@]}; do |
349 |
- if [ -f "$(get_libdir)/gallium/${x}" ]; then |
350 |
- mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \ |
351 |
- || die "Failed to move ${x}" |
352 |
- fi |
353 |
- done |
354 |
- if use classic; then |
355 |
- emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install |
356 |
- fi |
357 |
- for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do |
358 |
- if [ -f ${x} -o -L ${x} ]; then |
359 |
- mv -f "${x}" "${x/dri/mesa}" \ |
360 |
- || die "Failed to move ${x}" |
361 |
- fi |
362 |
- done |
363 |
- pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed" |
364 |
- ln -s ../mesa/*.so . || die "Creating symlink failed" |
365 |
- # remove symlinks to drivers known to eselect |
366 |
- for x in ${gallium_drivers[@]}; do |
367 |
- if [ -f ${x} -o -L ${x} ]; then |
368 |
- rm "${x}" || die "Failed to remove ${x}" |
369 |
- fi |
370 |
- done |
371 |
- popd |
372 |
- eend $? |
373 |
- fi |
374 |
- if use opencl; then |
375 |
- ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching" |
376 |
- local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa" |
377 |
- dodir ${cl_dir}/{lib,include} |
378 |
- if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then |
379 |
- mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \ |
380 |
- "${ED}"${cl_dir} |
381 |
- fi |
382 |
- if [ -f "${ED}/usr/include/CL/opencl.h" ]; then |
383 |
- mv -f "${ED}"/usr/include/CL \ |
384 |
- "${ED}"${cl_dir}/include |
385 |
- fi |
386 |
- eend $? |
387 |
- fi |
388 |
- |
389 |
- if use openmax; then |
390 |
- echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx" |
391 |
- doenvd "${T}"/99mesaxdgomx |
392 |
- keepdir /usr/share/mesa/xdg |
393 |
- fi |
394 |
-} |
395 |
- |
396 |
-multilib_src_install_all() { |
397 |
- prune_libtool_files --all |
398 |
- einstalldocs |
399 |
- |
400 |
- if use !bindist; then |
401 |
- dodoc docs/patents.txt |
402 |
- fi |
403 |
- |
404 |
- # Install config file for eselect mesa |
405 |
- insinto /usr/share/mesa |
406 |
- newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf |
407 |
-} |
408 |
- |
409 |
-multilib_src_test() { |
410 |
- if use llvm; then |
411 |
- 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' |
412 |
- pushd src/gallium/drivers/llvmpipe >/dev/null || die |
413 |
- emake ${llvm_tests} |
414 |
- pax-mark m ${llvm_tests} |
415 |
- popd >/dev/null || die |
416 |
- fi |
417 |
- emake check |
418 |
-} |
419 |
- |
420 |
-pkg_postinst() { |
421 |
- # Switch to the xorg implementation. |
422 |
- echo |
423 |
- eselect opengl set --use-old ${OPENGL_DIR} |
424 |
- |
425 |
- # Select classic/gallium drivers |
426 |
- if use classic || use gallium; then |
427 |
- eselect mesa set --auto |
428 |
- fi |
429 |
- |
430 |
- # Switch to mesa opencl |
431 |
- if use opencl; then |
432 |
- eselect opencl set --use-old ${PN} |
433 |
- fi |
434 |
- |
435 |
- # run omxregister-bellagio to make the OpenMAX drivers known system-wide |
436 |
- if use openmax; then |
437 |
- ebegin "Registering OpenMAX drivers" |
438 |
- BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \ |
439 |
- OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \ |
440 |
- omxregister-bellagio |
441 |
- eend $? |
442 |
- fi |
443 |
- |
444 |
- # warn about patent encumbered texture-float |
445 |
- if use !bindist; then |
446 |
- elog "USE=\"bindist\" was not set. Potentially patent encumbered code was" |
447 |
- elog "enabled. Please see patents.txt for an explanation." |
448 |
- fi |
449 |
- |
450 |
- if ! has_version media-libs/libtxc_dxtn; then |
451 |
- elog "Note that in order to have full S3TC support, it is necessary to install" |
452 |
- elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice" |
453 |
- elog "textures in some apps, and some others even require this to run." |
454 |
- fi |
455 |
-} |
456 |
- |
457 |
-pkg_prerm() { |
458 |
- if use openmax; then |
459 |
- rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister |
460 |
- fi |
461 |
-} |
462 |
- |
463 |
-# $1 - VIDEO_CARDS flag |
464 |
-# other args - names of DRI drivers to enable |
465 |
-# TODO: avoid code duplication for a more elegant implementation |
466 |
-driver_enable() { |
467 |
- case $# in |
468 |
- # for enabling unconditionally |
469 |
- 1) |
470 |
- DRI_DRIVERS+=",$1" |
471 |
- ;; |
472 |
- *) |
473 |
- if use $1; then |
474 |
- shift |
475 |
- for i in $@; do |
476 |
- DRI_DRIVERS+=",${i}" |
477 |
- done |
478 |
- fi |
479 |
- ;; |
480 |
- esac |
481 |
-} |
482 |
- |
483 |
-gallium_enable() { |
484 |
- case $# in |
485 |
- # for enabling unconditionally |
486 |
- 1) |
487 |
- GALLIUM_DRIVERS+=",$1" |
488 |
- ;; |
489 |
- *) |
490 |
- if use $1; then |
491 |
- shift |
492 |
- for i in $@; do |
493 |
- GALLIUM_DRIVERS+=",${i}" |
494 |
- done |
495 |
- fi |
496 |
- ;; |
497 |
- esac |
498 |
-} |
499 |
|
500 |
diff --git a/media-libs/mesa/mesa-11.0.5.ebuild b/media-libs/mesa/mesa-11.0.5.ebuild |
501 |
deleted file mode 100644 |
502 |
index 38d52d0..0000000 |
503 |
--- a/media-libs/mesa/mesa-11.0.5.ebuild |
504 |
+++ /dev/null |
505 |
@@ -1,462 +0,0 @@ |
506 |
-# Copyright 1999-2015 Gentoo Foundation |
507 |
-# Distributed under the terms of the GNU General Public License v2 |
508 |
-# $Id$ |
509 |
- |
510 |
-EAPI=5 |
511 |
- |
512 |
-EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa" |
513 |
- |
514 |
-if [[ ${PV} = 9999 ]]; then |
515 |
- GIT_ECLASS="git-r3" |
516 |
- EXPERIMENTAL="true" |
517 |
-fi |
518 |
- |
519 |
-PYTHON_COMPAT=( python2_7 ) |
520 |
- |
521 |
-inherit autotools multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS} |
522 |
- |
523 |
-OPENGL_DIR="xorg-x11" |
524 |
- |
525 |
-MY_P="${P/_/-}" |
526 |
-FOLDER="${PV/_rc*/}" |
527 |
- |
528 |
-DESCRIPTION="OpenGL-like graphic library for Linux" |
529 |
-HOMEPAGE="http://mesa3d.sourceforge.net/" |
530 |
- |
531 |
-if [[ $PV == 9999 ]]; then |
532 |
- SRC_URI="" |
533 |
- KEYWORDS="" |
534 |
-else |
535 |
- SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_P}.tar.xz" |
536 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
537 |
-fi |
538 |
- |
539 |
-LICENSE="MIT" |
540 |
-SLOT="0" |
541 |
-RESTRICT="!bindist? ( bindist )" |
542 |
- |
543 |
-INTEL_CARDS="i915 i965 ilo intel" |
544 |
-RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi" |
545 |
-VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno nouveau vmware" |
546 |
-for card in ${VIDEO_CARDS}; do |
547 |
- IUSE_VIDEO_CARDS+=" video_cards_${card}" |
548 |
-done |
549 |
- |
550 |
-IUSE="${IUSE_VIDEO_CARDS} |
551 |
- bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm |
552 |
- +nptl opencl osmesa pax_kernel openmax pic selinux +udev vaapi vdpau |
553 |
- wayland xvmc xa kernel_FreeBSD" |
554 |
- |
555 |
-REQUIRED_USE=" |
556 |
- d3d9? ( dri3 gallium ) |
557 |
- llvm? ( gallium ) |
558 |
- opencl? ( gallium llvm ) |
559 |
- openmax? ( gallium ) |
560 |
- gles1? ( egl ) |
561 |
- gles2? ( egl ) |
562 |
- vaapi? ( gallium ) |
563 |
- vdpau? ( gallium ) |
564 |
- wayland? ( egl gbm ) |
565 |
- xa? ( gallium ) |
566 |
- video_cards_freedreno? ( gallium ) |
567 |
- video_cards_intel? ( classic ) |
568 |
- video_cards_i915? ( || ( classic gallium ) ) |
569 |
- video_cards_i965? ( classic ) |
570 |
- video_cards_ilo? ( gallium ) |
571 |
- video_cards_nouveau? ( || ( classic gallium ) ) |
572 |
- video_cards_radeon? ( || ( classic gallium ) ) |
573 |
- video_cards_r100? ( classic ) |
574 |
- video_cards_r200? ( classic ) |
575 |
- video_cards_r300? ( gallium llvm ) |
576 |
- video_cards_r600? ( gallium ) |
577 |
- video_cards_radeonsi? ( gallium llvm ) |
578 |
- video_cards_vmware? ( gallium ) |
579 |
- ${PYTHON_REQUIRED_USE} |
580 |
-" |
581 |
- |
582 |
-LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.64" |
583 |
-# keep correct libdrm and dri2proto dep |
584 |
-# keep blocks in rdepend for binpkg |
585 |
-RDEPEND=" |
586 |
- !<x11-base/xorg-server-1.7 |
587 |
- !<=x11-proto/xf86driproto-2.0.3 |
588 |
- abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] ) |
589 |
- classic? ( app-eselect/eselect-mesa ) |
590 |
- gallium? ( app-eselect/eselect-mesa ) |
591 |
- >=app-eselect/eselect-opengl-1.3.0 |
592 |
- udev? ( kernel_linux? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) ) |
593 |
- >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] |
594 |
- gbm? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) |
595 |
- dri3? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) |
596 |
- >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] |
597 |
- >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] |
598 |
- >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}] |
599 |
- >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] |
600 |
- >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] |
601 |
- >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}] |
602 |
- x11-libs/libXfixes:=[${MULTILIB_USEDEP}] |
603 |
- llvm? ( !kernel_FreeBSD? ( |
604 |
- video_cards_radeonsi? ( || ( |
605 |
- >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] |
606 |
- >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] |
607 |
- ) ) |
608 |
- !video_cards_r600? ( |
609 |
- video_cards_radeon? ( || ( |
610 |
- >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] |
611 |
- >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] |
612 |
- ) ) |
613 |
- ) ) |
614 |
- >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}] |
615 |
- ) |
616 |
- opencl? ( |
617 |
- app-eselect/eselect-opencl |
618 |
- dev-libs/libclc |
619 |
- !kernel_FreeBSD? ( || ( |
620 |
- >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}] |
621 |
- >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}] |
622 |
- ) ) |
623 |
- ) |
624 |
- openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] ) |
625 |
- vaapi? ( >=x11-libs/libva-0.35.0:=[${MULTILIB_USEDEP}] ) |
626 |
- vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] ) |
627 |
- wayland? ( >=dev-libs/wayland-1.2.0:=[${MULTILIB_USEDEP}] ) |
628 |
- xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] ) |
629 |
- ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?,${MULTILIB_USEDEP}] |
630 |
-" |
631 |
-for card in ${INTEL_CARDS}; do |
632 |
- RDEPEND="${RDEPEND} |
633 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
634 |
- " |
635 |
-done |
636 |
- |
637 |
-for card in ${RADEON_CARDS}; do |
638 |
- RDEPEND="${RDEPEND} |
639 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) |
640 |
- " |
641 |
-done |
642 |
-RDEPEND="${RDEPEND} |
643 |
- video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] ) |
644 |
-" |
645 |
- |
646 |
-DEPEND="${RDEPEND} |
647 |
- llvm? ( |
648 |
- video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) |
649 |
- ) |
650 |
- opencl? ( |
651 |
- >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}] |
652 |
- >=sys-devel/clang-3.4.2:=[${MULTILIB_USEDEP}] |
653 |
- >=sys-devel/gcc-4.6 |
654 |
- ) |
655 |
- sys-devel/gettext |
656 |
- virtual/pkgconfig |
657 |
- >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}] |
658 |
- dri3? ( |
659 |
- >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}] |
660 |
- >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}] |
661 |
- ) |
662 |
- >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}] |
663 |
- >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}] |
664 |
- >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}] |
665 |
- >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}] |
666 |
-" |
667 |
-[[ ${PV} == 9999 ]] && DEPEND+=" |
668 |
- sys-devel/bison |
669 |
- sys-devel/flex |
670 |
- ${PYTHON_DEPS} |
671 |
- $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]") |
672 |
-" |
673 |
- |
674 |
-S="${WORKDIR}/${MY_P}" |
675 |
-EGIT_CHECKOUT_DIR=${S} |
676 |
- |
677 |
-QA_WX_LOAD=" |
678 |
-x86? ( |
679 |
- !pic? ( |
680 |
- usr/lib*/libglapi.so.0.0.0 |
681 |
- usr/lib*/libGLESv1_CM.so.1.1.0 |
682 |
- usr/lib*/libGLESv2.so.2.0.0 |
683 |
- usr/lib*/libGL.so.1.2.0 |
684 |
- usr/lib*/libOSMesa.so.8.0.0 |
685 |
- ) |
686 |
-)" |
687 |
- |
688 |
-pkg_setup() { |
689 |
- # warning message for bug 459306 |
690 |
- if use llvm && has_version sys-devel/llvm[!debug=]; then |
691 |
- ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm" |
692 |
- ewarn "detected! This can cause problems. For details, see bug 459306." |
693 |
- fi |
694 |
- |
695 |
- python-any-r1_pkg_setup |
696 |
-} |
697 |
- |
698 |
-src_prepare() { |
699 |
- [[ ${PV} == 9999 ]] && eautoreconf |
700 |
-} |
701 |
- |
702 |
-multilib_src_configure() { |
703 |
- local myconf |
704 |
- |
705 |
- if use classic; then |
706 |
- # Configurable DRI drivers |
707 |
- driver_enable swrast |
708 |
- |
709 |
- # Intel code |
710 |
- driver_enable video_cards_i915 i915 |
711 |
- driver_enable video_cards_i965 i965 |
712 |
- if ! use video_cards_i915 && \ |
713 |
- ! use video_cards_i965; then |
714 |
- driver_enable video_cards_intel i915 i965 |
715 |
- fi |
716 |
- |
717 |
- # Nouveau code |
718 |
- driver_enable video_cards_nouveau nouveau |
719 |
- |
720 |
- # ATI code |
721 |
- driver_enable video_cards_r100 radeon |
722 |
- driver_enable video_cards_r200 r200 |
723 |
- if ! use video_cards_r100 && \ |
724 |
- ! use video_cards_r200; then |
725 |
- driver_enable video_cards_radeon radeon r200 |
726 |
- fi |
727 |
- fi |
728 |
- |
729 |
- if use egl; then |
730 |
- myconf+="--with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm") " |
731 |
- fi |
732 |
- |
733 |
- if use gallium; then |
734 |
- myconf+=" |
735 |
- $(use_enable d3d9 nine) |
736 |
- $(use_enable llvm gallium-llvm) |
737 |
- $(use_enable openmax omx) |
738 |
- $(use_enable vaapi va) |
739 |
- $(use_enable vdpau) |
740 |
- $(use_enable xa) |
741 |
- $(use_enable xvmc) |
742 |
- " |
743 |
- use vaapi && myconf+="--with-va-libdir=/usr/$(get_libdir)/va/drivers" |
744 |
- |
745 |
- gallium_enable swrast |
746 |
- gallium_enable video_cards_vmware svga |
747 |
- gallium_enable video_cards_nouveau nouveau |
748 |
- gallium_enable video_cards_i915 i915 |
749 |
- gallium_enable video_cards_ilo ilo |
750 |
- if ! use video_cards_i915 && \ |
751 |
- ! use video_cards_i965; then |
752 |
- gallium_enable video_cards_intel i915 |
753 |
- fi |
754 |
- |
755 |
- gallium_enable video_cards_r300 r300 |
756 |
- gallium_enable video_cards_r600 r600 |
757 |
- gallium_enable video_cards_radeonsi radeonsi |
758 |
- if ! use video_cards_r300 && \ |
759 |
- ! use video_cards_r600; then |
760 |
- gallium_enable video_cards_radeon r300 r600 |
761 |
- fi |
762 |
- |
763 |
- gallium_enable video_cards_freedreno freedreno |
764 |
- # opencl stuff |
765 |
- if use opencl; then |
766 |
- myconf+=" |
767 |
- $(use_enable opencl) |
768 |
- --with-clang-libdir="${EPREFIX}/usr/lib" |
769 |
- " |
770 |
- fi |
771 |
- fi |
772 |
- |
773 |
- # x86 hardened pax_kernel needs glx-read-only-text, bug 240956 |
774 |
- if [[ ${ABI} == x86 ]]; then |
775 |
- myconf+="$(use_enable pax_kernel glx-read-only-text)" |
776 |
- fi |
777 |
- |
778 |
- # on abi_x86_32 hardened we need to have asm disable |
779 |
- if [[ ${ABI} == x86* ]] && use pic; then |
780 |
- myconf+=" --disable-asm" |
781 |
- fi |
782 |
- |
783 |
- # build fails with BSD indent, bug #428112 |
784 |
- use userland_GNU || export INDENT=cat |
785 |
- |
786 |
- ECONF_SOURCE="${S}" \ |
787 |
- econf \ |
788 |
- --enable-dri \ |
789 |
- --enable-glx \ |
790 |
- --enable-shared-glapi \ |
791 |
- $(use_enable !bindist texture-float) \ |
792 |
- $(use_enable d3d9 nine) \ |
793 |
- $(use_enable debug) \ |
794 |
- $(use_enable dri3) \ |
795 |
- $(use_enable egl) \ |
796 |
- $(use_enable gbm) \ |
797 |
- $(use_enable gles1) \ |
798 |
- $(use_enable gles2) \ |
799 |
- $(use_enable nptl glx-tls) \ |
800 |
- $(use_enable osmesa) \ |
801 |
- $(use_enable !udev sysfs) \ |
802 |
- --enable-llvm-shared-libs \ |
803 |
- --with-dri-drivers=${DRI_DRIVERS} \ |
804 |
- --with-gallium-drivers=${GALLIUM_DRIVERS} \ |
805 |
- PYTHON2="${PYTHON}" \ |
806 |
- ${myconf} |
807 |
-} |
808 |
- |
809 |
-multilib_src_install() { |
810 |
- emake install DESTDIR="${D}" |
811 |
- |
812 |
- if use classic || use gallium; then |
813 |
- ebegin "Moving DRI/Gallium drivers for dynamic switching" |
814 |
- local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so ) |
815 |
- keepdir /usr/$(get_libdir)/dri |
816 |
- dodir /usr/$(get_libdir)/mesa |
817 |
- for x in ${gallium_drivers[@]}; do |
818 |
- if [ -f "$(get_libdir)/gallium/${x}" ]; then |
819 |
- mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \ |
820 |
- || die "Failed to move ${x}" |
821 |
- fi |
822 |
- done |
823 |
- if use classic; then |
824 |
- emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install |
825 |
- fi |
826 |
- for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do |
827 |
- if [ -f ${x} -o -L ${x} ]; then |
828 |
- mv -f "${x}" "${x/dri/mesa}" \ |
829 |
- || die "Failed to move ${x}" |
830 |
- fi |
831 |
- done |
832 |
- pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed" |
833 |
- ln -s ../mesa/*.so . || die "Creating symlink failed" |
834 |
- # remove symlinks to drivers known to eselect |
835 |
- for x in ${gallium_drivers[@]}; do |
836 |
- if [ -f ${x} -o -L ${x} ]; then |
837 |
- rm "${x}" || die "Failed to remove ${x}" |
838 |
- fi |
839 |
- done |
840 |
- popd |
841 |
- eend $? |
842 |
- fi |
843 |
- if use opencl; then |
844 |
- ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching" |
845 |
- local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa" |
846 |
- dodir ${cl_dir}/{lib,include} |
847 |
- if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then |
848 |
- mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \ |
849 |
- "${ED}"${cl_dir} |
850 |
- fi |
851 |
- if [ -f "${ED}/usr/include/CL/opencl.h" ]; then |
852 |
- mv -f "${ED}"/usr/include/CL \ |
853 |
- "${ED}"${cl_dir}/include |
854 |
- fi |
855 |
- eend $? |
856 |
- fi |
857 |
- |
858 |
- if use openmax; then |
859 |
- echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx" |
860 |
- doenvd "${T}"/99mesaxdgomx |
861 |
- keepdir /usr/share/mesa/xdg |
862 |
- fi |
863 |
-} |
864 |
- |
865 |
-multilib_src_install_all() { |
866 |
- prune_libtool_files --all |
867 |
- einstalldocs |
868 |
- |
869 |
- if use !bindist; then |
870 |
- dodoc docs/patents.txt |
871 |
- fi |
872 |
- |
873 |
- # Install config file for eselect mesa |
874 |
- insinto /usr/share/mesa |
875 |
- newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf |
876 |
-} |
877 |
- |
878 |
-multilib_src_test() { |
879 |
- if use llvm; then |
880 |
- 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' |
881 |
- pushd src/gallium/drivers/llvmpipe >/dev/null || die |
882 |
- emake ${llvm_tests} |
883 |
- pax-mark m ${llvm_tests} |
884 |
- popd >/dev/null || die |
885 |
- fi |
886 |
- emake check |
887 |
-} |
888 |
- |
889 |
-pkg_postinst() { |
890 |
- # Switch to the xorg implementation. |
891 |
- echo |
892 |
- eselect opengl set --use-old ${OPENGL_DIR} |
893 |
- |
894 |
- # Select classic/gallium drivers |
895 |
- if use classic || use gallium; then |
896 |
- eselect mesa set --auto |
897 |
- fi |
898 |
- |
899 |
- # Switch to mesa opencl |
900 |
- if use opencl; then |
901 |
- eselect opencl set --use-old ${PN} |
902 |
- fi |
903 |
- |
904 |
- # run omxregister-bellagio to make the OpenMAX drivers known system-wide |
905 |
- if use openmax; then |
906 |
- ebegin "Registering OpenMAX drivers" |
907 |
- BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \ |
908 |
- OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \ |
909 |
- omxregister-bellagio |
910 |
- eend $? |
911 |
- fi |
912 |
- |
913 |
- # warn about patent encumbered texture-float |
914 |
- if use !bindist; then |
915 |
- elog "USE=\"bindist\" was not set. Potentially patent encumbered code was" |
916 |
- elog "enabled. Please see patents.txt for an explanation." |
917 |
- fi |
918 |
- |
919 |
- if ! has_version media-libs/libtxc_dxtn; then |
920 |
- elog "Note that in order to have full S3TC support, it is necessary to install" |
921 |
- elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice" |
922 |
- elog "textures in some apps, and some others even require this to run." |
923 |
- fi |
924 |
-} |
925 |
- |
926 |
-pkg_prerm() { |
927 |
- if use openmax; then |
928 |
- rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister |
929 |
- fi |
930 |
-} |
931 |
- |
932 |
-# $1 - VIDEO_CARDS flag |
933 |
-# other args - names of DRI drivers to enable |
934 |
-# TODO: avoid code duplication for a more elegant implementation |
935 |
-driver_enable() { |
936 |
- case $# in |
937 |
- # for enabling unconditionally |
938 |
- 1) |
939 |
- DRI_DRIVERS+=",$1" |
940 |
- ;; |
941 |
- *) |
942 |
- if use $1; then |
943 |
- shift |
944 |
- for i in $@; do |
945 |
- DRI_DRIVERS+=",${i}" |
946 |
- done |
947 |
- fi |
948 |
- ;; |
949 |
- esac |
950 |
-} |
951 |
- |
952 |
-gallium_enable() { |
953 |
- case $# in |
954 |
- # for enabling unconditionally |
955 |
- 1) |
956 |
- GALLIUM_DRIVERS+=",$1" |
957 |
- ;; |
958 |
- *) |
959 |
- if use $1; then |
960 |
- shift |
961 |
- for i in $@; do |
962 |
- GALLIUM_DRIVERS+=",${i}" |
963 |
- done |
964 |
- fi |
965 |
- ;; |
966 |
- esac |
967 |
-} |