1 |
scarabeus 09/09/29 17:14:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mesa-7.5.2.ebuild |
5 |
Removed: mesa-7.5-r2.ebuild mesa-7.5-r3.ebuild |
6 |
Log: |
7 |
Version bump. Remove old. |
8 |
(Portage version: 2.2_rc41/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.233 media-libs/mesa/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.233&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.233&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?r1=1.232&r2=1.233 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v |
20 |
retrieving revision 1.232 |
21 |
retrieving revision 1.233 |
22 |
diff -u -r1.232 -r1.233 |
23 |
--- ChangeLog 21 Sep 2009 10:41:36 -0000 1.232 |
24 |
+++ ChangeLog 29 Sep 2009 17:14:35 -0000 1.233 |
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.232 2009/09/21 10:41:36 scarabeus Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.233 2009/09/29 17:14:35 scarabeus Exp $ |
30 |
+ |
31 |
+*mesa-7.5.2 (29 Sep 2009) |
32 |
+ |
33 |
+ 29 Sep 2009; Tomáš Chvátal <scarabeus@g.o> -mesa-7.5-r2.ebuild, |
34 |
+ -mesa-7.5-r3.ebuild, +mesa-7.5.2.ebuild: |
35 |
+ Version bump. Remove old. |
36 |
|
37 |
21 Sep 2009; Tomáš Chvátal <scarabeus@g.o> mesa-7.1.ebuild, |
38 |
mesa-7.2.ebuild, mesa-7.3-r1.ebuild, mesa-7.4.4.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-libs/mesa/mesa-7.5.2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/mesa-7.5.2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/mesa-7.5.2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mesa-7.5.2.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.5.2.ebuild,v 1.1 2009/09/29 17:14:35 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="ftp://ftp.freedesktop.org/pub/mesa/beta/${MY_SRC_P}.tar.gz |
80 |
${SRC_PATCHES}" |
81 |
elif [[ $PV = 9999* ]]; then |
82 |
SRC_URI="${SRC_PATCHES}" |
83 |
else |
84 |
SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${PV}/${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 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.9 |
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 |
" |
126 |
DEPEND="${RDEPEND} |
127 |
dev-util/pkgconfig |
128 |
x11-misc/makedepend |
129 |
>=x11-proto/dri2proto-1.99.3 |
130 |
>=x11-proto/glproto-1.4.8 |
131 |
x11-proto/inputproto |
132 |
x11-proto/xextproto |
133 |
x11-proto/xf86driproto |
134 |
x11-proto/xf86vidmodeproto |
135 |
" |
136 |
# glew depend on mesa and it is needed in runtime |
137 |
PDEPEND=">=media-libs/glew-1.5.1" |
138 |
|
139 |
S="${WORKDIR}/${MY_P}" |
140 |
|
141 |
# Think about: ggi, svga, fbcon, no-X configs |
142 |
|
143 |
pkg_setup() { |
144 |
# gcc 4.2 has buggy ivopts |
145 |
if [[ $(gcc-version) = "4.2" ]]; then |
146 |
append-flags -fno-ivopts |
147 |
fi |
148 |
|
149 |
# recommended by upstream |
150 |
append-flags -ffast-math |
151 |
} |
152 |
|
153 |
src_unpack() { |
154 |
[[ $PV = 9999* ]] && git_src_unpack || unpack ${A} |
155 |
} |
156 |
|
157 |
src_prepare() { |
158 |
# apply patches |
159 |
if [[ ${PV} != 9999* && -n ${SRC_PATCHES} ]]; then |
160 |
EPATCH_FORCE="yes" \ |
161 |
EPATCH_SOURCE="${WORKDIR}/patches" \ |
162 |
EPATCH_SUFFIX="patch" \ |
163 |
epatch |
164 |
fi |
165 |
# FreeBSD 6.* doesn't have posix_memalign(). |
166 |
[[ ${CHOST} == *-freebsd6.* ]] && \ |
167 |
sed -i -e "s/-DHAVE_POSIX_MEMALIGN//" configure.ac |
168 |
|
169 |
eautoreconf |
170 |
} |
171 |
|
172 |
src_configure() { |
173 |
local myconf |
174 |
|
175 |
# Configurable DRI drivers |
176 |
driver_enable swrast |
177 |
driver_enable video_cards_intel i810 i915 i965 |
178 |
driver_enable video_cards_mach64 mach64 |
179 |
driver_enable video_cards_mga mga |
180 |
driver_enable video_cards_r128 r128 |
181 |
# ATI has two implementations as video_cards |
182 |
driver_enable video_cards_radeon radeon r200 r300 |
183 |
driver_enable video_cards_radeonhd r300 |
184 |
driver_enable video_cards_s3virge s3v |
185 |
driver_enable video_cards_savage savage |
186 |
driver_enable video_cards_sis sis |
187 |
driver_enable video_cards_sunffb ffb |
188 |
driver_enable video_cards_tdfx tdfx |
189 |
driver_enable video_cards_trident trident |
190 |
driver_enable video_cards_via unichrome |
191 |
|
192 |
# all live (experimental) stuff is wrapped around with experimental variable |
193 |
# so the users cant get to this parts even with enabled useflags (downgrade |
194 |
# from live to stable for example) |
195 |
if [[ -n ${EXPERIMENTAL} ]]; then |
196 |
# nouveau works only with gallium and intel, radeon, radeonhd can use |
197 |
# gallium as alternative implementation (NOTE: THIS IS EXPERIMENTAL) |
198 |
if use video_cards_nouveau && ! use gallium ; then |
199 |
elog "Nouveau driver is available only via gallium interface." |
200 |
elog "Enable gallium useflag if you want to use nouveau." |
201 |
echo |
202 |
fi |
203 |
# state trackers, for now enable the one i want |
204 |
# think about this bit more... |
205 |
myconf="${myconf} $(use_enable gallium)" |
206 |
if use gallium; then |
207 |
elog "Warning gallium interface is highly experimental so use" |
208 |
elog "it only if you feel really really brave." |
209 |
elog |
210 |
elog "Intel: works only i915." |
211 |
elog "Nouveau: only available implementation, so no other choice" |
212 |
elog "Radeon: not working, disabled." |
213 |
echo |
214 |
myconf="${myconf} |
215 |
--with-state-trackers=glx,dri,egl |
216 |
$(use_enable video_cards_nouveau gallium-nouveau) |
217 |
$(use_enable video_cards_intel gallium-intel)" |
218 |
#$(use_enable video_cards_radeon gallium-radeon) |
219 |
#$(use_enable video_cards_radeonhd gallium-radeon)" |
220 |
fi |
221 |
else |
222 |
# we need to disable the gallium since they enable by default... |
223 |
myconf="${myconf} --disable-gallium" |
224 |
fi |
225 |
|
226 |
# Deactivate assembly code for pic build |
227 |
myconf="${myconf} $(use_enable !pic asm)" |
228 |
|
229 |
# --with-driver=dri|xlib|osmesa ; might get changed later to something |
230 |
# else than dri |
231 |
econf \ |
232 |
--with-driver=dri \ |
233 |
--disable-glut \ |
234 |
--without-demos \ |
235 |
$(use_enable debug) \ |
236 |
$(use_enable motif glw) \ |
237 |
$(use_enable motif) \ |
238 |
$(use_enable nptl glx-tls) \ |
239 |
$(use_enable xcb) \ |
240 |
--with-dri-drivers=${DRI_DRIVERS} \ |
241 |
${myconf} |
242 |
} |
243 |
|
244 |
src_install() { |
245 |
dodir /usr |
246 |
emake DESTDIR="${D}" install || die "Installation failed" |
247 |
|
248 |
# Remove redundant headers |
249 |
# GLUT thing |
250 |
rm -f "${D}"/usr/include/GL/glut*.h || die "Removing glut include failed." |
251 |
# Glew includes |
252 |
rm -f "${D}"/usr/include/GL/{glew,glxew,wglew}.h \ |
253 |
|| die "Removing glew includes failed." |
254 |
|
255 |
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib |
256 |
# because user can eselect desired GL provider. |
257 |
ebegin "Moving libGL and friends for dynamic switching" |
258 |
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/{lib,extensions,include} |
259 |
local x |
260 |
for x in "${D}"/usr/$(get_libdir)/libGL.{la,a,so*}; do |
261 |
if [ -f ${x} -o -L ${x} ]; then |
262 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/lib \ |
263 |
|| die "Failed to move ${x}" |
264 |
fi |
265 |
done |
266 |
for x in "${D}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do |
267 |
if [ -f ${x} -o -L ${x} ]; then |
268 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/include \ |
269 |
|| die "Failed to move ${x}" |
270 |
fi |
271 |
done |
272 |
eend $? |
273 |
|
274 |
# Install libtool archives |
275 |
insinto /usr/$(get_libdir) |
276 |
# Should this use the -L/usr/lib instead of -L/usr/$(get_libdir)? |
277 |
# Please confirm and update this comment or the file. |
278 |
doins "${FILESDIR}"/lib/libGLU.la || die "doins libGLU.la failed" |
279 |
sed \ |
280 |
-e "s:\${libdir}:$(get_libdir):g" \ |
281 |
"${FILESDIR}"/lib/libGL.la \ |
282 |
> "${D}"/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.la |
283 |
|
284 |
# On *BSD libcs dlopen() and similar functions are present directly in |
285 |
# libc.so and does not require linking to libdl. portability eclass takes |
286 |
# care of finding the needed library (if needed) witht the dlopen_lib |
287 |
# function. |
288 |
sed -i \ |
289 |
-e 's:-ldl:'$(dlopen_lib)':g' \ |
290 |
"${D}"/usr/$(get_libdir)/{libGLU.la,opengl/xorg-x11/lib/libGL.la} \ |
291 |
|| die "sed dlopen failed" |
292 |
} |
293 |
|
294 |
pkg_postinst() { |
295 |
# Switch to the xorg implementation. |
296 |
echo |
297 |
eselect opengl set --use-old ${OPENGL_DIR} |
298 |
} |
299 |
|
300 |
# $1 - VIDEO_CARDS flag |
301 |
# other args - names of DRI drivers to enable |
302 |
driver_enable() { |
303 |
case $# in |
304 |
# for enabling unconditionally |
305 |
1) |
306 |
DRI_DRIVERS="${DRI_DRIVERS},$1" |
307 |
;; |
308 |
*) |
309 |
if use $1; then |
310 |
shift |
311 |
for i in $@; do |
312 |
DRI_DRIVERS="${DRI_DRIVERS},${i}" |
313 |
done |
314 |
fi |
315 |
;; |
316 |
esac |
317 |
} |