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/
Date: Fri, 03 Mar 2017 00:30:54
Message-Id: 1488501031.c11cb53163d92aa890a620e6d1ccc017890aedd8.mattst88@gentoo
1 commit: c11cb53163d92aa890a620e6d1ccc017890aedd8
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 3 00:30:13 2017 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 00:30:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c11cb531
7
8 media-libs/mesa: Drop old version 13.0.4.
9
10 media-libs/mesa/Manifest | 1 -
11 media-libs/mesa/mesa-13.0.4.ebuild | 504 -------------------------------------
12 2 files changed, 505 deletions(-)
13
14 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
15 index 0e2e95024ac..db5b9f13264 100644
16 --- a/media-libs/mesa/Manifest
17 +++ b/media-libs/mesa/Manifest
18 @@ -3,6 +3,5 @@ DIST mesa-11.0.9.tar.xz 7282648 SHA256 a1262ff1c66a16ccf341186cf0e57b306b8589eb2
19 DIST mesa-11.2.2.tar.xz 7860932 SHA256 40e148812388ec7c6d7b6657d5a16e2e8dabba8b97ddfceea5197947647bdfb4 SHA512 fd1fcb1bc97e52784a4b3dedfd8c8ba95bc1b03a62b132d2e16154d076be7a6fabbca1bcba705a7916a1507d811d7f3e6c3488aa386d5e63891282fb1713ce52 WHIRLPOOL 96ecc968b2dad4d0574751565c8fbd383da7e30eb2b805f964d31c11633bfb9e27c461150bd436cb4400bde1c4f28f326f37a3f942b4d13b03ddf49e5ce4620e
20 DIST mesa-12.0.1.tar.xz 8571144 SHA256 bab24fb79f78c876073527f515ed871fc9c81d816f66c8a0b051d8d653896389 SHA512 11898336478d1f5bd3946d695b9599647c0b9084ad8890b4fa89daa922a217e5ca6d8b72f5801e362c3dd7723382f2daaa655b54f65a6d088ad8cfdb85f10023 WHIRLPOOL 9923990fc35142b8c877cbbfdfa7d362ae94c8c637360f28e348943dc6f380bdf5aee944c04da6337994f0f15790c8d1a55bea1f0b00afa780305e5862c78601
21 DIST mesa-12.0.6.tar.xz 8662900 SHA256 7d6da9744c1022a4c2ab6ad01a206984d00443fb691568011d01b3dd97e36448 SHA512 2492044f6a3c9d98937146e3a3bd8e262cb1edbb11c3e6d5114fe8c83aa9c846ec3f266b9712adb66fbe080121043772899ca18ddcc3b7a838a84417b6701aae WHIRLPOOL b9993201880536de33852f767001c93f35e6bbc851aac2f2f261b45e9c8a1614b9ad1d121eeef1e737e2943195dbe7489bf34e8f79d705eac2489e59b3206c9a
22 -DIST mesa-13.0.4.tar.xz 9164612 SHA256 a95d7ce8f7bd5f88585e4be3144a341236d8c0fc91f6feaec59bb8ba3120e726 SHA512 5f4d8ad12389a32c028cf3c5289fe285892e2b241220c5c6d04cda5748240e8b13289c4537ac7a6b58d87d6ca4111031e15ad37c9b008777be71918e42e88817 WHIRLPOOL 041cb8db42cd2126b108f8e5d0f105f96882bb4f75808f859d4789b05ffc2b6d98a2b348ebff8abfa507ffb71e7ec757e7dd85ca81e77a264f477296f40b50ed
23 DIST mesa-13.0.5.tar.xz 9171480 SHA256 bfcea7e2c801525a60895c8aff11aa68457ee9aa35d01a4638e1f310a3f5ef87 SHA512 db5f6a97b40ee6e45ba81280ab4543354e9f274c7112c5a43b8970244f329902a22f68d5eeddad5b64502507f462ffbcc028efc5dff93822adf95d30ba5903c1 WHIRLPOOL 164116608908331d4e8d69c4d2b92dc22e8e6d98725a20e8c2da5cc24b4e9ae9e05ee9c7209d55371b419e0f4e6c1d4752a46d149a968a6b83612aa77f7e480e
24 DIST mesa-17.0.0.tar.xz 9442580 SHA256 39db3d59700159add7f977307d12a7dfe016363e760ad82280ac4168ea668481 SHA512 880364d63fc252efff27fb324a5a9c037f7197819db0b543f695687849db15deabbb4433d1850d005c2c2436d1c1a01f8533f0d79c71c08aaf79d562b35a753d WHIRLPOOL b48b11df188251d5b0b2ae5428a28c38d1dc79e6790d5e66b9f9b6681bafa181ad9571a6edc3f23d9353634293a48fa1228fca43b5840943c68d0786a7e442ea
25
26 diff --git a/media-libs/mesa/mesa-13.0.4.ebuild b/media-libs/mesa/mesa-13.0.4.ebuild
27 deleted file mode 100644
28 index 9e3022a4336..00000000000
29 --- a/media-libs/mesa/mesa-13.0.4.ebuild
30 +++ /dev/null
31 @@ -1,504 +0,0 @@
32 -# Copyright 1999-2017 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=5
36 -
37 -EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa"
38 -
39 -if [[ ${PV} = 9999 ]]; then
40 - GIT_ECLASS="git-r3"
41 - EXPERIMENTAL="true"
42 -fi
43 -
44 -PYTHON_COMPAT=( python2_7 )
45 -
46 -inherit autotools multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS}
47 -
48 -OPENGL_DIR="xorg-x11"
49 -
50 -MY_P="${P/_/-}"
51 -FOLDER="${PV/_rc*/}"
52 -
53 -DESCRIPTION="OpenGL-like graphic library for Linux"
54 -HOMEPAGE="https://www.mesa3d.org/"
55 -
56 -if [[ $PV == 9999 ]]; then
57 - SRC_URI=""
58 - KEYWORDS=""
59 -else
60 - SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_P}.tar.xz"
61 - 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"
62 -fi
63 -
64 -LICENSE="MIT"
65 -SLOT="0"
66 -RESTRICT="!bindist? ( bindist )"
67 -
68 -INTEL_CARDS="i915 i965 intel"
69 -RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
70 -VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno nouveau vc4 vmware"
71 -for card in ${VIDEO_CARDS}; do
72 - IUSE_VIDEO_CARDS+=" video_cards_${card}"
73 -done
74 -
75 -IUSE="${IUSE_VIDEO_CARDS}
76 - bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gcrypt gles1 gles2
77 - libressl +llvm +nettle +nptl opencl osmesa pax_kernel openmax openssl pic
78 - selinux vaapi valgrind vdpau vulkan wayland xvmc xa"
79 -
80 -REQUIRED_USE="
81 - || ( gcrypt libressl nettle openssl )
82 - d3d9? ( dri3 gallium )
83 - llvm? ( gallium )
84 - opencl? ( gallium llvm )
85 - openmax? ( gallium )
86 - gles1? ( egl )
87 - gles2? ( egl )
88 - vaapi? ( gallium )
89 - vdpau? ( gallium )
90 - vulkan? ( || ( video_cards_i965 video_cards_radeonsi )
91 - video_cards_radeonsi? ( llvm ) )
92 - wayland? ( egl gbm )
93 - xa? ( gallium )
94 - video_cards_freedreno? ( gallium )
95 - video_cards_intel? ( classic )
96 - video_cards_i915? ( || ( classic gallium ) )
97 - video_cards_i965? ( classic )
98 - video_cards_nouveau? ( || ( classic gallium ) )
99 - video_cards_radeon? ( || ( classic gallium )
100 - gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
101 - video_cards_r100? ( classic )
102 - video_cards_r200? ( classic )
103 - video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
104 - video_cards_r600? ( gallium )
105 - video_cards_radeonsi? ( gallium llvm )
106 - video_cards_vmware? ( gallium )
107 - ${PYTHON_REQUIRED_USE}
108 -"
109 -
110 -LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.72"
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 - >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
122 - >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
123 - >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
124 - >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
125 - >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
126 - >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}]
127 - x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
128 - llvm? (
129 - video_cards_radeonsi? (
130 - virtual/libelf:0=[${MULTILIB_USEDEP}]
131 - vulkan? ( >=sys-devel/llvm-3.9.0:0=[${MULTILIB_USEDEP}] )
132 - )
133 - >=sys-devel/llvm-3.6.0:0=[${MULTILIB_USEDEP}]
134 - )
135 - nettle? ( dev-libs/nettle:=[${MULTILIB_USEDEP}] )
136 - !nettle? (
137 - gcrypt? ( dev-libs/libgcrypt:=[${MULTILIB_USEDEP}] )
138 - !gcrypt? (
139 - libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
140 - !libressl? ( dev-libs/openssl:=[${MULTILIB_USEDEP}] )
141 - )
142 - )
143 - opencl? (
144 - app-eselect/eselect-opencl
145 - dev-libs/libclc
146 - virtual/libelf:0=[${MULTILIB_USEDEP}]
147 - )
148 - openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] )
149 - vaapi? (
150 - >=x11-libs/libva-1.6.0:=[${MULTILIB_USEDEP}]
151 - video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
152 - )
153 - vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
154 - wayland? ( >=dev-libs/wayland-1.2.0:=[${MULTILIB_USEDEP}] )
155 - xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
156 - ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vmware?,${MULTILIB_USEDEP}]
157 -"
158 -for card in ${INTEL_CARDS}; do
159 - RDEPEND="${RDEPEND}
160 - video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
161 - "
162 -done
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 -# FIXME: kill the sys-devel/llvm[video_cards_radeon] compat once
174 -# LLVM < 3.9 is out of the game
175 -DEPEND="${RDEPEND}
176 - llvm? (
177 - video_cards_radeonsi? ( || (
178 - sys-devel/llvm[llvm_targets_AMDGPU]
179 - sys-devel/llvm[video_cards_radeon]
180 - ) )
181 - )
182 - opencl? (
183 - >=sys-devel/llvm-3.4.2:0=[${MULTILIB_USEDEP}]
184 - >=sys-devel/clang-3.4.2:0=[${MULTILIB_USEDEP}]
185 - >=sys-devel/gcc-4.6
186 - )
187 - sys-devel/gettext
188 - virtual/pkgconfig
189 - valgrind? ( dev-util/valgrind )
190 - >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
191 - dri3? (
192 - >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
193 - >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}]
194 - )
195 - >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}]
196 - >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}]
197 - >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}]
198 - >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}]
199 -"
200 -[[ ${PV} == 9999 ]] && DEPEND+="
201 - sys-devel/bison
202 - sys-devel/flex
203 - ${PYTHON_DEPS}
204 - $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
205 -"
206 -
207 -S="${WORKDIR}/${MY_P}"
208 -EGIT_CHECKOUT_DIR=${S}
209 -
210 -QA_WX_LOAD="
211 -x86? (
212 - !pic? (
213 - usr/lib*/libglapi.so.0.0.0
214 - usr/lib*/libGLESv1_CM.so.1.1.0
215 - usr/lib*/libGLESv2.so.2.0.0
216 - usr/lib*/libGL.so.1.2.0
217 - usr/lib*/libOSMesa.so.8.0.0
218 - )
219 -)"
220 -
221 -pkg_setup() {
222 - # warning message for bug 459306
223 - if use llvm && has_version sys-devel/llvm[!debug=]; then
224 - ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
225 - ewarn "detected! This can cause problems. For details, see bug 459306."
226 - fi
227 -
228 - python-any-r1_pkg_setup
229 -}
230 -
231 -src_prepare() {
232 - [[ ${PV} == 9999 ]] && eautoreconf
233 -}
234 -
235 -multilib_src_configure() {
236 - local myconf
237 -
238 - if use classic; then
239 - # Configurable DRI drivers
240 - driver_enable swrast
241 -
242 - # Intel code
243 - driver_enable video_cards_i915 i915
244 - driver_enable video_cards_i965 i965
245 - if ! use video_cards_i915 && \
246 - ! use video_cards_i965; then
247 - driver_enable video_cards_intel i915 i965
248 - fi
249 -
250 - # Nouveau code
251 - driver_enable video_cards_nouveau nouveau
252 -
253 - # ATI code
254 - driver_enable video_cards_r100 radeon
255 - driver_enable video_cards_r200 r200
256 - if ! use video_cards_r100 && \
257 - ! use video_cards_r200; then
258 - driver_enable video_cards_radeon radeon r200
259 - fi
260 - fi
261 -
262 - if use egl; then
263 - myconf+=" --with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm")"
264 - fi
265 -
266 - if use gallium; then
267 - myconf+="
268 - $(use_enable d3d9 nine)
269 - $(use_enable llvm gallium-llvm)
270 - $(use_enable openmax omx)
271 - $(use_enable vaapi va)
272 - $(use_enable vdpau)
273 - $(use_enable xa)
274 - $(use_enable xvmc)
275 - "
276 - use vaapi && myconf+=" --with-va-libdir=/usr/$(get_libdir)/va/drivers"
277 -
278 - gallium_enable swrast
279 - gallium_enable video_cards_vc4 vc4
280 - gallium_enable video_cards_vmware svga
281 - gallium_enable video_cards_nouveau nouveau
282 - gallium_enable video_cards_i915 i915
283 - if ! use video_cards_i915 && \
284 - ! use video_cards_i965; then
285 - gallium_enable video_cards_intel i915
286 - fi
287 -
288 - gallium_enable video_cards_r300 r300
289 - gallium_enable video_cards_r600 r600
290 - gallium_enable video_cards_radeonsi radeonsi
291 - if ! use video_cards_r300 && \
292 - ! use video_cards_r600; then
293 - gallium_enable video_cards_radeon r300 r600
294 - fi
295 -
296 - gallium_enable video_cards_freedreno freedreno
297 - # opencl stuff
298 - if use opencl; then
299 - myconf+="
300 - $(use_enable opencl)
301 - --with-clang-libdir="${EPREFIX}/usr/lib"
302 - "
303 - fi
304 - fi
305 -
306 - if use vulkan; then
307 - vulkan_enable video_cards_i965 intel
308 - vulkan_enable video_cards_radeonsi radeon
309 - fi
310 -
311 - # x86 hardened pax_kernel needs glx-rts, bug 240956
312 - if [[ ${ABI} == x86 ]]; then
313 - myconf+=" $(use_enable pax_kernel glx-read-only-text)"
314 - fi
315 -
316 - # on abi_x86_32 hardened we need to have asm disable
317 - if [[ ${ABI} == x86* ]] && use pic; then
318 - myconf+=" --disable-asm"
319 - fi
320 -
321 - if use gallium; then
322 - myconf+=" $(use_enable osmesa gallium-osmesa)"
323 - else
324 - myconf+=" $(use_enable osmesa)"
325 - fi
326 -
327 - # build fails with BSD indent, bug #428112
328 - use userland_GNU || export INDENT=cat
329 -
330 - ECONF_SOURCE="${S}" \
331 - econf \
332 - --enable-dri \
333 - --enable-glx \
334 - --enable-shared-glapi \
335 - --disable-shader-cache \
336 - $(use_enable !bindist texture-float) \
337 - $(use_enable d3d9 nine) \
338 - $(use_enable debug) \
339 - $(use_enable dri3) \
340 - $(use_enable egl) \
341 - $(use_enable gbm) \
342 - $(use_enable gles1) \
343 - $(use_enable gles2) \
344 - $(use_enable nptl glx-tls) \
345 - --enable-valgrind=$(usex valgrind auto no) \
346 - --enable-llvm-shared-libs \
347 - --with-dri-drivers=${DRI_DRIVERS} \
348 - --with-gallium-drivers=${GALLIUM_DRIVERS} \
349 - --with-vulkan-drivers=${VULKAN_DRIVERS} \
350 - --with-sha1=$(usex nettle libnettle $(usex gcrypt libgcrypt libcrypto)) \
351 - PYTHON2="${PYTHON}" \
352 - ${myconf}
353 -}
354 -
355 -multilib_src_install() {
356 - emake install DESTDIR="${D}"
357 -
358 - if use classic || use gallium; then
359 - ebegin "Moving DRI/Gallium drivers for dynamic switching"
360 - local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
361 - keepdir /usr/$(get_libdir)/dri
362 - dodir /usr/$(get_libdir)/mesa
363 - for x in ${gallium_drivers[@]}; do
364 - if [ -f "$(get_libdir)/gallium/${x}" ]; then
365 - mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
366 - || die "Failed to move ${x}"
367 - fi
368 - done
369 - if use classic; then
370 - emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install
371 - fi
372 - for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
373 - if [ -f ${x} -o -L ${x} ]; then
374 - mv -f "${x}" "${x/dri/mesa}" \
375 - || die "Failed to move ${x}"
376 - fi
377 - done
378 - pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
379 - ln -s ../mesa/*.so . || die "Creating symlink failed"
380 - # remove symlinks to drivers known to eselect
381 - for x in ${gallium_drivers[@]}; do
382 - if [ -f ${x} -o -L ${x} ]; then
383 - rm "${x}" || die "Failed to remove ${x}"
384 - fi
385 - done
386 - popd
387 - eend $?
388 - fi
389 - if use opencl; then
390 - ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
391 - local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
392 - dodir ${cl_dir}/{lib,include}
393 - if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
394 - mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
395 - "${ED}"${cl_dir}
396 - fi
397 - if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
398 - mv -f "${ED}"/usr/include/CL \
399 - "${ED}"${cl_dir}/include
400 - fi
401 - eend $?
402 - fi
403 -
404 - if use openmax; then
405 - echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx"
406 - doenvd "${T}"/99mesaxdgomx
407 - keepdir /usr/share/mesa/xdg
408 - fi
409 -}
410 -
411 -multilib_src_install_all() {
412 - prune_libtool_files --all
413 - einstalldocs
414 -
415 - if use !bindist; then
416 - dodoc docs/patents.txt
417 - fi
418 -
419 - # Install config file for eselect mesa
420 - insinto /usr/share/mesa
421 - newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
422 -
423 - # Mesa should not install these
424 - if use vulkan; then
425 - rm "${ED}"/usr/include/vulkan/{vulkan.h,vk_platform.h} || die
426 - fi
427 -}
428 -
429 -multilib_src_test() {
430 - if use llvm; then
431 - 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'
432 - pushd src/gallium/drivers/llvmpipe >/dev/null || die
433 - emake ${llvm_tests}
434 - pax-mark m ${llvm_tests}
435 - popd >/dev/null || die
436 - fi
437 - emake check
438 -}
439 -
440 -pkg_postinst() {
441 - # Switch to the xorg implementation.
442 - echo
443 - eselect opengl set --use-old ${OPENGL_DIR}
444 -
445 - # Select classic/gallium drivers
446 - if use classic || use gallium; then
447 - eselect mesa set --auto
448 - fi
449 -
450 - # Switch to mesa opencl
451 - if use opencl; then
452 - eselect opencl set --use-old ${PN}
453 - fi
454 -
455 - # run omxregister-bellagio to make the OpenMAX drivers known system-wide
456 - if use openmax; then
457 - ebegin "Registering OpenMAX drivers"
458 - BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \
459 - OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \
460 - omxregister-bellagio
461 - eend $?
462 - fi
463 -
464 - # warn about patent encumbered texture-float
465 - if use !bindist; then
466 - elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
467 - elog "enabled. Please see patents.txt for an explanation."
468 - fi
469 -
470 - if ! has_version media-libs/libtxc_dxtn; then
471 - elog "Note that in order to have full S3TC support, it is necessary to install"
472 - elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
473 - elog "textures in some apps, and some others even require this to run."
474 - fi
475 -}
476 -
477 -pkg_prerm() {
478 - if use openmax; then
479 - rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister
480 - fi
481 -}
482 -
483 -# $1 - VIDEO_CARDS flag
484 -# other args - names of DRI drivers to enable
485 -# TODO: avoid code duplication for a more elegant implementation
486 -driver_enable() {
487 - case $# in
488 - # for enabling unconditionally
489 - 1)
490 - DRI_DRIVERS+=",$1"
491 - ;;
492 - *)
493 - if use $1; then
494 - shift
495 - for i in $@; do
496 - DRI_DRIVERS+=",${i}"
497 - done
498 - fi
499 - ;;
500 - esac
501 -}
502 -
503 -gallium_enable() {
504 - case $# in
505 - # for enabling unconditionally
506 - 1)
507 - GALLIUM_DRIVERS+=",$1"
508 - ;;
509 - *)
510 - if use $1; then
511 - shift
512 - for i in $@; do
513 - GALLIUM_DRIVERS+=",${i}"
514 - done
515 - fi
516 - ;;
517 - esac
518 -}
519 -
520 -vulkan_enable() {
521 - case $# in
522 - # for enabling unconditionally
523 - 1)
524 - VULKAN_DRIVERS+=",$1"
525 - ;;
526 - *)
527 - if use $1; then
528 - shift
529 - for i in $@; do
530 - VULKAN_DRIVERS+=",${i}"
531 - done
532 - fi
533 - ;;
534 - esac
535 -}