Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/, media-libs/mesa/files/
Date: Tue, 05 Dec 2017 01:17:37
Message-Id: 1512436605.ae3ae70fcb2026cd98e14b0737f3655532fd30ba.mattst88@gentoo
1 commit: ae3ae70fcb2026cd98e14b0737f3655532fd30ba
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 5 01:16:31 2017 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 5 01:16:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae3ae70f
7
8 media-libs/mesa: Drop old versions
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.3
11
12 media-libs/mesa/Manifest | 3 -
13 ...er-Work-around-build-failure-with-AltiVec.patch | 70 ---
14 media-libs/mesa/mesa-13.0.5.ebuild | 510 ---------------------
15 media-libs/mesa/mesa-13.0.6.ebuild | 508 --------------------
16 media-libs/mesa/mesa-17.1.8.ebuild | 503 --------------------
17 media-libs/mesa/metadata.xml | 4 -
18 6 files changed, 1598 deletions(-)
19
20 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
21 index 6afca3e88be..33a30520b27 100644
22 --- a/media-libs/mesa/Manifest
23 +++ b/media-libs/mesa/Manifest
24 @@ -1,7 +1,4 @@
25 -DIST mesa-13.0.5.tar.xz 9171480 SHA256 bfcea7e2c801525a60895c8aff11aa68457ee9aa35d01a4638e1f310a3f5ef87 SHA512 db5f6a97b40ee6e45ba81280ab4543354e9f274c7112c5a43b8970244f329902a22f68d5eeddad5b64502507f462ffbcc028efc5dff93822adf95d30ba5903c1 WHIRLPOOL 164116608908331d4e8d69c4d2b92dc22e8e6d98725a20e8c2da5cc24b4e9ae9e05ee9c7209d55371b419e0f4e6c1d4752a46d149a968a6b83612aa77f7e480e
26 -DIST mesa-13.0.6.tar.xz 9179236 SHA256 29ef104a7fc082d352b1599bd6cb1d040be424ccd22f5e0eb7ee9b0e9acd3597 SHA512 2455e044647f674c2f1dd524143b61b8630713fa929bbf6fe1c981436a9c08dc933553d638a22b32d2799afb77be746355b48b1b20af172141c5b63891e94441 WHIRLPOOL 1fdaaf29de96225cf41a3bdeb559a35cf20fda524f80985b2bfdc52095dcb7f6b320704b7ccf754a6f80555925a6a80dfa2b1115a4bdd9bdc1ebb672f115208a
27 DIST mesa-17.0.6.tar.xz 9494872 BLAKE2B 1e83b0d40bb911c26880f25b281ba6e065dbf47555812c53e7d6fbccbc36a11a80531b8887eef6fbcb58e91d1eb5425151fdc03588d4ea36c2f268e5a6fcb604 SHA512 537d28aa694c2d48811d2467e33b3adc841067d5f1cdb7e0809ba100f71869090285bbb246e57e5f0177401a539b44cc32b1ccfcb32a1855c14b011b92d32eaf
28 DIST mesa-17.1.10.tar.xz 9872168 SHA256 cbc0d681cc4df47d8deb5a36f45b420978128522fd665b2cd4c7096316f11bdb SHA512 728dbd41f5d3a7a1c33fc18c08a8b8eb1f6d236c5f00781209f46b144dd66a27ecd723ab1635868b7ad77de3a18ad53f1a88c932f17c0be97605a2775e3b3a9b WHIRLPOOL d33cc0b7620e01822ce6ca2708f01eccc6c7796c1ed19f3642dab733521d17d794658dbc47bcca7d71f94f99c81637a28738dc6c45c4d1ccc7e2855f07a5f961
29 -DIST mesa-17.1.8.tar.xz 9902800 SHA256 75ed2eaeae26ddd536150f294386468ae2e1a7717948c41cd14b7875be5269db SHA512 d29fd999d75967683f5aa836cf0b701705f54de428ebbbac059c3e335e94552c0b455aa67fa2870464a086dc58994f2f320710a1abc265dea363241aede71c5b WHIRLPOOL 8faad2f3da8546d48ee9b5470d147de7507a0dc39787a876f6513933e958baa94571d285095fced7c34c674364ab897a896acc39374849fb22026dd05a9bd27f
30 DIST mesa-17.2.6.tar.xz 10387604 BLAKE2B 43bd60f9e61bb04e3a2afe4bc6e18099a524cdec3c7948d9ccfffa5bfe50eb3e0625ba6da7bb3b32959ef4a5e3db982daf2f90d3ee555cf65084d70849b3ca12 SHA512 739645d963da2ff79fa0f2bfcc4948516c4f0a768f9d21f98eff049edc88218847afd3786003ccf7b10deec585f4f1d7f70fcc5e5f6e33186ebbb86cd8cb0202
31 DIST mesa-17.3.0-rc5.tar.xz 10663464 BLAKE2B 0706e3175358f43ce70707e9f18c22df60c387d1260c4dfae13a55f9278a266d9885483c6e794d913c8ad5f4b9dd3d852f309e0ef3f042b9ae62b371d9dfba84 SHA512 b53e40f39850067e97dcf9d1eb10d1f5d3a8729933057bacf3648b86ef55c43d7b2f2f5444ae8c6f1b8677c2c3fd12f7484ee08139bd388dc4cebd8dbaf28c83
32
33 diff --git a/media-libs/mesa/files/mesa-13-clover-Work-around-build-failure-with-AltiVec.patch b/media-libs/mesa/files/mesa-13-clover-Work-around-build-failure-with-AltiVec.patch
34 deleted file mode 100644
35 index 0d2c65ac56e..00000000000
36 --- a/media-libs/mesa/files/mesa-13-clover-Work-around-build-failure-with-AltiVec.patch
37 +++ /dev/null
38 @@ -1,70 +0,0 @@
39 -From 71a2b2e8a580d2c0bee84b898d8531b27f3c7811 Mon Sep 17 00:00:00 2001
40 -From: Matt Turner <mattst88@×××××.com>
41 -Date: Thu, 2 Mar 2017 04:43:21 +0000
42 -Subject: [PATCH] clover: Work around build failure with AltiVec.
43 -
44 -Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=587210
45 -Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68504
46 -Acked-by: Francisco Jerez <currojerez@××××××.net>
47 -(cherry picked from commit 7d1195c1e4d071fe796bf5f210c468ea1cc86225)
48 ----
49 - configure.ac | 14 ++++++++++++++
50 - src/gallium/state_trackers/clover/Makefile.am | 3 +++
51 - 2 files changed, 17 insertions(+)
52 -
53 -diff --git a/configure.ac b/configure.ac
54 -index fd78fbb..3646e45 100644
55 ---- a/configure.ac
56 -+++ b/configure.ac
57 -@@ -1974,6 +1974,20 @@ if test "x$enable_opencl" = xyes; then
58 - if test "x$have_libelf" != xyes; then
59 - AC_MSG_ERROR([Clover requires libelf])
60 - fi
61 -+
62 -+ if test "x${ac_cv_cxx_compiler_gnu}" = xyes; then
63 -+ altivec_enabled=no
64 -+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
65 -+ #if !defined(__VEC__) || !defined(__ALTIVEC__)
66 -+ #error "AltiVec not enabled"
67 -+ #endif
68 -+ ])], altivec_enabled=yes)
69 -+
70 -+ if test "$altivec_enabled" = yes; then
71 -+ CLOVER_STD_OVERRIDE="-std=gnu++11"
72 -+ fi
73 -+ AC_SUBST([CLOVER_STD_OVERRIDE])
74 -+ fi
75 - fi
76 - AM_CONDITIONAL(HAVE_CLOVER, test "x$enable_opencl" = xyes)
77 - AM_CONDITIONAL(HAVE_CLOVER_ICD, test "x$enable_opencl_icd" = xyes)
78 -diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium/state_trackers/clover/Makefile.am
79 -index 8abcfec..edf1e26 100644
80 ---- a/src/gallium/state_trackers/clover/Makefile.am
81 -+++ b/src/gallium/state_trackers/clover/Makefile.am
82 -@@ -33,6 +33,7 @@ noinst_LTLIBRARIES = libclover.la libcltgsi.la libclllvm.la
83 -
84 - libcltgsi_la_CXXFLAGS = \
85 - -std=c++11 \
86 -+ $(CLOVER_STD_OVERRIDE) \
87 - $(VISIBILITY_CXXFLAGS)
88 -
89 - libcltgsi_la_SOURCES = $(TGSI_SOURCES)
90 -@@ -41,6 +42,7 @@ libclllvm_la_CXXFLAGS = \
91 - -std=c++11 \
92 - $(VISIBILITY_CXXFLAGS) \
93 - $(LLVM_CXXFLAGS) \
94 -+ $(CLOVER_STD_OVERRIDE) \
95 - $(DEFINES) \
96 - $(LIBELF_CFLAGS) \
97 - -DLIBCLC_INCLUDEDIR=\"$(LIBCLC_INCLUDEDIR)/\" \
98 -@@ -51,6 +53,7 @@ libclllvm_la_SOURCES = $(LLVM_SOURCES)
99 -
100 - libclover_la_CXXFLAGS = \
101 - -std=c++11 \
102 -+ $(CLOVER_STD_OVERRIDE) \
103 - $(VISIBILITY_CXXFLAGS)
104 -
105 - libclover_la_LIBADD = \
106 ---
107 -2.10.2
108 -
109
110 diff --git a/media-libs/mesa/mesa-13.0.5.ebuild b/media-libs/mesa/mesa-13.0.5.ebuild
111 deleted file mode 100644
112 index 594c283ec9b..00000000000
113 --- a/media-libs/mesa/mesa-13.0.5.ebuild
114 +++ /dev/null
115 @@ -1,510 +0,0 @@
116 -# Copyright 1999-2017 Gentoo Foundation
117 -# Distributed under the terms of the GNU General Public License v2
118 -
119 -EAPI=5
120 -
121 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/mesa.git"
122 -
123 -if [[ ${PV} = 9999 ]]; then
124 - GIT_ECLASS="git-r3"
125 - EXPERIMENTAL="true"
126 -fi
127 -
128 -PYTHON_COMPAT=( python2_7 )
129 -
130 -inherit autotools multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS}
131 -
132 -OPENGL_DIR="xorg-x11"
133 -
134 -MY_P="${P/_/-}"
135 -FOLDER="${PV/_rc*/}"
136 -
137 -DESCRIPTION="OpenGL-like graphic library for Linux"
138 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
139 -
140 -if [[ $PV == 9999 ]]; then
141 - SRC_URI=""
142 -else
143 - SRC_URI="https://mesa.freedesktop.org/archive/${FOLDER}/${MY_P}.tar.xz"
144 - KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
145 -fi
146 -
147 -LICENSE="MIT"
148 -SLOT="0"
149 -RESTRICT="!bindist? ( bindist )"
150 -
151 -INTEL_CARDS="i915 i965 intel"
152 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
153 -VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno nouveau vc4 vmware"
154 -for card in ${VIDEO_CARDS}; do
155 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
156 -done
157 -
158 -IUSE="${IUSE_VIDEO_CARDS}
159 - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gcrypt gles1 gles2
160 - libressl +llvm +nettle +nptl opencl osmesa pax_kernel openmax openssl pic
161 - selinux vaapi valgrind vdpau vulkan wayland xvmc xa"
162 -
163 -REQUIRED_USE="
164 - || ( gcrypt libressl nettle openssl )
165 - d3d9? ( dri3 gallium )
166 - llvm? ( gallium )
167 - opencl? ( gallium llvm )
168 - openmax? ( gallium )
169 - gles1? ( egl )
170 - gles2? ( egl )
171 - vaapi? ( gallium )
172 - vdpau? ( gallium )
173 - vulkan? ( video_cards_i965 )
174 - wayland? ( egl gbm )
175 - xa? ( gallium )
176 - video_cards_freedreno? ( gallium )
177 - video_cards_intel? ( classic )
178 - video_cards_i915? ( || ( classic gallium ) )
179 - video_cards_i965? ( classic )
180 - video_cards_nouveau? ( || ( classic gallium ) )
181 - video_cards_radeon? ( || ( classic gallium )
182 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
183 - video_cards_r100? ( classic )
184 - video_cards_r200? ( classic )
185 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
186 - video_cards_r600? ( gallium )
187 - video_cards_radeonsi? ( gallium llvm )
188 - video_cards_vmware? ( gallium )
189 -"
190 -
191 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.72"
192 -# keep correct libdrm and dri2proto dep
193 -# keep blocks in rdepend for binpkg
194 -RDEPEND="
195 - !<x11-base/xorg-server-1.7
196 - !<=x11-proto/xf86driproto-2.0.3
197 - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )
198 - classic? ( app-eselect/eselect-mesa )
199 - gallium? ( app-eselect/eselect-mesa )
200 - >=app-eselect/eselect-opengl-1.3.0
201 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
202 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
203 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
204 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
205 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
206 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
207 - >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}]
208 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
209 - llvm? (
210 - video_cards_radeonsi? (
211 - virtual/libelf:0=[${MULTILIB_USEDEP}]
212 - )
213 - video_cards_r600? (
214 - virtual/libelf:0=[${MULTILIB_USEDEP}]
215 - )
216 - video_cards_radeon? (
217 - virtual/libelf:0=[${MULTILIB_USEDEP}]
218 - )
219 - >=sys-devel/llvm-3.6.0:0=[${MULTILIB_USEDEP}]
220 - )
221 - nettle? ( dev-libs/nettle:=[${MULTILIB_USEDEP}] )
222 - !nettle? (
223 - gcrypt? ( dev-libs/libgcrypt:=[${MULTILIB_USEDEP}] )
224 - !gcrypt? (
225 - libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
226 - !libressl? ( dev-libs/openssl:=[${MULTILIB_USEDEP}] )
227 - )
228 - )
229 - opencl? (
230 - app-eselect/eselect-opencl
231 - dev-libs/libclc
232 - virtual/libelf:0=[${MULTILIB_USEDEP}]
233 - )
234 - openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] )
235 - vaapi? (
236 - >=x11-libs/libva-1.6.0:=[${MULTILIB_USEDEP}]
237 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
238 - )
239 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
240 - wayland? ( >=dev-libs/wayland-1.2.0:=[${MULTILIB_USEDEP}] )
241 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
242 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vmware?,${MULTILIB_USEDEP}]
243 -"
244 -for card in ${INTEL_CARDS}; do
245 - RDEPEND="${RDEPEND}
246 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
247 - "
248 -done
249 -
250 -for card in ${RADEON_CARDS}; do
251 - RDEPEND="${RDEPEND}
252 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
253 - "
254 -done
255 -RDEPEND="${RDEPEND}
256 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
257 -"
258 -
259 -# FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
260 -# LLVM < 3.9 is out of the game
261 -DEPEND="${RDEPEND}
262 - ${PYTHON_DEPS}
263 - llvm? (
264 - video_cards_radeonsi? ( || (
265 - sys-devel/llvm[llvm_targets_AMDGPU]
266 - sys-devel/llvm[video_cards_radeon]
267 - ) )
268 - )
269 - opencl? (
270 - >=sys-devel/llvm-3.4.2:0=[${MULTILIB_USEDEP}]
271 - >=sys-devel/clang-3.4.2:0=[${MULTILIB_USEDEP}]
272 - >=sys-devel/gcc-4.6
273 - )
274 - sys-devel/gettext
275 - virtual/pkgconfig
276 - valgrind? ( dev-util/valgrind )
277 - >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
278 - dri3? (
279 - >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
280 - >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}]
281 - )
282 - >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}]
283 - >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}]
284 - >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}]
285 - >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}]
286 -"
287 -[[ ${PV} == 9999 ]] && DEPEND+="
288 - sys-devel/bison
289 - sys-devel/flex
290 - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
291 -"
292 -
293 -S="${WORKDIR}/${MY_P}"
294 -EGIT_CHECKOUT_DIR=${S}
295 -
296 -QA_WX_LOAD="
297 -x86? (
298 - !pic? (
299 - usr/lib*/libglapi.so.0.0.0
300 - usr/lib*/libGLESv1_CM.so.1.1.0
301 - usr/lib*/libGLESv2.so.2.0.0
302 - usr/lib*/libGL.so.1.2.0
303 - usr/lib*/libOSMesa.so.8.0.0
304 - )
305 -)"
306 -
307 -pkg_setup() {
308 - # warning message for bug 459306
309 - if use llvm && has_version sys-devel/llvm[!debug=]; then
310 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
311 - ewarn "detected! This can cause problems. For details, see bug 459306."
312 - fi
313 -
314 - python-any-r1_pkg_setup
315 -}
316 -
317 -src_prepare() {
318 - epatch "${FILESDIR}"/${PN}-13-clover-Work-around-build-failure-with-AltiVec.patch
319 -
320 - eautoreconf
321 -}
322 -
323 -multilib_src_configure() {
324 - local myconf
325 -
326 - if use classic; then
327 - # Configurable DRI drivers
328 - driver_enable swrast
329 -
330 - # Intel code
331 - driver_enable video_cards_i915 i915
332 - driver_enable video_cards_i965 i965
333 - if ! use video_cards_i915 && \
334 - ! use video_cards_i965; then
335 - driver_enable video_cards_intel i915 i965
336 - fi
337 -
338 - # Nouveau code
339 - driver_enable video_cards_nouveau nouveau
340 -
341 - # ATI code
342 - driver_enable video_cards_r100 radeon
343 - driver_enable video_cards_r200 r200
344 - if ! use video_cards_r100 && \
345 - ! use video_cards_r200; then
346 - driver_enable video_cards_radeon radeon r200
347 - fi
348 - fi
349 -
350 - if use egl; then
351 - myconf+=" --with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm")"
352 - fi
353 -
354 - if use gallium; then
355 - myconf+="
356 - $(use_enable d3d9 nine)
357 - $(use_enable llvm gallium-llvm)
358 - $(use_enable openmax omx)
359 - $(use_enable vaapi va)
360 - $(use_enable vdpau)
361 - $(use_enable xa)
362 - $(use_enable xvmc)
363 - "
364 - use vaapi && myconf+=" --with-va-libdir=/usr/$(get_libdir)/va/drivers"
365 -
366 - gallium_enable swrast
367 - gallium_enable video_cards_vc4 vc4
368 - gallium_enable video_cards_vmware svga
369 - gallium_enable video_cards_nouveau nouveau
370 - gallium_enable video_cards_i915 i915
371 - if ! use video_cards_i915 && \
372 - ! use video_cards_i965; then
373 - gallium_enable video_cards_intel i915
374 - fi
375 -
376 - gallium_enable video_cards_r300 r300
377 - gallium_enable video_cards_r600 r600
378 - gallium_enable video_cards_radeonsi radeonsi
379 - if ! use video_cards_r300 && \
380 - ! use video_cards_r600; then
381 - gallium_enable video_cards_radeon r300 r600
382 - fi
383 -
384 - gallium_enable video_cards_freedreno freedreno
385 - # opencl stuff
386 - if use opencl; then
387 - myconf+="
388 - $(use_enable opencl)
389 - --with-clang-libdir="${EPREFIX}/usr/lib"
390 - "
391 - fi
392 - fi
393 -
394 - if use vulkan; then
395 - vulkan_enable video_cards_i965 intel
396 -
397 - # radv is disabled due to dependence on >=llvm-3.9, bug 607660
398 - #vulkan_enable video_cards_radeonsi radeon
399 - fi
400 -
401 - # x86 hardened pax_kernel needs glx-rts, bug 240956
402 - if [[ ${ABI} == x86 ]]; then
403 - myconf+=" $(use_enable pax_kernel glx-read-only-text)"
404 - fi
405 -
406 - # on abi_x86_32 hardened we need to have asm disable
407 - if [[ ${ABI} == x86* ]] && use pic; then
408 - myconf+=" --disable-asm"
409 - fi
410 -
411 - if use gallium; then
412 - myconf+=" $(use_enable osmesa gallium-osmesa)"
413 - else
414 - myconf+=" $(use_enable osmesa)"
415 - fi
416 -
417 - # build fails with BSD indent, bug #428112
418 - use userland_GNU || export INDENT=cat
419 -
420 - ECONF_SOURCE="${S}" \
421 - econf \
422 - --enable-dri \
423 - --enable-glx \
424 - --enable-shared-glapi \
425 - --disable-shader-cache \
426 - $(use_enable !bindist texture-float) \
427 - $(use_enable d3d9 nine) \
428 - $(use_enable debug) \
429 - $(use_enable dri3) \
430 - $(use_enable egl) \
431 - $(use_enable gbm) \
432 - $(use_enable gles1) \
433 - $(use_enable gles2) \
434 - $(use_enable nptl glx-tls) \
435 - --enable-valgrind=$(usex valgrind auto no) \
436 - --enable-llvm-shared-libs \
437 - --with-dri-drivers=${DRI_DRIVERS} \
438 - --with-gallium-drivers=${GALLIUM_DRIVERS} \
439 - --with-vulkan-drivers=${VULKAN_DRIVERS} \
440 - --with-sha1=$(usex nettle libnettle $(usex gcrypt libgcrypt libcrypto)) \
441 - PYTHON2="${PYTHON}" \
442 - ${myconf}
443 -}
444 -
445 -multilib_src_install() {
446 - emake install DESTDIR="${D}"
447 -
448 - if use classic || use gallium; then
449 - ebegin "Moving DRI/Gallium drivers for dynamic switching"
450 - local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
451 - keepdir /usr/$(get_libdir)/dri
452 - dodir /usr/$(get_libdir)/mesa
453 - for x in ${gallium_drivers[@]}; do
454 - if [ -f "$(get_libdir)/gallium/${x}" ]; then
455 - mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
456 - || die "Failed to move ${x}"
457 - fi
458 - done
459 - if use classic; then
460 - emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install
461 - fi
462 - for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
463 - if [ -f ${x} -o -L ${x} ]; then
464 - mv -f "${x}" "${x/dri/mesa}" \
465 - || die "Failed to move ${x}"
466 - fi
467 - done
468 - pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
469 - ln -s ../mesa/*.so . || die "Creating symlink failed"
470 - # remove symlinks to drivers known to eselect
471 - for x in ${gallium_drivers[@]}; do
472 - if [ -f ${x} -o -L ${x} ]; then
473 - rm "${x}" || die "Failed to remove ${x}"
474 - fi
475 - done
476 - popd
477 - eend $?
478 - fi
479 - if use opencl; then
480 - ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
481 - local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
482 - dodir ${cl_dir}/{lib,include}
483 - if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
484 - mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
485 - "${ED}"${cl_dir}
486 - fi
487 - if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
488 - mv -f "${ED}"/usr/include/CL \
489 - "${ED}"${cl_dir}/include
490 - fi
491 - eend $?
492 - fi
493 -
494 - if use openmax; then
495 - echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx"
496 - doenvd "${T}"/99mesaxdgomx
497 - keepdir /usr/share/mesa/xdg
498 - fi
499 -}
500 -
501 -multilib_src_install_all() {
502 - prune_libtool_files --all
503 - einstalldocs
504 -
505 - if use !bindist; then
506 - dodoc docs/patents.txt
507 - fi
508 -
509 - # Install config file for eselect mesa
510 - insinto /usr/share/mesa
511 - newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
512 -
513 - # Mesa should not install these
514 - if use vulkan; then
515 - rm "${ED}"/usr/include/vulkan/{vulkan.h,vk_platform.h} || die
516 - fi
517 -}
518 -
519 -multilib_src_test() {
520 - if use llvm; then
521 - 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'
522 - pushd src/gallium/drivers/llvmpipe >/dev/null || die
523 - emake ${llvm_tests}
524 - pax-mark m ${llvm_tests}
525 - popd >/dev/null || die
526 - fi
527 - emake check
528 -}
529 -
530 -pkg_postinst() {
531 - # Switch to the xorg implementation.
532 - echo
533 - eselect opengl set --use-old ${OPENGL_DIR}
534 -
535 - # Select classic/gallium drivers
536 - if use classic || use gallium; then
537 - eselect mesa set --auto
538 - fi
539 -
540 - # Switch to mesa opencl
541 - if use opencl; then
542 - eselect opencl set --use-old ${PN}
543 - fi
544 -
545 - # run omxregister-bellagio to make the OpenMAX drivers known system-wide
546 - if use openmax; then
547 - ebegin "Registering OpenMAX drivers"
548 - BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \
549 - OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \
550 - omxregister-bellagio
551 - eend $?
552 - fi
553 -
554 - # warn about patent encumbered texture-float
555 - if use !bindist; then
556 - elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
557 - elog "enabled. Please see patents.txt for an explanation."
558 - fi
559 -
560 - if ! has_version media-libs/libtxc_dxtn; then
561 - elog "Note that in order to have full S3TC support, it is necessary to install"
562 - elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
563 - elog "textures in some apps, and some others even require this to run."
564 - fi
565 -}
566 -
567 -pkg_prerm() {
568 - if use openmax; then
569 - rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister
570 - fi
571 -}
572 -
573 -# $1 - VIDEO_CARDS flag
574 -# other args - names of DRI drivers to enable
575 -# TODO: avoid code duplication for a more elegant implementation
576 -driver_enable() {
577 - case $# in
578 - # for enabling unconditionally
579 - 1)
580 - DRI_DRIVERS+=",$1"
581 - ;;
582 - *)
583 - if use $1; then
584 - shift
585 - for i in $@; do
586 - DRI_DRIVERS+=",${i}"
587 - done
588 - fi
589 - ;;
590 - esac
591 -}
592 -
593 -gallium_enable() {
594 - case $# in
595 - # for enabling unconditionally
596 - 1)
597 - GALLIUM_DRIVERS+=",$1"
598 - ;;
599 - *)
600 - if use $1; then
601 - shift
602 - for i in $@; do
603 - GALLIUM_DRIVERS+=",${i}"
604 - done
605 - fi
606 - ;;
607 - esac
608 -}
609 -
610 -vulkan_enable() {
611 - case $# in
612 - # for enabling unconditionally
613 - 1)
614 - VULKAN_DRIVERS+=",$1"
615 - ;;
616 - *)
617 - if use $1; then
618 - shift
619 - for i in $@; do
620 - VULKAN_DRIVERS+=",${i}"
621 - done
622 - fi
623 - ;;
624 - esac
625 -}
626
627 diff --git a/media-libs/mesa/mesa-13.0.6.ebuild b/media-libs/mesa/mesa-13.0.6.ebuild
628 deleted file mode 100644
629 index c18e6d30eba..00000000000
630 --- a/media-libs/mesa/mesa-13.0.6.ebuild
631 +++ /dev/null
632 @@ -1,508 +0,0 @@
633 -# Copyright 1999-2017 Gentoo Foundation
634 -# Distributed under the terms of the GNU General Public License v2
635 -
636 -EAPI=5
637 -
638 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/mesa.git"
639 -
640 -if [[ ${PV} = 9999 ]]; then
641 - GIT_ECLASS="git-r3"
642 - EXPERIMENTAL="true"
643 -fi
644 -
645 -PYTHON_COMPAT=( python2_7 )
646 -
647 -inherit autotools multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS}
648 -
649 -OPENGL_DIR="xorg-x11"
650 -
651 -MY_P="${P/_/-}"
652 -FOLDER="${PV/_rc*/}"
653 -
654 -DESCRIPTION="OpenGL-like graphic library for Linux"
655 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
656 -
657 -if [[ $PV == 9999 ]]; then
658 - SRC_URI=""
659 -else
660 - SRC_URI="https://mesa.freedesktop.org/archive/${FOLDER}/${MY_P}.tar.xz"
661 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
662 -fi
663 -
664 -LICENSE="MIT"
665 -SLOT="0"
666 -RESTRICT="!bindist? ( bindist )"
667 -
668 -INTEL_CARDS="i915 i965 intel"
669 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
670 -VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno nouveau vc4 vmware"
671 -for card in ${VIDEO_CARDS}; do
672 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
673 -done
674 -
675 -IUSE="${IUSE_VIDEO_CARDS}
676 - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gcrypt gles1 gles2
677 - libressl +llvm +nettle +nptl opencl osmesa pax_kernel openmax openssl pic
678 - selinux vaapi valgrind vdpau vulkan wayland xvmc xa"
679 -
680 -REQUIRED_USE="
681 - || ( gcrypt libressl nettle openssl )
682 - d3d9? ( dri3 gallium )
683 - llvm? ( gallium )
684 - opencl? ( gallium llvm )
685 - openmax? ( gallium )
686 - gles1? ( egl )
687 - gles2? ( egl )
688 - vaapi? ( gallium )
689 - vdpau? ( gallium )
690 - vulkan? ( video_cards_i965 )
691 - wayland? ( egl gbm )
692 - xa? ( gallium )
693 - video_cards_freedreno? ( gallium )
694 - video_cards_intel? ( classic )
695 - video_cards_i915? ( || ( classic gallium ) )
696 - video_cards_i965? ( classic )
697 - video_cards_nouveau? ( || ( classic gallium ) )
698 - video_cards_radeon? ( || ( classic gallium )
699 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
700 - video_cards_r100? ( classic )
701 - video_cards_r200? ( classic )
702 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
703 - video_cards_r600? ( gallium )
704 - video_cards_radeonsi? ( gallium llvm )
705 - video_cards_vmware? ( gallium )
706 -"
707 -
708 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.72"
709 -# keep correct libdrm and dri2proto dep
710 -# keep blocks in rdepend for binpkg
711 -RDEPEND="
712 - !<x11-base/xorg-server-1.7
713 - !<=x11-proto/xf86driproto-2.0.3
714 - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )
715 - classic? ( app-eselect/eselect-mesa )
716 - gallium? ( app-eselect/eselect-mesa )
717 - >=app-eselect/eselect-opengl-1.3.0
718 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
719 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
720 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
721 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
722 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
723 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
724 - >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}]
725 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
726 - llvm? (
727 - video_cards_radeonsi? (
728 - virtual/libelf:0=[${MULTILIB_USEDEP}]
729 - )
730 - video_cards_r600? (
731 - virtual/libelf:0=[${MULTILIB_USEDEP}]
732 - )
733 - video_cards_radeon? (
734 - virtual/libelf:0=[${MULTILIB_USEDEP}]
735 - )
736 - >=sys-devel/llvm-3.6.0:0=[${MULTILIB_USEDEP}]
737 - )
738 - nettle? ( dev-libs/nettle:=[${MULTILIB_USEDEP}] )
739 - !nettle? (
740 - gcrypt? ( dev-libs/libgcrypt:=[${MULTILIB_USEDEP}] )
741 - !gcrypt? (
742 - libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
743 - !libressl? ( dev-libs/openssl:=[${MULTILIB_USEDEP}] )
744 - )
745 - )
746 - opencl? (
747 - app-eselect/eselect-opencl
748 - dev-libs/libclc
749 - virtual/libelf:0=[${MULTILIB_USEDEP}]
750 - )
751 - openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] )
752 - vaapi? (
753 - >=x11-libs/libva-1.6.0:=[${MULTILIB_USEDEP}]
754 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
755 - )
756 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
757 - wayland? ( >=dev-libs/wayland-1.2.0:=[${MULTILIB_USEDEP}] )
758 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
759 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vmware?,${MULTILIB_USEDEP}]
760 -"
761 -for card in ${INTEL_CARDS}; do
762 - RDEPEND="${RDEPEND}
763 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
764 - "
765 -done
766 -
767 -for card in ${RADEON_CARDS}; do
768 - RDEPEND="${RDEPEND}
769 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
770 - "
771 -done
772 -RDEPEND="${RDEPEND}
773 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
774 -"
775 -
776 -# FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
777 -# LLVM < 3.9 is out of the game
778 -DEPEND="${RDEPEND}
779 - ${PYTHON_DEPS}
780 - llvm? (
781 - video_cards_radeonsi? ( || (
782 - sys-devel/llvm[llvm_targets_AMDGPU]
783 - sys-devel/llvm[video_cards_radeon]
784 - ) )
785 - )
786 - opencl? (
787 - >=sys-devel/llvm-3.4.2:0=[${MULTILIB_USEDEP}]
788 - >=sys-devel/clang-3.4.2:0=[${MULTILIB_USEDEP}]
789 - >=sys-devel/gcc-4.6
790 - )
791 - sys-devel/gettext
792 - virtual/pkgconfig
793 - valgrind? ( dev-util/valgrind )
794 - >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
795 - dri3? (
796 - >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
797 - >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}]
798 - )
799 - >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}]
800 - >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}]
801 - >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}]
802 - >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}]
803 -"
804 -[[ ${PV} == 9999 ]] && DEPEND+="
805 - sys-devel/bison
806 - sys-devel/flex
807 - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
808 -"
809 -
810 -S="${WORKDIR}/${MY_P}"
811 -EGIT_CHECKOUT_DIR=${S}
812 -
813 -QA_WX_LOAD="
814 -x86? (
815 - !pic? (
816 - usr/lib*/libglapi.so.0.0.0
817 - usr/lib*/libGLESv1_CM.so.1.1.0
818 - usr/lib*/libGLESv2.so.2.0.0
819 - usr/lib*/libGL.so.1.2.0
820 - usr/lib*/libOSMesa.so.8.0.0
821 - )
822 -)"
823 -
824 -pkg_setup() {
825 - # warning message for bug 459306
826 - if use llvm && has_version sys-devel/llvm[!debug=]; then
827 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
828 - ewarn "detected! This can cause problems. For details, see bug 459306."
829 - fi
830 -
831 - python-any-r1_pkg_setup
832 -}
833 -
834 -src_prepare() {
835 - [[ ${PV} == 9999 ]] && eautoreconf
836 -}
837 -
838 -multilib_src_configure() {
839 - local myconf
840 -
841 - if use classic; then
842 - # Configurable DRI drivers
843 - driver_enable swrast
844 -
845 - # Intel code
846 - driver_enable video_cards_i915 i915
847 - driver_enable video_cards_i965 i965
848 - if ! use video_cards_i915 && \
849 - ! use video_cards_i965; then
850 - driver_enable video_cards_intel i915 i965
851 - fi
852 -
853 - # Nouveau code
854 - driver_enable video_cards_nouveau nouveau
855 -
856 - # ATI code
857 - driver_enable video_cards_r100 radeon
858 - driver_enable video_cards_r200 r200
859 - if ! use video_cards_r100 && \
860 - ! use video_cards_r200; then
861 - driver_enable video_cards_radeon radeon r200
862 - fi
863 - fi
864 -
865 - if use egl; then
866 - myconf+=" --with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm")"
867 - fi
868 -
869 - if use gallium; then
870 - myconf+="
871 - $(use_enable d3d9 nine)
872 - $(use_enable llvm gallium-llvm)
873 - $(use_enable openmax omx)
874 - $(use_enable vaapi va)
875 - $(use_enable vdpau)
876 - $(use_enable xa)
877 - $(use_enable xvmc)
878 - "
879 - use vaapi && myconf+=" --with-va-libdir=/usr/$(get_libdir)/va/drivers"
880 -
881 - gallium_enable swrast
882 - gallium_enable video_cards_vc4 vc4
883 - gallium_enable video_cards_vmware svga
884 - gallium_enable video_cards_nouveau nouveau
885 - gallium_enable video_cards_i915 i915
886 - if ! use video_cards_i915 && \
887 - ! use video_cards_i965; then
888 - gallium_enable video_cards_intel i915
889 - fi
890 -
891 - gallium_enable video_cards_r300 r300
892 - gallium_enable video_cards_r600 r600
893 - gallium_enable video_cards_radeonsi radeonsi
894 - if ! use video_cards_r300 && \
895 - ! use video_cards_r600; then
896 - gallium_enable video_cards_radeon r300 r600
897 - fi
898 -
899 - gallium_enable video_cards_freedreno freedreno
900 - # opencl stuff
901 - if use opencl; then
902 - myconf+="
903 - $(use_enable opencl)
904 - --with-clang-libdir="${EPREFIX}/usr/lib"
905 - "
906 - fi
907 - fi
908 -
909 - if use vulkan; then
910 - vulkan_enable video_cards_i965 intel
911 -
912 - # radv is disabled due to dependence on >=llvm-3.9, bug 607660
913 - #vulkan_enable video_cards_radeonsi radeon
914 - fi
915 -
916 - # x86 hardened pax_kernel needs glx-rts, bug 240956
917 - if [[ ${ABI} == x86 ]]; then
918 - myconf+=" $(use_enable pax_kernel glx-read-only-text)"
919 - fi
920 -
921 - # on abi_x86_32 hardened we need to have asm disable
922 - if [[ ${ABI} == x86* ]] && use pic; then
923 - myconf+=" --disable-asm"
924 - fi
925 -
926 - if use gallium; then
927 - myconf+=" $(use_enable osmesa gallium-osmesa)"
928 - else
929 - myconf+=" $(use_enable osmesa)"
930 - fi
931 -
932 - # build fails with BSD indent, bug #428112
933 - use userland_GNU || export INDENT=cat
934 -
935 - ECONF_SOURCE="${S}" \
936 - econf \
937 - --enable-dri \
938 - --enable-glx \
939 - --enable-shared-glapi \
940 - --disable-shader-cache \
941 - $(use_enable !bindist texture-float) \
942 - $(use_enable d3d9 nine) \
943 - $(use_enable debug) \
944 - $(use_enable dri3) \
945 - $(use_enable egl) \
946 - $(use_enable gbm) \
947 - $(use_enable gles1) \
948 - $(use_enable gles2) \
949 - $(use_enable nptl glx-tls) \
950 - --enable-valgrind=$(usex valgrind auto no) \
951 - --enable-llvm-shared-libs \
952 - --with-dri-drivers=${DRI_DRIVERS} \
953 - --with-gallium-drivers=${GALLIUM_DRIVERS} \
954 - --with-vulkan-drivers=${VULKAN_DRIVERS} \
955 - --with-sha1=$(usex nettle libnettle $(usex gcrypt libgcrypt libcrypto)) \
956 - PYTHON2="${PYTHON}" \
957 - ${myconf}
958 -}
959 -
960 -multilib_src_install() {
961 - emake install DESTDIR="${D}"
962 -
963 - if use classic || use gallium; then
964 - ebegin "Moving DRI/Gallium drivers for dynamic switching"
965 - local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
966 - keepdir /usr/$(get_libdir)/dri
967 - dodir /usr/$(get_libdir)/mesa
968 - for x in ${gallium_drivers[@]}; do
969 - if [ -f "$(get_libdir)/gallium/${x}" ]; then
970 - mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
971 - || die "Failed to move ${x}"
972 - fi
973 - done
974 - if use classic; then
975 - emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install
976 - fi
977 - for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
978 - if [ -f ${x} -o -L ${x} ]; then
979 - mv -f "${x}" "${x/dri/mesa}" \
980 - || die "Failed to move ${x}"
981 - fi
982 - done
983 - pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
984 - ln -s ../mesa/*.so . || die "Creating symlink failed"
985 - # remove symlinks to drivers known to eselect
986 - for x in ${gallium_drivers[@]}; do
987 - if [ -f ${x} -o -L ${x} ]; then
988 - rm "${x}" || die "Failed to remove ${x}"
989 - fi
990 - done
991 - popd
992 - eend $?
993 - fi
994 - if use opencl; then
995 - ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
996 - local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
997 - dodir ${cl_dir}/{lib,include}
998 - if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
999 - mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
1000 - "${ED}"${cl_dir}
1001 - fi
1002 - if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
1003 - mv -f "${ED}"/usr/include/CL \
1004 - "${ED}"${cl_dir}/include
1005 - fi
1006 - eend $?
1007 - fi
1008 -
1009 - if use openmax; then
1010 - echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx"
1011 - doenvd "${T}"/99mesaxdgomx
1012 - keepdir /usr/share/mesa/xdg
1013 - fi
1014 -}
1015 -
1016 -multilib_src_install_all() {
1017 - prune_libtool_files --all
1018 - einstalldocs
1019 -
1020 - if use !bindist; then
1021 - dodoc docs/patents.txt
1022 - fi
1023 -
1024 - # Install config file for eselect mesa
1025 - insinto /usr/share/mesa
1026 - newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
1027 -
1028 - # Mesa should not install these
1029 - if use vulkan; then
1030 - rm "${ED}"/usr/include/vulkan/{vulkan.h,vk_platform.h} || die
1031 - fi
1032 -}
1033 -
1034 -multilib_src_test() {
1035 - if use llvm; then
1036 - 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'
1037 - pushd src/gallium/drivers/llvmpipe >/dev/null || die
1038 - emake ${llvm_tests}
1039 - pax-mark m ${llvm_tests}
1040 - popd >/dev/null || die
1041 - fi
1042 - emake check
1043 -}
1044 -
1045 -pkg_postinst() {
1046 - # Switch to the xorg implementation.
1047 - echo
1048 - eselect opengl set --use-old ${OPENGL_DIR}
1049 -
1050 - # Select classic/gallium drivers
1051 - if use classic || use gallium; then
1052 - eselect mesa set --auto
1053 - fi
1054 -
1055 - # Switch to mesa opencl
1056 - if use opencl; then
1057 - eselect opencl set --use-old ${PN}
1058 - fi
1059 -
1060 - # run omxregister-bellagio to make the OpenMAX drivers known system-wide
1061 - if use openmax; then
1062 - ebegin "Registering OpenMAX drivers"
1063 - BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \
1064 - OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \
1065 - omxregister-bellagio
1066 - eend $?
1067 - fi
1068 -
1069 - # warn about patent encumbered texture-float
1070 - if use !bindist; then
1071 - elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
1072 - elog "enabled. Please see patents.txt for an explanation."
1073 - fi
1074 -
1075 - if ! has_version media-libs/libtxc_dxtn; then
1076 - elog "Note that in order to have full S3TC support, it is necessary to install"
1077 - elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
1078 - elog "textures in some apps, and some others even require this to run."
1079 - fi
1080 -}
1081 -
1082 -pkg_prerm() {
1083 - if use openmax; then
1084 - rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister
1085 - fi
1086 -}
1087 -
1088 -# $1 - VIDEO_CARDS flag
1089 -# other args - names of DRI drivers to enable
1090 -# TODO: avoid code duplication for a more elegant implementation
1091 -driver_enable() {
1092 - case $# in
1093 - # for enabling unconditionally
1094 - 1)
1095 - DRI_DRIVERS+=",$1"
1096 - ;;
1097 - *)
1098 - if use $1; then
1099 - shift
1100 - for i in $@; do
1101 - DRI_DRIVERS+=",${i}"
1102 - done
1103 - fi
1104 - ;;
1105 - esac
1106 -}
1107 -
1108 -gallium_enable() {
1109 - case $# in
1110 - # for enabling unconditionally
1111 - 1)
1112 - GALLIUM_DRIVERS+=",$1"
1113 - ;;
1114 - *)
1115 - if use $1; then
1116 - shift
1117 - for i in $@; do
1118 - GALLIUM_DRIVERS+=",${i}"
1119 - done
1120 - fi
1121 - ;;
1122 - esac
1123 -}
1124 -
1125 -vulkan_enable() {
1126 - case $# in
1127 - # for enabling unconditionally
1128 - 1)
1129 - VULKAN_DRIVERS+=",$1"
1130 - ;;
1131 - *)
1132 - if use $1; then
1133 - shift
1134 - for i in $@; do
1135 - VULKAN_DRIVERS+=",${i}"
1136 - done
1137 - fi
1138 - ;;
1139 - esac
1140 -}
1141
1142 diff --git a/media-libs/mesa/mesa-17.1.8.ebuild b/media-libs/mesa/mesa-17.1.8.ebuild
1143 deleted file mode 100644
1144 index 935abcb79a1..00000000000
1145 --- a/media-libs/mesa/mesa-17.1.8.ebuild
1146 +++ /dev/null
1147 @@ -1,503 +0,0 @@
1148 -# Copyright 1999-2017 Gentoo Foundation
1149 -# Distributed under the terms of the GNU General Public License v2
1150 -
1151 -EAPI=6
1152 -
1153 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/mesa.git"
1154 -
1155 -if [[ ${PV} = 9999 ]]; then
1156 - GIT_ECLASS="git-r3"
1157 - EXPERIMENTAL="true"
1158 -fi
1159 -
1160 -PYTHON_COMPAT=( python2_7 )
1161 -
1162 -inherit autotools llvm multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS}
1163 -
1164 -OPENGL_DIR="xorg-x11"
1165 -
1166 -MY_P="${P/_/-}"
1167 -
1168 -DESCRIPTION="OpenGL-like graphic library for Linux"
1169 -HOMEPAGE="https://www.mesa3d.org/"
1170 -
1171 -if [[ $PV == 9999 ]]; then
1172 - SRC_URI=""
1173 -else
1174 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
1175 - KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
1176 -fi
1177 -
1178 -LICENSE="MIT"
1179 -SLOT="0"
1180 -RESTRICT="!bindist? ( bindist )"
1181 -
1182 -INTEL_CARDS="i915 i965 intel"
1183 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
1184 -VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno imx nouveau vc4 vivante vmware"
1185 -for card in ${VIDEO_CARDS}; do
1186 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
1187 -done
1188 -
1189 -IUSE="${IUSE_VIDEO_CARDS}
1190 - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 unwind
1191 - +llvm +nptl opencl osmesa pax_kernel openmax pic selinux vaapi valgrind
1192 - vdpau vulkan wayland xvmc xa"
1193 -
1194 -REQUIRED_USE="
1195 - d3d9? ( dri3 gallium )
1196 - llvm? ( gallium )
1197 - opencl? ( gallium llvm )
1198 - openmax? ( gallium )
1199 - gles1? ( egl )
1200 - gles2? ( egl )
1201 - vaapi? ( gallium )
1202 - vdpau? ( gallium )
1203 - vulkan? ( || ( video_cards_i965 video_cards_radeonsi )
1204 - video_cards_radeonsi? ( llvm ) )
1205 - wayland? ( egl gbm )
1206 - xa? ( gallium )
1207 - video_cards_freedreno? ( gallium )
1208 - video_cards_intel? ( classic )
1209 - video_cards_i915? ( || ( classic gallium ) )
1210 - video_cards_i965? ( classic )
1211 - video_cards_imx? ( gallium )
1212 - video_cards_nouveau? ( || ( classic gallium ) )
1213 - video_cards_radeon? ( || ( classic gallium )
1214 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
1215 - video_cards_r100? ( classic )
1216 - video_cards_r200? ( classic )
1217 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
1218 - video_cards_r600? ( gallium )
1219 - video_cards_radeonsi? ( gallium llvm )
1220 - video_cards_vc4? ( gallium )
1221 - video_cards_vivante? ( gallium gbm )
1222 - video_cards_vmware? ( gallium )
1223 -"
1224 -
1225 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.77"
1226 -# keep correct libdrm and dri2proto dep
1227 -# keep blocks in rdepend for binpkg
1228 -RDEPEND="
1229 - !<x11-base/xorg-server-1.7
1230 - !<=x11-proto/xf86driproto-2.0.3
1231 - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )
1232 - classic? ( app-eselect/eselect-mesa )
1233 - gallium? ( app-eselect/eselect-mesa )
1234 - >=app-eselect/eselect-opengl-1.3.0
1235 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
1236 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
1237 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
1238 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
1239 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
1240 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
1241 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
1242 - >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}]
1243 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
1244 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
1245 - llvm? (
1246 - video_cards_radeonsi? (
1247 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1248 - vulkan? ( >=sys-devel/llvm-3.9.0:=[${MULTILIB_USEDEP}] )
1249 - )
1250 - video_cards_r600? (
1251 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1252 - )
1253 - video_cards_radeon? (
1254 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1255 - )
1256 - >=sys-devel/llvm-3.6.0:=[${MULTILIB_USEDEP}]
1257 - )
1258 - opencl? (
1259 - app-eselect/eselect-opencl
1260 - dev-libs/libclc
1261 - virtual/libelf:0=[${MULTILIB_USEDEP}]
1262 - )
1263 - openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] )
1264 - vaapi? (
1265 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
1266 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
1267 - )
1268 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
1269 - wayland? ( >=dev-libs/wayland-1.11.0:=[${MULTILIB_USEDEP}] )
1270 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
1271 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
1272 -"
1273 -for card in ${INTEL_CARDS}; do
1274 - RDEPEND="${RDEPEND}
1275 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
1276 - "
1277 -done
1278 -
1279 -for card in ${RADEON_CARDS}; do
1280 - RDEPEND="${RDEPEND}
1281 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
1282 - "
1283 -done
1284 -RDEPEND="${RDEPEND}
1285 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
1286 -"
1287 -
1288 -# FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
1289 -# LLVM < 3.9 is out of the game
1290 -DEPEND="${RDEPEND}
1291 - ${PYTHON_DEPS}
1292 - llvm? (
1293 - video_cards_radeonsi? ( || (
1294 - sys-devel/llvm[llvm_targets_AMDGPU]
1295 - sys-devel/llvm[video_cards_radeon]
1296 - ) )
1297 - )
1298 - opencl? (
1299 - >=sys-devel/llvm-3.6.0:=[${MULTILIB_USEDEP}]
1300 - >=sys-devel/clang-3.6.0:=[${MULTILIB_USEDEP}]
1301 - >=sys-devel/gcc-4.6
1302 - )
1303 - sys-devel/gettext
1304 - virtual/pkgconfig
1305 - valgrind? ( dev-util/valgrind )
1306 - >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
1307 - dri3? (
1308 - >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
1309 - >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}]
1310 - )
1311 - >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}]
1312 - >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}]
1313 - >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}]
1314 - >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}]
1315 -"
1316 -[[ ${PV} == 9999 ]] && DEPEND+="
1317 - sys-devel/bison
1318 - sys-devel/flex
1319 - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
1320 -"
1321 -
1322 -S="${WORKDIR}/${MY_P}"
1323 -EGIT_CHECKOUT_DIR=${S}
1324 -
1325 -QA_WX_LOAD="
1326 -x86? (
1327 - !pic? (
1328 - usr/lib*/libglapi.so.0.0.0
1329 - usr/lib*/libGLESv1_CM.so.1.1.0
1330 - usr/lib*/libGLESv2.so.2.0.0
1331 - usr/lib*/libGL.so.1.2.0
1332 - usr/lib*/libOSMesa.so.8.0.0
1333 - )
1334 -)"
1335 -
1336 -pkg_setup() {
1337 - # warning message for bug 459306
1338 - if use llvm && has_version sys-devel/llvm[!debug=]; then
1339 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
1340 - ewarn "detected! This can cause problems. For details, see bug 459306."
1341 - fi
1342 -
1343 - if use llvm || use opencl; then
1344 - llvm_pkg_setup
1345 - fi
1346 - python-any-r1_pkg_setup
1347 -}
1348 -
1349 -src_prepare() {
1350 - [[ ${PV} == 9999 ]] && eautoreconf
1351 - eapply_user
1352 -}
1353 -
1354 -multilib_src_configure() {
1355 - local myconf
1356 -
1357 - if use classic; then
1358 - # Configurable DRI drivers
1359 - driver_enable swrast
1360 -
1361 - # Intel code
1362 - driver_enable video_cards_i915 i915
1363 - driver_enable video_cards_i965 i965
1364 - if ! use video_cards_i915 && \
1365 - ! use video_cards_i965; then
1366 - driver_enable video_cards_intel i915 i965
1367 - fi
1368 -
1369 - # Nouveau code
1370 - driver_enable video_cards_nouveau nouveau
1371 -
1372 - # ATI code
1373 - driver_enable video_cards_r100 radeon
1374 - driver_enable video_cards_r200 r200
1375 - if ! use video_cards_r100 && \
1376 - ! use video_cards_r200; then
1377 - driver_enable video_cards_radeon radeon r200
1378 - fi
1379 - fi
1380 -
1381 - if use egl; then
1382 - myconf+=" --with-egl-platforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm")"
1383 - fi
1384 -
1385 - if use gallium; then
1386 - myconf+="
1387 - $(use_enable d3d9 nine)
1388 - $(use_enable llvm)
1389 - $(use_enable openmax omx)
1390 - $(use_enable vaapi va)
1391 - $(use_enable vdpau)
1392 - $(use_enable xa)
1393 - $(use_enable xvmc)
1394 - "
1395 - use vaapi && myconf+=" --with-va-libdir=/usr/$(get_libdir)/va/drivers"
1396 -
1397 - gallium_enable swrast
1398 - gallium_enable video_cards_vc4 vc4
1399 - gallium_enable video_cards_vivante etnaviv
1400 - gallium_enable video_cards_vmware svga
1401 - gallium_enable video_cards_nouveau nouveau
1402 - gallium_enable video_cards_i915 i915
1403 - gallium_enable video_cards_imx imx
1404 - if ! use video_cards_i915 && \
1405 - ! use video_cards_i965; then
1406 - gallium_enable video_cards_intel i915
1407 - fi
1408 -
1409 - gallium_enable video_cards_r300 r300
1410 - gallium_enable video_cards_r600 r600
1411 - gallium_enable video_cards_radeonsi radeonsi
1412 - if ! use video_cards_r300 && \
1413 - ! use video_cards_r600; then
1414 - gallium_enable video_cards_radeon r300 r600
1415 - fi
1416 -
1417 - gallium_enable video_cards_freedreno freedreno
1418 - # opencl stuff
1419 - if use opencl; then
1420 - myconf+="
1421 - $(use_enable opencl)
1422 - --with-clang-libdir="${EPREFIX}/usr/lib"
1423 - "
1424 - fi
1425 - fi
1426 -
1427 - if use vulkan; then
1428 - vulkan_enable video_cards_i965 intel
1429 - vulkan_enable video_cards_radeonsi radeon
1430 - fi
1431 -
1432 - # x86 hardened pax_kernel needs glx-rts, bug 240956
1433 - if [[ ${ABI} == x86 ]]; then
1434 - myconf+=" $(use_enable pax_kernel glx-read-only-text)"
1435 - fi
1436 -
1437 - # on abi_x86_32 hardened we need to have asm disable
1438 - if [[ ${ABI} == x86* ]] && use pic; then
1439 - myconf+=" --disable-asm"
1440 - fi
1441 -
1442 - if use gallium; then
1443 - myconf+=" $(use_enable osmesa gallium-osmesa)"
1444 - else
1445 - myconf+=" $(use_enable osmesa)"
1446 - fi
1447 -
1448 - # build fails with BSD indent, bug #428112
1449 - use userland_GNU || export INDENT=cat
1450 -
1451 - ECONF_SOURCE="${S}" \
1452 - econf \
1453 - --enable-dri \
1454 - --enable-glx \
1455 - --enable-shared-glapi \
1456 - $(use_enable !bindist texture-float) \
1457 - $(use_enable d3d9 nine) \
1458 - $(use_enable debug) \
1459 - $(use_enable dri3) \
1460 - $(use_enable egl) \
1461 - $(use_enable gbm) \
1462 - $(use_enable gles1) \
1463 - $(use_enable gles2) \
1464 - $(use_enable nptl glx-tls) \
1465 - $(use_enable unwind libunwind) \
1466 - --enable-valgrind=$(usex valgrind auto no) \
1467 - --enable-llvm-shared-libs \
1468 - --with-dri-drivers=${DRI_DRIVERS} \
1469 - --with-gallium-drivers=${GALLIUM_DRIVERS} \
1470 - --with-vulkan-drivers=${VULKAN_DRIVERS} \
1471 - PYTHON2="${PYTHON}" \
1472 - ${myconf}
1473 -}
1474 -
1475 -multilib_src_install() {
1476 - emake install DESTDIR="${D}"
1477 -
1478 - if use classic || use gallium; then
1479 - ebegin "Moving DRI/Gallium drivers for dynamic switching"
1480 - local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
1481 - keepdir /usr/$(get_libdir)/dri
1482 - dodir /usr/$(get_libdir)/mesa
1483 - for x in ${gallium_drivers[@]}; do
1484 - if [ -f "$(get_libdir)/gallium/${x}" ]; then
1485 - mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
1486 - || die "Failed to move ${x}"
1487 - fi
1488 - done
1489 - if use classic; then
1490 - emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install
1491 - fi
1492 - for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
1493 - if [ -f ${x} -o -L ${x} ]; then
1494 - mv -f "${x}" "${x/dri/mesa}" \
1495 - || die "Failed to move ${x}"
1496 - fi
1497 - done
1498 - pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
1499 - ln -s ../mesa/*.so . || die "Creating symlink failed"
1500 - # remove symlinks to drivers known to eselect
1501 - for x in ${gallium_drivers[@]}; do
1502 - if [ -f ${x} -o -L ${x} ]; then
1503 - rm "${x}" || die "Failed to remove ${x}"
1504 - fi
1505 - done
1506 - popd
1507 - eend $?
1508 - fi
1509 - if use opencl; then
1510 - ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
1511 - local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
1512 - dodir ${cl_dir}/{lib,include}
1513 - if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
1514 - mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
1515 - "${ED}"${cl_dir}
1516 - fi
1517 - if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
1518 - mv -f "${ED}"/usr/include/CL \
1519 - "${ED}"${cl_dir}/include
1520 - fi
1521 - eend $?
1522 - fi
1523 -
1524 - if use openmax; then
1525 - echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx"
1526 - doenvd "${T}"/99mesaxdgomx
1527 - keepdir /usr/share/mesa/xdg
1528 - fi
1529 -}
1530 -
1531 -multilib_src_install_all() {
1532 - find "${ED}" -name '*.la' -delete
1533 - einstalldocs
1534 -
1535 - if use !bindist; then
1536 - dodoc docs/patents.txt
1537 - fi
1538 -
1539 - # Install config file for eselect mesa
1540 - insinto /usr/share/mesa
1541 - newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
1542 -}
1543 -
1544 -multilib_src_test() {
1545 - if use llvm; then
1546 - 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'
1547 - pushd src/gallium/drivers/llvmpipe >/dev/null || die
1548 - emake ${llvm_tests}
1549 - pax-mark m ${llvm_tests}
1550 - popd >/dev/null || die
1551 - fi
1552 - emake check
1553 -}
1554 -
1555 -pkg_postinst() {
1556 - # Switch to the xorg implementation.
1557 - echo
1558 - eselect opengl set --use-old ${OPENGL_DIR}
1559 -
1560 - # Select classic/gallium drivers
1561 - if use classic || use gallium; then
1562 - eselect mesa set --auto
1563 - fi
1564 -
1565 - # Switch to mesa opencl
1566 - if use opencl; then
1567 - eselect opencl set --use-old ${PN}
1568 - fi
1569 -
1570 - # run omxregister-bellagio to make the OpenMAX drivers known system-wide
1571 - if use openmax; then
1572 - ebegin "Registering OpenMAX drivers"
1573 - BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \
1574 - OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \
1575 - omxregister-bellagio
1576 - eend $?
1577 - fi
1578 -
1579 - # warn about patent encumbered texture-float
1580 - if use !bindist; then
1581 - elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
1582 - elog "enabled. Please see patents.txt for an explanation."
1583 - fi
1584 -
1585 - if ! has_version media-libs/libtxc_dxtn; then
1586 - elog "Note that in order to have full S3TC support, it is necessary to install"
1587 - elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
1588 - elog "textures in some apps, and some others even require this to run."
1589 - fi
1590 -}
1591 -
1592 -pkg_prerm() {
1593 - if use openmax; then
1594 - rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister
1595 - fi
1596 -}
1597 -
1598 -# $1 - VIDEO_CARDS flag
1599 -# other args - names of DRI drivers to enable
1600 -# TODO: avoid code duplication for a more elegant implementation
1601 -driver_enable() {
1602 - case $# in
1603 - # for enabling unconditionally
1604 - 1)
1605 - DRI_DRIVERS+=",$1"
1606 - ;;
1607 - *)
1608 - if use $1; then
1609 - shift
1610 - for i in $@; do
1611 - DRI_DRIVERS+=",${i}"
1612 - done
1613 - fi
1614 - ;;
1615 - esac
1616 -}
1617 -
1618 -gallium_enable() {
1619 - case $# in
1620 - # for enabling unconditionally
1621 - 1)
1622 - GALLIUM_DRIVERS+=",$1"
1623 - ;;
1624 - *)
1625 - if use $1; then
1626 - shift
1627 - for i in $@; do
1628 - GALLIUM_DRIVERS+=",${i}"
1629 - done
1630 - fi
1631 - ;;
1632 - esac
1633 -}
1634 -
1635 -vulkan_enable() {
1636 - case $# in
1637 - # for enabling unconditionally
1638 - 1)
1639 - VULKAN_DRIVERS+=",$1"
1640 - ;;
1641 - *)
1642 - if use $1; then
1643 - shift
1644 - for i in $@; do
1645 - VULKAN_DRIVERS+=",${i}"
1646 - done
1647 - fi
1648 - ;;
1649 - esac
1650 -}
1651
1652 diff --git a/media-libs/mesa/metadata.xml b/media-libs/mesa/metadata.xml
1653 index b7a97ca0928..8e1144c23b4 100644
1654 --- a/media-libs/mesa/metadata.xml
1655 +++ b/media-libs/mesa/metadata.xml
1656 @@ -12,16 +12,12 @@
1657 <flag name="dri3">Enable DRI3 support.</flag>
1658 <flag name="egl">Enable EGL support.</flag>
1659 <flag name="gallium">Build drivers based on Gallium3D, the new architecture for 3D graphics drivers.</flag>
1660 - <flag name="gcrypt">Use <pkg>dev-libs/libgcrypt</pkg> for low level sha1 utility functions.</flag>
1661 <flag name="gbm">Enable the Graphics Buffer Manager for EGL on KMS.</flag>
1662 <flag name="gles1">Enable GLESv1 support.</flag>
1663 <flag name="gles2">Enable GLESv2 support.</flag>
1664 - <flag name="libressl">Use <pkg>dev-libs/libressl</pkg> for low level sha1 utility functions.</flag>
1665 <flag name="llvm">Enable LLVM backend for Gallium3D.</flag>
1666 - <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> for low level sha1 utility functions.</flag>
1667 <flag name="opencl">Enable the Clover Gallium OpenCL state tracker.</flag>
1668 <flag name="openmax">Enable OpenMAX video decode/encode acceleration for Gallium3D.</flag>
1669 - <flag name="openssl">Use <pkg>dev-libs/openssl</pkg> for low level sha1 utility functions. May cause issues with games from Steam.</flag>
1670 <flag name="osmesa">Build the Mesa library for off-screen rendering.</flag>
1671 <flag name="pax_kernel">Enable if the user plans to run the package under a pax enabled hardened kernel</flag>
1672 <flag name="pic">disable optimized assembly code that is not PIC friendly</flag>