1 |
scarabeus 09/06/21 11:49:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mesa-7.4.3.ebuild |
5 |
Removed: mesa-7.4.1-r2.ebuild |
6 |
Log: |
7 |
Version bump. Remove old. |
8 |
(Portage version: 2.2_rc33/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.215 media-libs/mesa/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.215&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.215&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?r1=1.214&r2=1.215 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v |
20 |
retrieving revision 1.214 |
21 |
retrieving revision 1.215 |
22 |
diff -u -r1.214 -r1.215 |
23 |
--- ChangeLog 16 May 2009 08:51:18 -0000 1.214 |
24 |
+++ ChangeLog 21 Jun 2009 11:49:38 -0000 1.215 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for media-libs/mesa |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.214 2009/05/16 08:51:18 remi Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.215 2009/06/21 11:49:38 scarabeus Exp $ |
30 |
+ |
31 |
+*mesa-7.4.3 (21 Jun 2009) |
32 |
+ |
33 |
+ 21 Jun 2009; Tomáš Chvátal <scarabeus@g.o> |
34 |
+ -mesa-7.4.1-r2.ebuild, +mesa-7.4.3.ebuild: |
35 |
+ Version bump. Remove old. |
36 |
|
37 |
16 May 2009; Rémi Cardona <remi@g.o> -mesa-7.3.ebuild, |
38 |
-mesa-7.4.ebuild, -mesa-7.4.1-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-libs/mesa/mesa-7.4.3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/mesa-7.4.3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/mesa-7.4.3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mesa-7.4.3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-7.4.3.ebuild,v 1.1 2009/06/21 11:49:38 scarabeus Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa" |
56 |
|
57 |
if [[ ${PV} = 9999* ]]; then |
58 |
GIT_ECLASS="git" |
59 |
EXPERIMENTAL="true" |
60 |
IUSE_VIDEO_CARDS_UNSTABLE="video_cards_nouveau" |
61 |
IUSE_UNSTABLE="gallium" |
62 |
# User can also specify branch by simply adding MESA_LIVE_BRANCH="blesmrt" |
63 |
# to the make.conf, where blesmrt is desired branch. |
64 |
[[ -z ${MESA_LIVE_BRANCH} ]] || EGIT_BRANCH="${MESA_LIVE_BRANCH}" |
65 |
fi |
66 |
|
67 |
inherit autotools multilib flag-o-matic ${GIT_ECLASS} portability |
68 |
|
69 |
OPENGL_DIR="xorg-x11" |
70 |
|
71 |
MY_PN="${PN/m/M}" |
72 |
MY_P="${MY_PN}-${PV/_/-}" |
73 |
MY_SRC_P="${MY_PN}Lib-${PV/_/-}" |
74 |
DESCRIPTION="OpenGL-like graphic library for Linux" |
75 |
HOMEPAGE="http://mesa3d.sourceforge.net/" |
76 |
|
77 |
#SRC_PATCHES="mirror://gentoo/${P}-gentoo-patches-01.tar.bz2" |
78 |
if [[ $PV = *_rc* ]]; then |
79 |
SRC_URI="http://www.mesa3d.org/beta/${MY_SRC_P}.tar.gz |
80 |
${SRC_PATCHES}" |
81 |
elif [[ $PV = 9999* ]]; then |
82 |
SRC_URI="${SRC_PATCHES}" |
83 |
else |
84 |
SRC_URI="mirror://sourceforge/mesa3d/${MY_SRC_P}.tar.bz2 |
85 |
${SRC_PATCHES}" |
86 |
fi |
87 |
|
88 |
LICENSE="LGPL-2" |
89 |
SLOT="0" |
90 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
91 |
|
92 |
IUSE_VIDEO_CARDS="${IUSE_VIDEO_CARDS_UNSTABLE} |
93 |
video_cards_intel |
94 |
video_cards_mach64 |
95 |
video_cards_mga |
96 |
video_cards_none |
97 |
video_cards_r128 |
98 |
video_cards_radeon |
99 |
video_cards_radeonhd |
100 |
video_cards_s3virge |
101 |
video_cards_savage |
102 |
video_cards_sis |
103 |
video_cards_sunffb |
104 |
video_cards_tdfx |
105 |
video_cards_trident |
106 |
video_cards_via" |
107 |
IUSE="${IUSE_VIDEO_CARDS} ${IUSE_UNSTABLE} |
108 |
debug doc motif nptl pic xcb kernel_FreeBSD" |
109 |
|
110 |
# keep correct libdrm and dri2proto dep |
111 |
# keep blocks in rdepend for binpkg |
112 |
RDEPEND="!<=x11-base/xorg-x11-6.9 |
113 |
!<=x11-proto/xf86driproto-2.0.3 |
114 |
app-admin/eselect-opengl |
115 |
dev-libs/expat |
116 |
>=x11-libs/libdrm-2.4.6 |
117 |
x11-libs/libICE |
118 |
x11-libs/libX11[xcb?] |
119 |
x11-libs/libXdamage |
120 |
x11-libs/libXext |
121 |
x11-libs/libXi |
122 |
x11-libs/libXmu |
123 |
x11-libs/libXxf86vm |
124 |
motif? ( x11-libs/openmotif ) |
125 |
doc? ( app-doc/opengl-manpages ) |
126 |
" |
127 |
DEPEND="${RDEPEND} |
128 |
dev-util/pkgconfig |
129 |
x11-misc/makedepend |
130 |
>=x11-proto/dri2proto-1.99.3 |
131 |
>=x11-proto/glproto-1.4.8 |
132 |
x11-proto/inputproto |
133 |
x11-proto/xextproto |
134 |
x11-proto/xf86vidmodeproto |
135 |
x11-proto/xf86driproto |
136 |
" |
137 |
# glew depend on mesa and it is needed in runtime |
138 |
PDEPEND=">=media-libs/glew-1.5.1" |
139 |
|
140 |
S="${WORKDIR}/${MY_P}" |
141 |
|
142 |
# Think about: ggi, svga, fbcon, no-X configs |
143 |
|
144 |
pkg_setup() { |
145 |
if use debug; then |
146 |
append-flags -g |
147 |
fi |
148 |
|
149 |
# gcc 4.2 has buggy ivopts |
150 |
if [[ $(gcc-version) = "4.2" ]]; then |
151 |
append-flags -fno-ivopts |
152 |
fi |
153 |
|
154 |
# recommended by upstream |
155 |
append-flags -ffast-math |
156 |
} |
157 |
|
158 |
src_unpack() { |
159 |
[[ $PV = 9999* ]] && git_src_unpack || unpack ${A} |
160 |
} |
161 |
|
162 |
src_prepare() { |
163 |
# apply patches |
164 |
if [[ ${PV} != 9999* && -n ${SRC_PATCHES} ]]; then |
165 |
EPATCH_FORCE="yes" \ |
166 |
EPATCH_SOURCE="${WORKDIR}/patches" \ |
167 |
EPATCH_SUFFIX="patch" \ |
168 |
epatch |
169 |
fi |
170 |
# FreeBSD 6.* doesn't have posix_memalign(). |
171 |
[[ ${CHOST} == *-freebsd6.* ]] && \ |
172 |
sed -i -e "s/-DHAVE_POSIX_MEMALIGN//" configure.ac |
173 |
|
174 |
eautoreconf |
175 |
} |
176 |
|
177 |
src_configure() { |
178 |
local myconf |
179 |
|
180 |
# Configurable DRI drivers |
181 |
driver_enable swrast |
182 |
driver_enable video_cards_intel i810 i915 i965 |
183 |
driver_enable video_cards_mach64 mach64 |
184 |
driver_enable video_cards_mga mga |
185 |
driver_enable video_cards_r128 r128 |
186 |
# ATI has two implementations as video_cards |
187 |
driver_enable video_cards_radeon radeon r200 r300 |
188 |
driver_enable video_cards_radeonhd r300 |
189 |
driver_enable video_cards_s3virge s3v |
190 |
driver_enable video_cards_savage savage |
191 |
driver_enable video_cards_sis sis |
192 |
driver_enable video_cards_sunffb ffb |
193 |
driver_enable video_cards_tdfx tdfx |
194 |
driver_enable video_cards_trident trident |
195 |
driver_enable video_cards_via unichrome |
196 |
|
197 |
# all live (experimental) stuff is wrapped around with experimental variable |
198 |
# so the users cant get to this parts even with enabled useflags (downgrade |
199 |
# from live to stable for example) |
200 |
if [[ -n ${EXPERIMENTAL} ]]; then |
201 |
# nouveau works only with gallium and intel, radeon, radeonhd can use |
202 |
# gallium as alternative implementation (NOTE: THIS IS EXPERIMENTAL) |
203 |
if use video_cards_nouveau && ! use gallium ; then |
204 |
elog "Nouveau driver is available only via gallium interface." |
205 |
elog "Enable gallium useflag if you want to use nouveau." |
206 |
echo |
207 |
fi |
208 |
# state trackers, for now enable the one i want |
209 |
# think about this bit more... |
210 |
myconf="${myconf} $(use_enable gallium)" |
211 |
if use gallium; then |
212 |
elog "Warning gallium interface is highly experimental so use" |
213 |
elog "it only if you feel really really brave." |
214 |
elog |
215 |
elog "Intel: works only i915." |
216 |
elog "Nouveau: only available implementation, so no other choice" |
217 |
elog "Radeon: not working, disabled." |
218 |
echo |
219 |
myconf="${myconf} |
220 |
--with-state-trackers=glx,dri,egl |
221 |
$(use_enable video_cards_nouveau gallium-nouveau) |
222 |
$(use_enable video_cards_intel gallium-intel)" |
223 |
#$(use_enable video_cards_radeon gallium-radeon) |
224 |
#$(use_enable video_cards_radeonhd gallium-radeon)" |
225 |
fi |
226 |
fi |
227 |
|
228 |
# Deactivate assembly code for pic build |
229 |
# Sparc assembly code is not working |
230 |
myconf="${myconf} $(use_enable !pic asm)" |
231 |
myconf="${myconf} $(use_enable !sparc asm)" |
232 |
|
233 |
# --with-driver=dri|xlib|osmesa ; might get changed later to something |
234 |
# else than dri |
235 |
econf \ |
236 |
--with-driver=dri \ |
237 |
--disable-glut \ |
238 |
--without-demos \ |
239 |
$(use_enable debug) \ |
240 |
$(use_enable motif glw) \ |
241 |
$(use_enable motif) \ |
242 |
$(use_enable nptl glx-tls) \ |
243 |
$(use_enable xcb) \ |
244 |
--with-dri-drivers=${DRI_DRIVERS} \ |
245 |
${myconf} |
246 |
} |
247 |
|
248 |
src_install() { |
249 |
dodir /usr |
250 |
emake DESTDIR="${D}" install || die "Installation failed" |
251 |
|
252 |
# Remove redundant headers |
253 |
# GLUT thing |
254 |
rm -f "${D}"/usr/include/GL/glut*.h || die "Removing glut include failed." |
255 |
# Glew headers |
256 |
rm -f "${D}"/usr/include/GL/{glew,glxew,wglew}.h \ |
257 |
|| die "Removing glew includes failed." |
258 |
|
259 |
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib |
260 |
# because user can eselect desired GL provider. |
261 |
ebegin "Moving libGL and friends for dynamic switching" |
262 |
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/{lib,extensions,include} |
263 |
local x |
264 |
for x in "${D}"/usr/$(get_libdir)/libGL.{la,a,so*}; do |
265 |
if [ -f ${x} -o -L ${x} ]; then |
266 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/lib \ |
267 |
|| die "Failed to move ${x}" |
268 |
fi |
269 |
done |
270 |
for x in "${D}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do |
271 |
if [ -f ${x} -o -L ${x} ]; then |
272 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/include \ |
273 |
|| die "Failed to move ${x}" |
274 |
fi |
275 |
done |
276 |
eend $? |
277 |
|
278 |
# Install libtool archives |
279 |
insinto /usr/$(get_libdir) |
280 |
# Should this use the -L/usr/lib instead of -L/usr/$(get_libdir)? |
281 |
# Please confirm and update this comment or the file. |
282 |
doins "${FILESDIR}"/lib/libGLU.la || die "doins libGLU.la failed" |
283 |
sed \ |
284 |
-e "s:\${libdir}:$(get_libdir):g" \ |
285 |
"${FILESDIR}"/lib/libGL.la \ |
286 |
> "${D}"/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.la |
287 |
|
288 |
# On *BSD libcs dlopen() and similar functions are present directly in |
289 |
# libc.so and does not require linking to libdl. portability eclass takes |
290 |
# care of finding the needed library (if needed) witht the dlopen_lib |
291 |
# function. |
292 |
sed -i \ |
293 |
-e 's:-ldl:'$(dlopen_lib)':g' \ |
294 |
"${D}"/usr/$(get_libdir)/{libGLU.la,opengl/xorg-x11/lib/libGL.la} \ |
295 |
|| die "sed dlopen failed" |
296 |
} |
297 |
|
298 |
pkg_postinst() { |
299 |
# Switch to the xorg implementation. |
300 |
echo |
301 |
eselect opengl set --use-old ${OPENGL_DIR} |
302 |
} |
303 |
|
304 |
# $1 - VIDEO_CARDS flag |
305 |
# other args - names of DRI drivers to enable |
306 |
driver_enable() { |
307 |
case $# in |
308 |
# for enabling unconditionally |
309 |
1) |
310 |
DRI_DRIVERS="${DRI_DRIVERS},$1" |
311 |
;; |
312 |
*) |
313 |
if use $1; then |
314 |
shift |
315 |
for i in $@; do |
316 |
DRI_DRIVERS="${DRI_DRIVERS},${i}" |
317 |
done |
318 |
fi |
319 |
;; |
320 |
esac |
321 |
} |