Gentoo Archives: gentoo-commits

From: "Matt Turner (mattst88)" <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/mesa: mesa-10.5.0_rc3.ebuild ChangeLog
Date: Sat, 28 Feb 2015 20:13:50
Message-Id: 20150228201343.D4DEE12C1C@oystercatcher.gentoo.org
1 mattst88 15/02/28 20:13:43
2
3 Modified: ChangeLog
4 Added: mesa-10.5.0_rc3.ebuild
5 Log:
6 Version bump to 10.5.0_rc3.
7
8 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 974CA72A)
9
10 Revision Changes Path
11 1.618 media-libs/mesa/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.618&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.618&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/ChangeLog?r1=1.617&r2=1.618
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v
20 retrieving revision 1.617
21 retrieving revision 1.618
22 diff -u -r1.617 -r1.618
23 --- ChangeLog 24 Feb 2015 08:37:09 -0000 1.617
24 +++ ChangeLog 28 Feb 2015 20:13:43 -0000 1.618
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/mesa
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.617 2015/02/24 08:37:09 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.618 2015/02/28 20:13:43 mattst88 Exp $
30 +
31 +*mesa-10.5.0_rc3 (28 Feb 2015)
32 +
33 + 28 Feb 2015; Matt Turner <mattst88@g.o> +mesa-10.5.0_rc3.ebuild:
34 + Version bump to 10.5.0_rc3.
35
36 24 Feb 2015; Agostino Sarubbo <ago@g.o> mesa-10.3.7-r1.ebuild:
37 Stable for alpha, wrt bug #530652
38
39
40
41 1.1 media-libs/mesa/mesa-10.5.0_rc3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/mesa-10.5.0_rc3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/mesa-10.5.0_rc3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mesa-10.5.0_rc3.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-10.5.0_rc3.ebuild,v 1.1 2015/02/28 20:13:43 mattst88 Exp $
51
52 EAPI=5
53
54 EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa"
55
56 if [[ ${PV} = 9999* ]]; then
57 GIT_ECLASS="git-r3"
58 EXPERIMENTAL="true"
59 fi
60
61 PYTHON_COMPAT=( python{2_6,2_7} )
62
63 inherit autotools multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS}
64
65 OPENGL_DIR="xorg-x11"
66
67 MY_P="${P/_/-}"
68 FOLDER="${PV/_rc*/}"
69
70 DESCRIPTION="OpenGL-like graphic library for Linux"
71 HOMEPAGE="http://mesa3d.sourceforge.net/"
72
73 if [[ $PV == 9999* ]]; then
74 SRC_URI=""
75 else
76 SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_P}.tar.xz"
77 fi
78
79 LICENSE="MIT"
80 SLOT="0"
81 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
82
83 INTEL_CARDS="i915 i965 ilo intel"
84 RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
85 VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} freedreno nouveau vmware"
86 for card in ${VIDEO_CARDS}; do
87 IUSE_VIDEO_CARDS+=" video_cards_${card}"
88 done
89
90 IUSE="${IUSE_VIDEO_CARDS}
91 bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm
92 +nptl opencl osmesa pax_kernel openmax pic r600-llvm-compiler selinux
93 +udev vaapi vdpau wayland xvmc xa kernel_FreeBSD"
94
95 REQUIRED_USE="
96 d3d9? ( dri3 gallium )
97 llvm? ( gallium )
98 opencl? (
99 gallium
100 llvm
101 video_cards_r600? ( r600-llvm-compiler )
102 video_cards_radeon? ( r600-llvm-compiler )
103 video_cards_radeonsi? ( r600-llvm-compiler )
104 )
105 openmax? ( gallium )
106 gles1? ( egl )
107 gles2? ( egl )
108 r600-llvm-compiler? ( gallium llvm || ( video_cards_r600 video_cards_radeonsi video_cards_radeon ) )
109 vaapi? ( gallium )
110 vdpau? ( gallium )
111 wayland? ( egl gbm )
112 xa? ( gallium )
113 video_cards_freedreno? ( gallium )
114 video_cards_intel? ( || ( classic ) )
115 video_cards_i915? ( || ( classic gallium ) )
116 video_cards_i965? ( classic )
117 video_cards_ilo? ( gallium )
118 video_cards_nouveau? ( || ( classic gallium ) )
119 video_cards_radeon? ( || ( classic gallium ) )
120 video_cards_r100? ( classic )
121 video_cards_r200? ( classic )
122 video_cards_r300? ( gallium )
123 video_cards_r600? ( gallium )
124 video_cards_radeonsi? ( gallium llvm )
125 video_cards_vmware? ( gallium )
126 ${PYTHON_REQUIRED_USE}
127 "
128
129 LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.57"
130 # keep correct libdrm and dri2proto dep
131 # keep blocks in rdepend for binpkg
132 RDEPEND="
133 !<x11-base/xorg-server-1.7
134 !<=x11-proto/xf86driproto-2.0.3
135 abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )
136 classic? ( app-admin/eselect-mesa )
137 gallium? ( app-admin/eselect-mesa )
138 >=app-admin/eselect-opengl-1.3.0
139 udev? ( kernel_linux? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] ) )
140 >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
141 gbm? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] )
142 dri3? ( >=virtual/libudev-215:=[${MULTILIB_USEDEP}] )
143 >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
144 >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
145 >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
146 >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
147 >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
148 >=x11-libs/libxcb-1.9.3:=[${MULTILIB_USEDEP}]
149 llvm? (
150 video_cards_radeonsi? ( || (
151 >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}]
152 >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}]
153 ) )
154 video_cards_r600? ( || (
155 >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}]
156 >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}]
157 ) )
158 !video_cards_r600? (
159 video_cards_radeon? ( || (
160 >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}]
161 >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}]
162 ) )
163 )
164 >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}]
165 )
166 opencl? (
167 app-admin/eselect-opencl
168 dev-libs/libclc
169 || (
170 >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}]
171 >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}]
172 )
173 )
174 openmax? ( >=media-libs/libomxil-bellagio-0.9.3:=[${MULTILIB_USEDEP}] )
175 vaapi? ( >=x11-libs/libva-0.35.0:=[${MULTILIB_USEDEP}] )
176 vdpau? ( >=x11-libs/libvdpau-0.7:=[${MULTILIB_USEDEP}] )
177 wayland? ( >=dev-libs/wayland-1.2.0:=[${MULTILIB_USEDEP}] )
178 xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
179 ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?,${MULTILIB_USEDEP}]
180 "
181 for card in ${INTEL_CARDS}; do
182 RDEPEND="${RDEPEND}
183 video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
184 "
185 done
186
187 for card in ${RADEON_CARDS}; do
188 RDEPEND="${RDEPEND}
189 video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
190 "
191 done
192
193 DEPEND="${RDEPEND}
194 ${PYTHON_DEPS}
195 llvm? (
196 r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] )
197 video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] )
198 )
199 opencl? (
200 >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}]
201 >=sys-devel/clang-3.4.2:=[${MULTILIB_USEDEP}]
202 >=sys-devel/gcc-4.6
203 )
204 sys-devel/bison
205 sys-devel/flex
206 $(python_gen_any_dep ">=dev-python/mako-0.7.3[\${PYTHON_USEDEP}]")
207 sys-devel/gettext
208 virtual/pkgconfig
209 >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
210 dri3? (
211 >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
212 >=x11-proto/presentproto-1.0:=[${MULTILIB_USEDEP}]
213 )
214 >=x11-proto/glproto-1.4.17-r1:=[${MULTILIB_USEDEP}]
215 >=x11-proto/xextproto-7.2.1-r1:=[${MULTILIB_USEDEP}]
216 >=x11-proto/xf86driproto-2.1.1-r1:=[${MULTILIB_USEDEP}]
217 >=x11-proto/xf86vidmodeproto-2.3.1-r1:=[${MULTILIB_USEDEP}]
218 "
219
220 S="${WORKDIR}/${MY_P}"
221 EGIT_CHECKOUT_DIR=${S}
222
223 # It is slow without texrels, if someone wants slow
224 # mesa without texrels +pic use is worth the shot
225 QA_EXECSTACK="usr/lib*/libGL.so*"
226 QA_WX_LOAD="usr/lib*/libGL.so*"
227
228 pkg_setup() {
229 # warning message for bug 459306
230 if use llvm && has_version sys-devel/llvm[!debug=]; then
231 ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
232 ewarn "detected! This can cause problems. For details, see bug 459306."
233 fi
234
235 python-any-r1_pkg_setup
236 }
237
238 src_prepare() {
239 # fix for hardened pax_kernel, bug 240956
240 [[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch
241
242 eautoreconf
243 }
244
245 multilib_src_configure() {
246 local myconf
247
248 if use classic; then
249 # Configurable DRI drivers
250 driver_enable swrast
251
252 # Intel code
253 driver_enable video_cards_i915 i915
254 driver_enable video_cards_i965 i965
255 if ! use video_cards_i915 && \
256 ! use video_cards_i965; then
257 driver_enable video_cards_intel i915 i965
258 fi
259
260 # Nouveau code
261 driver_enable video_cards_nouveau nouveau
262
263 # ATI code
264 driver_enable video_cards_r100 radeon
265 driver_enable video_cards_r200 r200
266 if ! use video_cards_r100 && \
267 ! use video_cards_r200; then
268 driver_enable video_cards_radeon radeon r200
269 fi
270 fi
271
272 if use egl; then
273 myconf+="--with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm") "
274 fi
275
276 if use gallium; then
277 myconf+="
278 $(use_enable d3d9 nine)
279 $(use_enable llvm gallium-llvm)
280 $(use_enable openmax omx)
281 $(use_enable r600-llvm-compiler)
282 $(use_enable vaapi va)
283 $(use_enable vdpau)
284 $(use_enable xa)
285 $(use_enable xvmc)
286 "
287 gallium_enable swrast
288 gallium_enable video_cards_vmware svga
289 gallium_enable video_cards_nouveau nouveau
290 gallium_enable video_cards_i915 i915
291 gallium_enable video_cards_ilo ilo
292 if ! use video_cards_i915 && \
293 ! use video_cards_i965; then
294 gallium_enable video_cards_intel i915
295 fi
296
297 gallium_enable video_cards_r300 r300
298 gallium_enable video_cards_r600 r600
299 gallium_enable video_cards_radeonsi radeonsi
300 if ! use video_cards_r300 && \
301 ! use video_cards_r600; then
302 gallium_enable video_cards_radeon r300 r600
303 fi
304
305 gallium_enable video_cards_freedreno freedreno
306 # opencl stuff
307 if use opencl; then
308 myconf+="
309 $(use_enable opencl)
310 --with-clang-libdir="${EPREFIX}/usr/lib"
311 "
312 fi
313 fi
314
315 # x86 hardened pax_kernel needs glx-rts, bug 240956
316 if use pax_kernel; then
317 myconf+="
318 $(use_enable x86 glx-rts)
319 "
320 fi
321
322 # on abi_x86_32 hardened we need to have asm disable
323 if [[ ${ABI} == x86* ]] && use pic; then
324 myconf+=" --disable-asm"
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 $(use_enable osmesa) \
346 $(use_enable !udev sysfs) \
347 --enable-llvm-shared-libs \
348 --with-dri-drivers=${DRI_DRIVERS} \
349 --with-gallium-drivers=${GALLIUM_DRIVERS} \
350 PYTHON2="${PYTHON}" \
351 ${myconf}
352 }
353
354 multilib_src_install() {
355 emake install DESTDIR="${D}"
356
357 if use classic || use gallium; then
358 ebegin "Moving DRI/Gallium drivers for dynamic switching"
359 local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
360 keepdir /usr/$(get_libdir)/dri
361 dodir /usr/$(get_libdir)/mesa
362 for x in ${gallium_drivers[@]}; do
363 if [ -f "$(get_libdir)/gallium/${x}" ]; then
364 mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
365 || die "Failed to move ${x}"
366 fi
367 done
368 if use classic; then
369 emake -C "${BUILD_DIR}/src/mesa/drivers/dri" DESTDIR="${D}" install
370 fi
371 for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
372 if [ -f ${x} -o -L ${x} ]; then
373 mv -f "${x}" "${x/dri/mesa}" \
374 || die "Failed to move ${x}"
375 fi
376 done
377 pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
378 ln -s ../mesa/*.so . || die "Creating symlink failed"
379 # remove symlinks to drivers known to eselect
380 for x in ${gallium_drivers[@]}; do
381 if [ -f ${x} -o -L ${x} ]; then
382 rm "${x}" || die "Failed to remove ${x}"
383 fi
384 done
385 popd
386 eend $?
387 fi
388 if use opencl; then
389 ebegin "Moving Gallium/Clover OpenCL implementation for dynamic switching"
390 local cl_dir="/usr/$(get_libdir)/OpenCL/vendors/mesa"
391 dodir ${cl_dir}/{lib,include}
392 if [ -f "${ED}/usr/$(get_libdir)/libOpenCL.so" ]; then
393 mv -f "${ED}"/usr/$(get_libdir)/libOpenCL.so* \
394 "${ED}"${cl_dir}
395 fi
396 if [ -f "${ED}/usr/include/CL/opencl.h" ]; then
397 mv -f "${ED}"/usr/include/CL \
398 "${ED}"${cl_dir}/include
399 fi
400 eend $?
401 fi
402
403 if use openmax; then
404 echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share/mesa/xdg\"" > "${T}/99mesaxdgomx"
405 doenvd "${T}"/99mesaxdgomx
406 keepdir /usr/share/mesa/xdg
407 fi
408 }
409
410 multilib_src_install_all() {
411 prune_libtool_files --all
412 einstalldocs
413
414 if use !bindist; then
415 dodoc docs/patents.txt
416 fi
417
418 # Install config file for eselect mesa
419 insinto /usr/share/mesa
420 newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf
421 }
422
423 multilib_src_test() {
424 if use llvm; then
425 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'
426 pushd src/gallium/drivers/llvmpipe >/dev/null || die
427 emake ${llvm_tests}
428 pax-mark m ${llvm_tests}
429 popd >/dev/null || die
430 fi
431 emake check
432 }
433
434 pkg_postinst() {
435 # Switch to the xorg implementation.
436 echo
437 eselect opengl set --use-old ${OPENGL_DIR}
438
439 # Select classic/gallium drivers
440 if use classic || use gallium; then
441 eselect mesa set --auto
442 fi
443
444 # Switch to mesa opencl
445 if use opencl; then
446 eselect opencl set --use-old ${PN}
447 fi
448
449 # run omxregister-bellagio to make the OpenMAX drivers known system-wide
450 if use openmax; then
451 ebegin "Registering OpenMAX drivers"
452 BELLAGIO_SEARCH_PATH="${EPREFIX}/usr/$(get_libdir)/libomxil-bellagio0" \
453 OMX_BELLAGIO_REGISTRY=${EPREFIX}/usr/share/mesa/xdg/.omxregister \
454 omxregister-bellagio
455 eend $?
456 fi
457
458 # warn about patent encumbered texture-float
459 if use !bindist; then
460 elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
461 elog "enabled. Please see patents.txt for an explanation."
462 fi
463
464 if ! has_version media-libs/libtxc_dxtn; then
465 elog "Note that in order to have full S3TC support, it is necessary to install"
466 elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
467 elog "textures in some apps, and some others even require this to run."
468 fi
469 }
470
471 pkg_prerm() {
472 if use openmax; then
473 rm "${EPREFIX}"/usr/share/mesa/xdg/.omxregister
474 fi
475 }
476
477 # $1 - VIDEO_CARDS flag
478 # other args - names of DRI drivers to enable
479 # TODO: avoid code duplication for a more elegant implementation
480 driver_enable() {
481 case $# in
482 # for enabling unconditionally
483 1)
484 DRI_DRIVERS+=",$1"
485 ;;
486 *)
487 if use $1; then
488 shift
489 for i in $@; do
490 DRI_DRIVERS+=",${i}"
491 done
492 fi
493 ;;
494 esac
495 }
496
497 gallium_enable() {
498 case $# in
499 # for enabling unconditionally
500 1)
501 GALLIUM_DRIVERS+=",$1"
502 ;;
503 *)
504 if use $1; then
505 shift
506 for i in $@; do
507 GALLIUM_DRIVERS+=",${i}"
508 done
509 fi
510 ;;
511 esac
512 }