Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: media-libs/mesa/
Date: Fri, 09 Feb 2018 04:34:33
Message-Id: 1518150831.9d374ff78316af53d1925c91c6715a25523a747b.lluixhi@gentoo
1 commit: 9d374ff78316af53d1925c91c6715a25523a747b
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 9 04:33:51 2018 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Fri Feb 9 04:33:51 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=9d374ff7
7
8 media-libs/mesa: version bump to 18.0.0_rc4
9
10 media-libs/mesa/Manifest | 3 +-
11 media-libs/mesa/mesa-18.0.0_rc3.ebuild | 589 ---------------------
12 ...sa-18.0.0_rc2.ebuild => mesa-18.0.0_rc4.ebuild} | 0
13 3 files changed, 1 insertion(+), 591 deletions(-)
14
15 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
16 index a2275f9..8568ef1 100644
17 --- a/media-libs/mesa/Manifest
18 +++ b/media-libs/mesa/Manifest
19 @@ -1,5 +1,4 @@
20 DIST mesa-17.1.10.tar.xz 9872168 BLAKE2B 205ece7b016fcc1de5bb72711775cd8f4b90f5d6c26db77d1576752fcd4a99a36cbcd902bb6ad1041d476d1c3b32479baceb4087c902ce598ede3d57851c6b9d SHA512 728dbd41f5d3a7a1c33fc18c08a8b8eb1f6d236c5f00781209f46b144dd66a27ecd723ab1635868b7ad77de3a18ad53f1a88c932f17c0be97605a2775e3b3a9b
21 DIST mesa-17.2.8.tar.xz 10393304 BLAKE2B 558321eefc6d599aaedfe468f03c2f1f99b5c96c253637db00b7da3265ec38e031d15f77623db1f4408f15912c93347e0f5769b01d92329be7f55e45f6f6bf75 SHA512 ce05ad2d3e1b55ffe9c8ef65023a840c04b29014c7876b23182a6a6dd0b768f248ec21bc5b738d21b846f59f4b73501a9fe834d6a87e7dba16c6f821008e0f01
22 DIST mesa-17.3.3.tar.xz 10637708 BLAKE2B a2cec4abc58eb71c1ec92d073ac3a128e1f993f69b163c9f6e474fef4520fe074d84ca8d972a7822a76226e132230f6e7fac320b940ea3462553d398ef6bcfce SHA512 7ac8ecdcf3b2b43239835bc2c5da7f2730f80a2db945fe00df03d1548920fbc074dd4806ddd345a1ce682fd29d75b2209ef81b6b06e657f9c8ae8622a34a03c1
23 -DIST mesa-18.0.0-rc2.tar.xz 10962300 BLAKE2B 89444a46261d837bd5c7bc54898ebdafe58e863d3532bd80f6592432d2925317fc0ac144dd55862a249d6390efc3955942dc2980ce87e589b9360de61a1f6148 SHA512 aada4caf4c2021bc1e7c071b32ed0ccbbbfe415bc1cb5a80eee3911b1b11a2bd87a10e99c5a152790709488afbdb60e87b4b66c2ca22c0cf89c029fb10c6e8b3
24 -DIST mesa-18.0.0-rc3.tar.xz 10964880 BLAKE2B 4887e2962b3d1c328734af9effe33cac7fd69c888b3c500d28423c62bae0a26fe58396c8371b1e0861e68a90c03be0029d5a32019efa920f40908b0b054d7c6c SHA512 62e7491cdd5a6651c2bb7c0268685654d5376a68135c1904c684f716805695840c0a16fcff324c75f3ec000bebfa835b3da9a13c479b612da715b171fe68bc0b
25 +DIST mesa-18.0.0-rc4.tar.xz 11027596 BLAKE2B 96554acd69636b91d1b79e7fefa4ba6e3f701ef7ef6c16718493070d62ab41c7bbd66e2f4d4a97fac8c236ac4c9150b2ce41e4e57b865fff6122b3f60b047e25 SHA512 91dd0a4396715a7896fc47aabf38c4b486df3b50c9764795805550ef01724d2e2281ba9b000e82760ea0e199c58d8c9943dbc732b2adab46554ff5c2f9e2ece1
26
27 diff --git a/media-libs/mesa/mesa-18.0.0_rc3.ebuild b/media-libs/mesa/mesa-18.0.0_rc3.ebuild
28 deleted file mode 100644
29 index 626b7c5..0000000
30 --- a/media-libs/mesa/mesa-18.0.0_rc3.ebuild
31 +++ /dev/null
32 @@ -1,589 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/mesa/mesa.git"
39 -
40 -if [[ ${PV} = 9999 ]]; then
41 - GIT_ECLASS="git-r3"
42 - EXPERIMENTAL="true"
43 -fi
44 -
45 -PYTHON_COMPAT=( python2_7 )
46 -
47 -inherit autotools llvm multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS}
48 -
49 -OPENGL_DIR="xorg-x11"
50 -
51 -MY_P="${P/_/-}"
52 -
53 -DESCRIPTION="OpenGL-like graphic library for Linux"
54 -HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
55 -
56 -if [[ $PV == 9999 ]]; then
57 - SRC_URI=""
58 -else
59 - SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
60 - KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~sh ~sparc ~x86"
61 -fi
62 -
63 -LICENSE="MIT"
64 -SLOT="0"
65 -RESTRICT="!bindist? ( bindist )"
66 -
67 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
68 -VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
69 -for card in ${VIDEO_CARDS}; do
70 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
71 -done
72 -
73 -IUSE="${IUSE_VIDEO_CARDS}
74 - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 unwind
75 - +llvm +nptl opencl osmesa pax_kernel openmax pic selinux vaapi valgrind
76 - vdpau vulkan wayland xvmc xa"
77 -
78 -REQUIRED_USE="
79 - d3d9? ( dri3 gallium )
80 - llvm? ( gallium )
81 - opencl? ( gallium llvm )
82 - openmax? ( gallium )
83 - gles1? ( egl )
84 - gles2? ( egl )
85 - vaapi? ( gallium )
86 - vdpau? ( gallium )
87 - vulkan? ( || ( video_cards_i965 video_cards_radeonsi )
88 - video_cards_radeonsi? ( llvm ) )
89 - wayland? ( egl gbm )
90 - xa? ( gallium )
91 - video_cards_freedreno? ( gallium )
92 - video_cards_intel? ( classic )
93 - video_cards_i915? ( || ( classic gallium ) )
94 - video_cards_i965? ( classic )
95 - video_cards_imx? ( gallium video_cards_vivante )
96 - video_cards_nouveau? ( || ( classic gallium ) )
97 - video_cards_radeon? ( || ( classic gallium )
98 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
99 - video_cards_r100? ( classic )
100 - video_cards_r200? ( classic )
101 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
102 - video_cards_r600? ( gallium )
103 - video_cards_radeonsi? ( gallium llvm )
104 - video_cards_vc4? ( gallium )
105 - video_cards_virgl? ( gallium )
106 - video_cards_vivante? ( gallium gbm )
107 - video_cards_vmware? ( gallium )
108 -"
109 -
110 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.89"
111 -# keep correct libdrm and dri2proto dep
112 -# keep blocks in rdepend for binpkg
113 -RDEPEND="
114 - !<x11-base/xorg-server-1.7
115 - !<=x11-proto/xf86driproto-2.0.3
116 - abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )
117 - classic? ( app-eselect/eselect-mesa )
118 - gallium? ( app-eselect/eselect-mesa )
119 - >=app-eselect/eselect-opengl-1.3.0
120 - >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
121 - >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
122 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
123 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
124 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
125 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
126 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
127 - >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}]
128 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
129 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
130 - llvm? (
131 - video_cards_radeonsi? (
132 - virtual/libelf:0=[${MULTILIB_USEDEP}]
133 - )
134 - video_cards_r600? (
135 - virtual/libelf:0=[${MULTILIB_USEDEP}]
136 - )
137 - video_cards_radeon? (
138 - virtual/libelf:0=[${MULTILIB_USEDEP}]
139 - )
140 - )
141 - opencl? (
142 - app-eselect/eselect-opencl
143 - dev-libs/libclc
144 - virtual/libelf:0=[${MULTILIB_USEDEP}]
145 - )
146 - openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] )
147 - vaapi? (
148 - >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
149 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
150 - )
151 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
152 - wayland? (
153 - >=dev-libs/wayland-1.11.0:=[${MULTILIB_USEDEP}]
154 - >=dev-libs/wayland-protocols-1.8
155 - )
156 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
157 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
158 -
159 - video_cards_intel? (
160 - !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
161 - )
162 - video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
163 -"
164 -for card in ${RADEON_CARDS}; do
165 - RDEPEND="${RDEPEND}
166 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
167 - "
168 -done
169 -RDEPEND="${RDEPEND}
170 - video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
171 -"
172 -
173 -# Please keep the LLVM dependency block separate. Since LLVM is slotted,
174 -# we need to *really* make sure we're not pulling one than more slot
175 -# simultaneously.
176 -#
177 -# How to use it:
178 -# 1. List all the working slots (with min versions) in ||, newest first.
179 -# 2. Update the := to specify *max* version, e.g. < 7.
180 -# 3. Specify LLVM_MAX_SLOT, e.g. 6.
181 -LLVM_DEPSTR="
182 - || (
183 - sys-devel/llvm:7[${MULTILIB_USEDEP}]
184 - sys-devel/llvm:6[${MULTILIB_USEDEP}]
185 - sys-devel/llvm:5[${MULTILIB_USEDEP}]
186 - sys-devel/llvm:4[${MULTILIB_USEDEP}]
187 - >=sys-devel/llvm-3.9.0:0[${MULTILIB_USEDEP}]
188 - )
189 - sys-devel/llvm:=[${MULTILIB_USEDEP}]
190 -"
191 -LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
192 -CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
193 -CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
194 -RDEPEND="${RDEPEND}
195 - llvm? (
196 - opencl? (
197 - video_cards_r600? (
198 - ${CLANG_DEPSTR_AMDGPU}
199 - )
200 - !video_cards_r600? (
201 - video_cards_radeonsi? (
202 - ${CLANG_DEPSTR_AMDGPU}
203 - )
204 - )
205 - !video_cards_r600? (
206 - !video_cards_radeonsi? (
207 - video_cards_radeon? (
208 - ${CLANG_DEPSTR_AMDGPU}
209 - )
210 - )
211 - )
212 - !video_cards_r600? (
213 - !video_cards_radeon? (
214 - !video_cards_radeonsi? (
215 - ${CLANG_DEPSTR}
216 - )
217 - )
218 - )
219 - )
220 - !opencl? (
221 - video_cards_r600? (
222 - ${LLVM_DEPSTR_AMDGPU}
223 - )
224 - !video_cards_r600? (
225 - video_cards_radeonsi? (
226 - ${LLVM_DEPSTR_AMDGPU}
227 - )
228 - )
229 - !video_cards_r600? (
230 - !video_cards_radeonsi? (
231 - video_cards_radeon? (
232 - ${LLVM_DEPSTR_AMDGPU}
233 - )
234 - )
235 - )
236 - !video_cards_r600? (
237 - !video_cards_radeon? (
238 - !video_cards_radeonsi? (
239 - ${LLVM_DEPSTR}
240 - )
241 - )
242 - )
243 - )
244 - )
245 -"
246 -unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
247 -
248 -DEPEND="${RDEPEND}
249 - ${PYTHON_DEPS}
250 - opencl? (
251 - >=sys-devel/gcc-4.6
252 - )
253 - sys-devel/gettext
254 - virtual/pkgconfig
255 - valgrind? ( dev-util/valgrind )
256 - >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
257 - dri3? (
258 - >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
259 - >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}]
260 - )
261 - >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}]
262 - >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}]
263 - >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}]
264 - >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}]
265 - vulkan? (
266 - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
267 - )
268 -"
269 -[[ ${PV} == 9999 ]] && DEPEND+="
270 - sys-devel/bison
271 - sys-devel/flex
272 - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
273 -"
274 -
275 -S="${WORKDIR}/${MY_P}"
276 -EGIT_CHECKOUT_DIR=${S}
277 -
278 -QA_WX_LOAD="
279 -x86? (
280 - !pic? (
281 - usr/lib*/libglapi.so.0.0.0
282 - usr/lib*/libGLESv1_CM.so.1.1.0
283 - usr/lib*/libGLESv2.so.2.0.0
284 - usr/lib*/libGL.so.1.2.0
285 - usr/lib*/libOSMesa.so.8.0.0
286 - )
287 -)"
288 -
289 -llvm_check_deps() {
290 - local flags=${MULTILIB_USEDEP}
291 - if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
292 - then
293 - flags+=",llvm_targets_AMDGPU(-)"
294 - fi
295 -
296 - if use opencl; then
297 - has_version "sys-devel/clang[${flags}]" || return 1
298 - fi
299 - has_version "sys-devel/llvm[${flags}]"
300 -}
301 -
302 -pkg_setup() {
303 - # warning message for bug 459306
304 - if use llvm && has_version sys-devel/llvm[!debug=]; then
305 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
306 - ewarn "detected! This can cause problems. For details, see bug 459306."
307 - fi
308 -
309 - if use llvm; then
310 - llvm_pkg_setup
311 - fi
312 - python-any-r1_pkg_setup
313 -}
314 -
315 -src_prepare() {
316 - eapply "${FILESDIR}"/${PN}-17-musl_endian.patch
317 - eapply "${FILESDIR}"/${PN}-17-execinfo.patch
318 - eapply "${FILESDIR}"/${PN}-17-musl-string_h.patch
319 - eapply "${FILESDIR}"/${PN}-17-musl-invocation_name.patch
320 - eapply "${FILESDIR}"/${PN}-18-musl-pthread.patch
321 -
322 - eautoreconf
323 -
324 - eapply_user
325 -}
326 -
327 -multilib_src_configure() {
328 - local myconf
329 -
330 - if use classic; then
331 - # Configurable DRI drivers
332 - driver_enable swrast
333 -
334 - # Intel code
335 - driver_enable video_cards_i915 i915
336 - driver_enable video_cards_i965 i965
337 - if ! use video_cards_i915 && \
338 - ! use video_cards_i965; then
339 - driver_enable video_cards_intel i915 i965
340 - fi
341 -
342 - # Nouveau code
343 - driver_enable video_cards_nouveau nouveau
344 -
345 - # ATI code
346 - driver_enable video_cards_r100 radeon
347 - driver_enable video_cards_r200 r200
348 - if ! use video_cards_r100 && \
349 - ! use video_cards_r200; then
350 - driver_enable video_cards_radeon radeon r200
351 - fi
352 - fi
353 -
354 - if use egl; then
355 - myconf+=" --with-platforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm")"
356 - fi
357 -
358 - if use gallium; then
359 - myconf+="
360 - $(use_enable d3d9 nine)
361 - $(use_enable llvm)
362 - $(use_enable openmax omx-bellagio)
363 - $(use_enable vaapi va)
364 - $(use_enable vdpau)
365 - $(use_enable xa)
366 - $(use_enable xvmc)
367 - "
368 - use vaapi && myconf+=" --with-va-libdir=/usr/$(get_libdir)/va/drivers"
369 -
370 - gallium_enable swrast
371 - gallium_enable video_cards_vc4 vc4
372 - gallium_enable video_cards_vivante etnaviv
373 - gallium_enable video_cards_vmware svga
374 - gallium_enable video_cards_nouveau nouveau
375 - gallium_enable video_cards_i915 i915
376 - gallium_enable video_cards_imx imx
377 - if ! use video_cards_i915 && \
378 - ! use video_cards_i965; then
379 - gallium_enable video_cards_intel i915
380 - fi
381 -
382 - gallium_enable video_cards_r300 r300
383 - gallium_enable video_cards_r600 r600
384 - gallium_enable video_cards_radeonsi radeonsi
385 - if ! use video_cards_r300 && \
386 - ! use video_cards_r600; then
387 - gallium_enable video_cards_radeon r300 r600
388 - fi
389 -
390 - gallium_enable video_cards_freedreno freedreno
391 - # opencl stuff
392 - if use opencl; then
393 - myconf+="
394 - $(use_enable opencl)
395 - --with-clang-libdir="${EPREFIX}/usr/lib"
396 - "
397 - fi
398 -
399 - gallium_enable video_cards_virgl virgl
400 - fi
401 -
402 - if use vulkan; then
403 - vulkan_enable video_cards_i965 intel
404 - vulkan_enable video_cards_radeonsi radeon
405 - fi
406 -
407 - # x86 hardened pax_kernel needs glx-rts, bug 240956
408 - if [[ ${ABI} == x86 ]]; then
409 - myconf+=" $(use_enable pax_kernel glx-read-only-text)"
410 - fi
411 -
412 - # on abi_x86_32 hardened we need to have asm disable
413 - if [[ ${ABI} == x86* ]] && use pic; then
414 - myconf+=" --disable-asm"
415 - fi
416 -
417 - if use gallium; then
418 - myconf+=" $(use_enable osmesa gallium-osmesa)"
419 - else
420 - myconf+=" $(use_enable osmesa)"
421 - fi
422 -
423 - # build fails with BSD indent, bug #428112
424 - use userland_GNU || export INDENT=cat
425 -
426 - ECONF_SOURCE="${S}" \
427 - econf \
428 - --enable-dri \
429 - --enable-glx \
430 - --enable-shared-glapi \
431 - $(use_enable !bindist texture-float) \
432 - $(use_enable d3d9 nine) \
433 - $(use_enable debug) \
434 - $(use_enable dri3) \
435 - $(use_enable egl) \
436 - $(use_enable gbm) \
437 - $(use_enable gles1) \
438 - $(use_enable gles2) \
439 - $(use_enable nptl glx-tls) \
440 - $(use_enable unwind libunwind) \
441 - --enable-valgrind=$(usex valgrind auto no) \
442 - --enable-llvm-shared-libs \
443 - --disable-opencl-icd \
444 - --with-dri-drivers=${DRI_DRIVERS} \
445 - --with-gallium-drivers=${GALLIUM_DRIVERS} \
446 - --with-vulkan-drivers=${VULKAN_DRIVERS} \
447 - PYTHON2="${PYTHON}" \
448 - ${myconf}
449 -}
450 -
451 -multilib_src_install() {
452 - emake install DESTDIR="${D}"
453 -
454 - if use classic || use gallium; then
455 - ebegin "Moving DRI/Gallium drivers for dynamic switching"
456 - local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
457 - keepdir /usr/$(get_libdir)/dri
458 - dodir /usr/$(get_libdir)/mesa
459 - for x in ${gallium_drivers[@]}; do
460 - if [ -f "$(get_libdir)/gallium/${x}" ]; then
461 - mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
462 - || die "Failed to move ${x}"
463 - fi
464 - done
465 - if use classic; then
466 - emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install
467 - fi
468 - for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
469 - if [ -f ${x} -o -L ${x} ]; then
470 - mv -f "${x}" "${x/dri/mesa}" \
471 - || die "Failed to move ${x}"
472 - fi
473 - done
474 - pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
475 - ln -s ../mesa/*.so . || die "Creating symlink failed"
476 - # remove symlinks to drivers known to eselect
477 - for x in ${gallium_drivers[@]}; do
478 - if [ -f ${x} -o -L ${x} ]; then
479 - rm "${x}" || die "Failed to remove ${x}"
480 - fi
481 - done
482 - popd
483 - eend $?
484 - fi
485 - if use opencl; then
486 - ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
487 - local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
488 - dodir ${cl_dir}/{lib,include}
489 - if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
490 - mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
491 - "${ED}"${cl_dir}
492 - fi
493 - if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
494 - mv -f "${ED}"/usr/include/CL \
495 - "${ED}"${cl_dir}/include
496 - fi
497 - eend $?
498 - fi
499 -
500 - if use openmax; then
501 - echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx"
502 - doenvd "${T}"/99mesaxdgomx
503 - keepdir /usr/share/mesa/xdg
504 - fi
505 -}
506 -
507 -multilib_src_install_all() {
508 - find "${ED}" -name '*.la' -delete
509 - einstalldocs
510 -
511 - if use !bindist; then
512 - dodoc docs/patents.txt
513 - fi
514 -
515 - # Install config file for eselect mesa
516 - insinto /usr/share/mesa
517 - newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
518 -}
519 -
520 -multilib_src_test() {
521 - if use llvm; then
522 - 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'
523 - pushd src/gallium/drivers/llvmpipe >/dev/null || die
524 - emake ${llvm_tests}
525 - pax-mark m ${llvm_tests}
526 - popd >/dev/null || die
527 - fi
528 - emake check
529 -}
530 -
531 -pkg_postinst() {
532 - # Switch to the xorg implementation.
533 - echo
534 - eselect opengl set --use-old ${OPENGL_DIR}
535 -
536 - # Select classic/gallium drivers
537 - if use classic || use gallium; then
538 - eselect mesa set --auto
539 - fi
540 -
541 - # Switch to mesa opencl
542 - if use opencl; then
543 - eselect opencl set --use-old ${PN}
544 - fi
545 -
546 - # run omxregister-bellagio to make the OpenMAX drivers known system-wide
547 - if use openmax; then
548 - ebegin "Registering OpenMAX drivers"
549 - BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \
550 - OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \
551 - omxregister-bellagio
552 - eend $?
553 - fi
554 -
555 - # warn about patent encumbered texture-float
556 - if use !bindist; then
557 - elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
558 - elog "enabled. Please see /usr/share/doc/${P}/patents.txt.bz2 for an"
559 - elog "explanation."
560 - fi
561 -}
562 -
563 -pkg_prerm() {
564 - if use openmax; then
565 - rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister
566 - fi
567 -}
568 -
569 -# $1 - VIDEO_CARDS flag
570 -# other args - names of DRI drivers to enable
571 -# TODO: avoid code duplication for a more elegant implementation
572 -driver_enable() {
573 - case $# in
574 - # for enabling unconditionally
575 - 1)
576 - DRI_DRIVERS+=",$1"
577 - ;;
578 - *)
579 - if use $1; then
580 - shift
581 - for i in $@; do
582 - DRI_DRIVERS+=",${i}"
583 - done
584 - fi
585 - ;;
586 - esac
587 -}
588 -
589 -gallium_enable() {
590 - case $# in
591 - # for enabling unconditionally
592 - 1)
593 - GALLIUM_DRIVERS+=",$1"
594 - ;;
595 - *)
596 - if use $1; then
597 - shift
598 - for i in $@; do
599 - GALLIUM_DRIVERS+=",${i}"
600 - done
601 - fi
602 - ;;
603 - esac
604 -}
605 -
606 -vulkan_enable() {
607 - case $# in
608 - # for enabling unconditionally
609 - 1)
610 - VULKAN_DRIVERS+=",$1"
611 - ;;
612 - *)
613 - if use $1; then
614 - shift
615 - for i in $@; do
616 - VULKAN_DRIVERS+=",${i}"
617 - done
618 - fi
619 - ;;
620 - esac
621 -}
622
623 diff --git a/media-libs/mesa/mesa-18.0.0_rc2.ebuild b/media-libs/mesa/mesa-18.0.0_rc4.ebuild
624 similarity index 100%
625 rename from media-libs/mesa/mesa-18.0.0_rc2.ebuild
626 rename to media-libs/mesa/mesa-18.0.0_rc4.ebuild