1 |
mattst88 13/02/23 02:44:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mesa-9.0.3.ebuild |
5 |
Log: |
6 |
Version bump to 9.0.3, bug 454106. |
7 |
|
8 |
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 974CA72A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.460 media-libs/mesa/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.460&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.460&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/ChangeLog?r1=1.459&r2=1.460 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v |
20 |
retrieving revision 1.459 |
21 |
retrieving revision 1.460 |
22 |
diff -u -r1.459 -r1.460 |
23 |
--- ChangeLog 23 Feb 2013 02:25:39 -0000 1.459 |
24 |
+++ ChangeLog 23 Feb 2013 02:44:55 -0000 1.460 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-libs/mesa |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.459 2013/02/23 02:25:39 mattst88 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.460 2013/02/23 02:44:55 mattst88 Exp $ |
30 |
+ |
31 |
+*mesa-9.0.3 (23 Feb 2013) |
32 |
+ |
33 |
+ 23 Feb 2013; Matt Turner <mattst88@g.o> +mesa-9.0.3.ebuild: |
34 |
+ Version bump to 9.0.3, bug 454106. |
35 |
|
36 |
23 Feb 2013; Matt Turner <mattst88@g.o> -mesa-9.1_rc1.ebuild, |
37 |
-mesa-9.1_rc2.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-libs/mesa/mesa-9.0.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/mesa-9.0.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/mesa/mesa-9.0.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mesa-9.0.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-9.0.3.ebuild,v 1.1 2013/02/23 02:44:55 mattst88 Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
|
54 |
EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa" |
55 |
|
56 |
if [[ ${PV} = 9999* ]]; then |
57 |
GIT_ECLASS="git-2" |
58 |
EXPERIMENTAL="true" |
59 |
fi |
60 |
|
61 |
inherit base autotools multilib flag-o-matic toolchain-funcs ${GIT_ECLASS} |
62 |
|
63 |
OPENGL_DIR="xorg-x11" |
64 |
|
65 |
MY_PN="${PN/m/M}" |
66 |
MY_P="${MY_PN}-${PV/_/-}" |
67 |
MY_SRC_P="${MY_PN}Lib-${PV/_/-}" |
68 |
|
69 |
FOLDER="${PV/_rc*/}" |
70 |
|
71 |
DESCRIPTION="OpenGL-like graphic library for Linux" |
72 |
HOMEPAGE="http://mesa3d.sourceforge.net/" |
73 |
|
74 |
#SRC_PATCHES="mirror://gentoo/${P}-gentoo-patches-01.tar.bz2" |
75 |
if [[ $PV = 9999* ]]; then |
76 |
SRC_URI="${SRC_PATCHES}" |
77 |
else |
78 |
SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_SRC_P}.tar.bz2 |
79 |
${SRC_PATCHES}" |
80 |
fi |
81 |
|
82 |
# The code is MIT/X11. |
83 |
# GLES[2]/gl[2]{,ext,platform}.h are SGI-B-2.0 |
84 |
LICENSE="MIT SGI-B-2.0" |
85 |
SLOT="0" |
86 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
87 |
|
88 |
INTEL_CARDS="i915 i965 intel" |
89 |
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi" |
90 |
VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} nouveau vmware" |
91 |
for card in ${VIDEO_CARDS}; do |
92 |
IUSE_VIDEO_CARDS+=" video_cards_${card}" |
93 |
done |
94 |
|
95 |
IUSE="${IUSE_VIDEO_CARDS} |
96 |
bindist +classic debug +egl g3dvl +gallium gbm gles1 gles2 +llvm +nptl |
97 |
openvg osmesa pax_kernel pic r600-llvm-compiler selinux +shared-glapi vdpau |
98 |
wayland xvmc xa xorg kernel_FreeBSD" |
99 |
|
100 |
REQUIRED_USE=" |
101 |
g3dvl? ( gallium ) |
102 |
llvm? ( gallium ) |
103 |
openvg? ( egl gallium ) |
104 |
gbm? ( shared-glapi ) |
105 |
g3dvl? ( || ( vdpau xvmc ) ) |
106 |
vdpau? ( g3dvl ) |
107 |
r600-llvm-compiler? ( gallium llvm || ( video_cards_r600 video_cards_radeon ) ) |
108 |
xa? ( gallium ) |
109 |
xorg? ( gallium ) |
110 |
xvmc? ( g3dvl ) |
111 |
video_cards_intel? ( || ( classic gallium ) ) |
112 |
video_cards_i915? ( || ( classic gallium ) ) |
113 |
video_cards_i965? ( classic ) |
114 |
video_cards_nouveau? ( || ( classic gallium ) ) |
115 |
video_cards_radeon? ( || ( classic gallium ) ) |
116 |
video_cards_r100? ( classic ) |
117 |
video_cards_r200? ( classic ) |
118 |
video_cards_r300? ( gallium ) |
119 |
video_cards_r600? ( gallium ) |
120 |
video_cards_radeonsi? ( gallium llvm ) |
121 |
video_cards_vmware? ( gallium ) |
122 |
" |
123 |
|
124 |
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.39" |
125 |
# keep correct libdrm and dri2proto dep |
126 |
# keep blocks in rdepend for binpkg |
127 |
# gtest file collision bug #411825 |
128 |
RDEPEND="!<x11-base/xorg-server-1.7 |
129 |
!<=x11-proto/xf86driproto-2.0.3 |
130 |
classic? ( app-admin/eselect-mesa ) |
131 |
gallium? ( app-admin/eselect-mesa ) |
132 |
>=app-admin/eselect-opengl-1.2.6 |
133 |
dev-libs/expat |
134 |
gbm? ( |
135 |
virtual/udev |
136 |
x11-libs/libdrm[libkms] |
137 |
) |
138 |
>=x11-libs/libX11-1.3.99.901 |
139 |
x11-libs/libXdamage |
140 |
x11-libs/libXext |
141 |
x11-libs/libXxf86vm |
142 |
>=x11-libs/libxcb-1.8.1 |
143 |
vdpau? ( >=x11-libs/libvdpau-0.4.1 ) |
144 |
wayland? ( >=dev-libs/wayland-1.0.3 ) |
145 |
xorg? ( |
146 |
x11-base/xorg-server |
147 |
x11-libs/libdrm[libkms] |
148 |
) |
149 |
xvmc? ( >=x11-libs/libXvMC-1.0.6 ) |
150 |
${LIBDRM_DEPSTRING}[video_cards_nouveau?,video_cards_vmware?] |
151 |
" |
152 |
for card in ${INTEL_CARDS}; do |
153 |
RDEPEND="${RDEPEND} |
154 |
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
155 |
" |
156 |
done |
157 |
|
158 |
for card in ${RADEON_CARDS}; do |
159 |
RDEPEND="${RDEPEND} |
160 |
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) |
161 |
" |
162 |
done |
163 |
|
164 |
DEPEND="${RDEPEND} |
165 |
llvm? ( |
166 |
>=sys-devel/llvm-2.9 |
167 |
r600-llvm-compiler? ( =sys-devel/llvm-3.1* ) |
168 |
video_cards_radeonsi? ( =sys-devel/llvm-3.1* ) |
169 |
) |
170 |
=dev-lang/python-2* |
171 |
dev-libs/libxml2[python] |
172 |
sys-devel/bison |
173 |
sys-devel/flex |
174 |
virtual/pkgconfig |
175 |
x11-misc/makedepend |
176 |
>=x11-proto/dri2proto-2.6 |
177 |
>=x11-proto/glproto-1.4.15-r1 |
178 |
>=x11-proto/xextproto-7.0.99.1 |
179 |
x11-proto/xf86driproto |
180 |
x11-proto/xf86vidmodeproto |
181 |
" |
182 |
|
183 |
S="${WORKDIR}/${MY_P}" |
184 |
|
185 |
# It is slow without texrels, if someone wants slow |
186 |
# mesa without texrels +pic use is worth the shot |
187 |
QA_EXECSTACK="usr/lib*/opengl/xorg-x11/lib/libGL.so*" |
188 |
QA_WX_LOAD="usr/lib*/opengl/xorg-x11/lib/libGL.so*" |
189 |
|
190 |
# Think about: ggi, fbcon, no-X configs |
191 |
|
192 |
pkg_setup() { |
193 |
# workaround toc-issue wrt #386545 |
194 |
use ppc64 && append-flags -mminimal-toc |
195 |
} |
196 |
|
197 |
src_unpack() { |
198 |
default |
199 |
if [[ ${PV} = 9999* ]]; then |
200 |
git-2_src_unpack |
201 |
fi |
202 |
} |
203 |
|
204 |
src_prepare() { |
205 |
# apply patches |
206 |
if [[ ${PV} != 9999* && -n ${SRC_PATCHES} ]]; then |
207 |
EPATCH_FORCE="yes" \ |
208 |
EPATCH_SOURCE="${WORKDIR}/patches" \ |
209 |
EPATCH_SUFFIX="patch" \ |
210 |
epatch |
211 |
fi |
212 |
|
213 |
# relax the requirement that r300 must have llvm, bug 380303 |
214 |
epatch "${FILESDIR}"/${PN}-8.1-dont-require-llvm-for-r300.patch |
215 |
|
216 |
# fix for hardened pax_kernel, bug 240956 |
217 |
[[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch |
218 |
|
219 |
# Solaris needs some recent POSIX stuff in our case |
220 |
if [[ ${CHOST} == *-solaris* ]] ; then |
221 |
sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die |
222 |
fi |
223 |
|
224 |
# Tests fail against python-3, bug #407887 |
225 |
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die |
226 |
|
227 |
base_src_prepare |
228 |
|
229 |
eautoreconf |
230 |
} |
231 |
|
232 |
src_configure() { |
233 |
local myconf |
234 |
|
235 |
if use classic; then |
236 |
# Configurable DRI drivers |
237 |
driver_enable swrast |
238 |
|
239 |
# Intel code |
240 |
driver_enable video_cards_i915 i915 |
241 |
driver_enable video_cards_i965 i965 |
242 |
if ! use video_cards_i915 && \ |
243 |
! use video_cards_i965; then |
244 |
driver_enable video_cards_intel i915 i965 |
245 |
fi |
246 |
|
247 |
# Nouveau code |
248 |
driver_enable video_cards_nouveau nouveau |
249 |
|
250 |
# ATI code |
251 |
driver_enable video_cards_r100 radeon |
252 |
driver_enable video_cards_r200 r200 |
253 |
if ! use video_cards_r100 && \ |
254 |
! use video_cards_r200; then |
255 |
driver_enable video_cards_radeon radeon r200 |
256 |
fi |
257 |
fi |
258 |
|
259 |
if use egl; then |
260 |
myconf+=" |
261 |
--with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm") |
262 |
$(use_enable gallium gallium-egl) |
263 |
" |
264 |
fi |
265 |
|
266 |
if use gallium; then |
267 |
myconf+=" |
268 |
$(use_enable g3dvl gallium-g3dvl) |
269 |
$(use_enable llvm gallium-llvm) |
270 |
$(use_enable openvg) |
271 |
$(use_enable r600-llvm-compiler) |
272 |
$(use_enable vdpau) |
273 |
$(use_enable xvmc) |
274 |
" |
275 |
gallium_enable swrast |
276 |
gallium_enable video_cards_vmware svga |
277 |
gallium_enable video_cards_nouveau nouveau |
278 |
gallium_enable video_cards_i915 i915 |
279 |
if ! use video_cards_i915; then |
280 |
gallium_enable video_cards_intel i915 |
281 |
fi |
282 |
|
283 |
gallium_enable video_cards_r300 r300 |
284 |
gallium_enable video_cards_r600 r600 |
285 |
gallium_enable video_cards_radeonsi radeonsi |
286 |
if ! use video_cards_r300 && \ |
287 |
! use video_cards_r600; then |
288 |
gallium_enable video_cards_radeon r300 r600 |
289 |
fi |
290 |
fi |
291 |
|
292 |
# x86 hardened pax_kernel needs glx-rts, bug 240956 |
293 |
if use pax_kernel; then |
294 |
myconf+=" |
295 |
$(use_enable x86 glx-rts) |
296 |
" |
297 |
fi |
298 |
|
299 |
use userland_GNU || export INDENT=cat |
300 |
|
301 |
econf \ |
302 |
--enable-dri \ |
303 |
--enable-glx \ |
304 |
$(use_enable !bindist texture-float) \ |
305 |
$(use_enable debug) \ |
306 |
$(use_enable egl) \ |
307 |
$(use_enable gbm) \ |
308 |
$(use_enable gles1) \ |
309 |
$(use_enable gles2) \ |
310 |
$(use_enable nptl glx-tls) \ |
311 |
$(use_enable osmesa) \ |
312 |
$(use_enable !pic asm) \ |
313 |
$(use_enable shared-glapi) \ |
314 |
$(use_enable xa) \ |
315 |
$(use_enable xorg) \ |
316 |
--with-dri-drivers=${DRI_DRIVERS} \ |
317 |
--with-gallium-drivers=${GALLIUM_DRIVERS} \ |
318 |
${myconf} |
319 |
} |
320 |
|
321 |
src_install() { |
322 |
base_src_install |
323 |
|
324 |
find "${ED}" -name '*.la' -exec rm -f {} + || die |
325 |
|
326 |
if use !bindist; then |
327 |
dodoc docs/patents.txt |
328 |
fi |
329 |
|
330 |
# Save the glsl-compiler for later use |
331 |
if ! tc-is-cross-compiler; then |
332 |
dobin "${S}"/src/glsl/glsl_compiler |
333 |
fi |
334 |
|
335 |
# Install config file for eselect mesa |
336 |
insinto /usr/share/mesa |
337 |
newins "${FILESDIR}/eselect-mesa.conf.8.1" eselect-mesa.conf |
338 |
|
339 |
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib |
340 |
# because user can eselect desired GL provider. |
341 |
ebegin "Moving libGL and friends for dynamic switching" |
342 |
local x |
343 |
local gl_dir="/usr/$(get_libdir)/opengl/${OPENGL_DIR}/" |
344 |
dodir ${gl_dir}/{lib,extensions,include/GL} |
345 |
for x in "${ED}"/usr/$(get_libdir)/lib{EGL,GL*,OpenVG}.{la,a,so*}; do |
346 |
if [ -f ${x} -o -L ${x} ]; then |
347 |
mv -f "${x}" "${ED}${gl_dir}"/lib \ |
348 |
|| die "Failed to move ${x}" |
349 |
fi |
350 |
done |
351 |
for x in "${ED}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do |
352 |
if [ -f ${x} -o -L ${x} ]; then |
353 |
mv -f "${x}" "${ED}${gl_dir}"/include/GL \ |
354 |
|| die "Failed to move ${x}" |
355 |
fi |
356 |
done |
357 |
for x in "${ED}"/usr/include/{EGL,GLES*,VG,KHR}; do |
358 |
if [ -d ${x} ]; then |
359 |
mv -f "${x}" "${ED}${gl_dir}"/include \ |
360 |
|| die "Failed to move ${x}" |
361 |
fi |
362 |
done |
363 |
eend $? |
364 |
|
365 |
if use classic || use gallium; then |
366 |
ebegin "Moving DRI/Gallium drivers for dynamic switching" |
367 |
local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so ) |
368 |
keepdir /usr/$(get_libdir)/dri |
369 |
dodir /usr/$(get_libdir)/mesa |
370 |
for x in ${gallium_drivers[@]}; do |
371 |
if [ -f "${S}/$(get_libdir)/gallium/${x}" ]; then |
372 |
mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \ |
373 |
|| die "Failed to move ${x}" |
374 |
insinto "/usr/$(get_libdir)/dri/" |
375 |
if [ -f "${S}/$(get_libdir)/${x}" ]; then |
376 |
insopts -m0755 |
377 |
doins "${S}/$(get_libdir)/${x}" |
378 |
fi |
379 |
fi |
380 |
done |
381 |
for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do |
382 |
if [ -f ${x} -o -L ${x} ]; then |
383 |
mv -f "${x}" "${x/dri/mesa}" \ |
384 |
|| die "Failed to move ${x}" |
385 |
fi |
386 |
done |
387 |
pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed" |
388 |
ln -s ../mesa/*.so . || die "Creating symlink failed" |
389 |
# remove symlinks to drivers known to eselect |
390 |
for x in ${gallium_drivers[@]}; do |
391 |
if [ -f ${x} -o -L ${x} ]; then |
392 |
rm "${x}" || die "Failed to remove ${x}" |
393 |
fi |
394 |
done |
395 |
popd |
396 |
eend $? |
397 |
fi |
398 |
} |
399 |
|
400 |
pkg_postinst() { |
401 |
# Switch to the xorg implementation. |
402 |
echo |
403 |
eselect opengl set --use-old ${OPENGL_DIR} |
404 |
|
405 |
# switch to xorg-x11 and back if necessary, bug #374647 comment 11 |
406 |
OLD_IMPLEM="$(eselect opengl show)" |
407 |
if [[ ${OPENGL_DIR}x != ${OLD_IMPLEM}x ]]; then |
408 |
eselect opengl set ${OPENGL_DIR} |
409 |
eselect opengl set ${OLD_IMPLEM} |
410 |
fi |
411 |
|
412 |
# Select classic/gallium drivers |
413 |
if use classic || use gallium; then |
414 |
eselect mesa set --auto |
415 |
fi |
416 |
|
417 |
# warn about patent encumbered texture-float |
418 |
if use !bindist; then |
419 |
elog "USE=\"bindist\" was not set. Potentially patent encumbered code was" |
420 |
elog "enabled. Please see patents.txt for an explanation." |
421 |
fi |
422 |
|
423 |
local using_radeon r_flag |
424 |
for r_flag in ${RADEON_CARDS}; do |
425 |
if use video_cards_${r_flag}; then |
426 |
using_radeon=1 |
427 |
break |
428 |
fi |
429 |
done |
430 |
|
431 |
if [[ ${using_radeon} = 1 ]] && ! has_version media-libs/libtxc_dxtn; then |
432 |
elog "Note that in order to have full S3TC support, it is necessary to install" |
433 |
elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice" |
434 |
elog "textures in some apps, and some others even require this to run." |
435 |
fi |
436 |
} |
437 |
|
438 |
# $1 - VIDEO_CARDS flag |
439 |
# other args - names of DRI drivers to enable |
440 |
# TODO: avoid code duplication for a more elegant implementation |
441 |
driver_enable() { |
442 |
case $# in |
443 |
# for enabling unconditionally |
444 |
1) |
445 |
DRI_DRIVERS+=",$1" |
446 |
;; |
447 |
*) |
448 |
if use $1; then |
449 |
shift |
450 |
for i in $@; do |
451 |
DRI_DRIVERS+=",${i}" |
452 |
done |
453 |
fi |
454 |
;; |
455 |
esac |
456 |
} |
457 |
|
458 |
gallium_enable() { |
459 |
case $# in |
460 |
# for enabling unconditionally |
461 |
1) |
462 |
GALLIUM_DRIVERS+=",$1" |
463 |
;; |
464 |
*) |
465 |
if use $1; then |
466 |
shift |
467 |
for i in $@; do |
468 |
GALLIUM_DRIVERS+=",${i}" |
469 |
done |
470 |
fi |
471 |
;; |
472 |
esac |
473 |
} |