1 |
remi 09/02/01 19:01:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mesa-7.3.ebuild |
5 |
Log: |
6 |
media-libs/mesa: bump to 7.3, copy from the x11 overlay |
7 |
(Portage version: 2.2_rc23/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.191 media-libs/mesa/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.191&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?rev=1.191&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/ChangeLog?r1=1.190&r2=1.191 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v |
19 |
retrieving revision 1.190 |
20 |
retrieving revision 1.191 |
21 |
diff -u -r1.190 -r1.191 |
22 |
--- ChangeLog 30 Jan 2009 21:35:29 -0000 1.190 |
23 |
+++ ChangeLog 1 Feb 2009 19:01:41 -0000 1.191 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for media-libs/mesa |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.190 2009/01/30 21:35:29 vapier Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.191 2009/02/01 19:01:41 remi Exp $ |
29 |
+ |
30 |
+*mesa-7.3 (01 Feb 2009) |
31 |
+ |
32 |
+ 01 Feb 2009; RĂ©mi Cardona <remi@g.o> +mesa-7.3.ebuild: |
33 |
+ bump to 7.3, copy from the x11 overlay |
34 |
|
35 |
30 Jan 2009; Mike Frysinger <vapier@g.o> metadata.xml: |
36 |
Document local USE=pic flag. |
37 |
|
38 |
|
39 |
|
40 |
1.1 media-libs/mesa/mesa-7.3.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/mesa-7.3.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/mesa/mesa-7.3.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mesa-7.3.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-7.3.ebuild,v 1.1 2009/02/01 19:01:41 remi Exp $ |
50 |
|
51 |
EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa" |
52 |
|
53 |
inherit autotools multilib flag-o-matic git portability |
54 |
|
55 |
OPENGL_DIR="xorg-x11" |
56 |
|
57 |
MY_PN="${PN/m/M}" |
58 |
MY_P="${MY_PN}-${PV/_/-}" |
59 |
MY_SRC_P="${MY_PN}Lib-${PV/_/-}" |
60 |
DESCRIPTION="OpenGL-like graphic library for Linux" |
61 |
HOMEPAGE="http://mesa3d.sourceforge.net/" |
62 |
if [[ $PV = *_rc* ]]; then |
63 |
SRC_URI="http://www.mesa3d.org/beta/${MY_SRC_P}.tar.gz" |
64 |
elif [[ $PV = 9999 ]]; then |
65 |
SRC_URI="" |
66 |
else |
67 |
SRC_URI="mirror://sourceforge/mesa3d/${MY_SRC_P}.tar.bz2" |
68 |
fi |
69 |
LICENSE="LGPL-2" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
72 |
IUSE_VIDEO_CARDS=" |
73 |
video_cards_intel |
74 |
video_cards_mach64 |
75 |
video_cards_mga |
76 |
video_cards_none |
77 |
video_cards_r128 |
78 |
video_cards_radeon |
79 |
video_cards_s3virge |
80 |
video_cards_savage |
81 |
video_cards_sis |
82 |
video_cards_sunffb |
83 |
video_cards_tdfx |
84 |
video_cards_trident |
85 |
video_cards_via" |
86 |
IUSE="${IUSE_VIDEO_CARDS} |
87 |
debug |
88 |
doc |
89 |
pic |
90 |
motif |
91 |
nptl |
92 |
xcb |
93 |
kernel_FreeBSD" |
94 |
|
95 |
RDEPEND="app-admin/eselect-opengl |
96 |
dev-libs/expat |
97 |
x11-libs/libX11 |
98 |
x11-libs/libXext |
99 |
x11-libs/libXxf86vm |
100 |
x11-libs/libXi |
101 |
x11-libs/libXmu |
102 |
x11-libs/libXdamage |
103 |
>=x11-libs/libdrm-2.4.3 |
104 |
x11-libs/libICE |
105 |
motif? ( x11-libs/openmotif ) |
106 |
doc? ( app-doc/opengl-manpages ) |
107 |
!<=x11-base/xorg-x11-6.9" |
108 |
DEPEND="${RDEPEND} |
109 |
!<=x11-proto/xf86driproto-2.0.3 |
110 |
dev-util/pkgconfig |
111 |
x11-misc/makedepend |
112 |
x11-proto/inputproto |
113 |
x11-proto/xextproto |
114 |
!hppa? ( x11-proto/xf86driproto ) |
115 |
>=x11-proto/dri2proto-1.99.3 |
116 |
x11-proto/xf86vidmodeproto |
117 |
>=x11-proto/glproto-1.4.8 |
118 |
motif? ( x11-proto/printproto )" |
119 |
|
120 |
S="${WORKDIR}/${MY_P}" |
121 |
|
122 |
# Think about: ggi, svga, fbcon, no-X configs |
123 |
|
124 |
pkg_setup() { |
125 |
if use xcb; then |
126 |
if ! built_with_use x11-libs/libX11 xcb; then |
127 |
msg="You must build libX11 with xcb enabled." |
128 |
eerror ${msg} |
129 |
die ${msg} |
130 |
fi |
131 |
fi |
132 |
|
133 |
if use debug; then |
134 |
append-flags -g |
135 |
fi |
136 |
|
137 |
# gcc 4.2 has buggy ivopts |
138 |
if [[ $(gcc-version) = "4.2" ]]; then |
139 |
append-flags -fno-ivopts |
140 |
fi |
141 |
|
142 |
# recommended by upstream |
143 |
append-flags -ffast-math |
144 |
} |
145 |
|
146 |
src_unpack() { |
147 |
if [[ $PV = 9999 ]]; then |
148 |
git_src_unpack |
149 |
else |
150 |
unpack ${A} |
151 |
fi |
152 |
cd "${S}" |
153 |
|
154 |
# FreeBSD 6.* doesn't have posix_memalign(). |
155 |
[[ ${CHOST} == *-freebsd6.* ]] && sed -i -e "s/-DHAVE_POSIX_MEMALIGN//" configure.ac |
156 |
|
157 |
# Don't compile debug code with USE=-debug - bug #125004 |
158 |
if ! use debug; then |
159 |
einfo "Removing DO_DEBUG defs in dri drivers..." |
160 |
find src/mesa/drivers/dri -name *.[hc] -exec egrep -l "\#define\W+DO_DEBUG\W+1" {} \; | xargs sed -i -re "s/\#define\W+DO_DEBUG\W+1/\#define DO_DEBUG 0/" ; |
161 |
fi |
162 |
|
163 |
eautoreconf |
164 |
} |
165 |
|
166 |
src_compile() { |
167 |
local myconf |
168 |
|
169 |
# This is where we might later change to build xlib/osmesa |
170 |
myconf="${myconf} --with-driver=dri" |
171 |
|
172 |
# Do we want thread-local storage (TLS)? |
173 |
myconf="${myconf} $(use_enable nptl glx-tls)" |
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 |
driver_enable video_cards_radeon radeon r200 r300 |
182 |
driver_enable video_cards_s3virge s3v |
183 |
driver_enable video_cards_savage savage |
184 |
driver_enable video_cards_sis sis |
185 |
driver_enable video_cards_sunffb ffb |
186 |
driver_enable video_cards_tdfx tdfx |
187 |
driver_enable video_cards_trident trident |
188 |
driver_enable video_cards_via unichrome |
189 |
|
190 |
# Set drivers to everything on which we ran driver_enable() |
191 |
myconf="${myconf} --with-dri-drivers=${DRI_DRIVERS}" |
192 |
|
193 |
# Deactivate assembly code for pic build |
194 |
myconf="${myconf} $(use_enable pic asm)" |
195 |
|
196 |
# Sparc assembly code is not working |
197 |
myconf="${myconf} $(use_enable sparc asm)" |
198 |
|
199 |
myconf="${myconf} --disable-glut" |
200 |
|
201 |
myconf="${myconf} --without-demos" |
202 |
|
203 |
myconf="${myconf} $(use_enable xcb)" |
204 |
|
205 |
# Get rid of glut includes |
206 |
rm -f "${S}"/include/GL/glut*h |
207 |
|
208 |
myconf="${myconf} $(use_enable motif glw)" |
209 |
|
210 |
econf ${myconf} || die |
211 |
emake || die |
212 |
} |
213 |
|
214 |
src_install() { |
215 |
dodir /usr |
216 |
emake \ |
217 |
DESTDIR="${D}" \ |
218 |
install || die "Installation failed" |
219 |
|
220 |
if ! use motif; then |
221 |
rm "${D}"/usr/include/GL/GLwMDrawA.h |
222 |
fi |
223 |
|
224 |
# Don't install private headers |
225 |
rm -f "${D}"/usr/include/GL/GLw*P.h |
226 |
|
227 |
fix_opengl_symlinks |
228 |
dynamic_libgl_install |
229 |
|
230 |
# Install libtool archives |
231 |
insinto /usr/$(get_libdir) |
232 |
# (#67729) Needs to be lib, not $(get_libdir) |
233 |
doins "${FILESDIR}"/lib/libGLU.la |
234 |
sed -e "s:\${libdir}:$(get_libdir):g" "${FILESDIR}"/lib/libGL.la \ |
235 |
> "${D}"/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.la |
236 |
|
237 |
# On *BSD libcs dlopen() and similar functions are present directly in |
238 |
# libc.so and does not require linking to libdl. portability eclass takes |
239 |
# care of finding the needed library (if needed) witht the dlopen_lib |
240 |
# function. |
241 |
sed -i -e 's:-ldl:'$(dlopen_lib)':g' \ |
242 |
"${D}"/usr/$(get_libdir)/libGLU.la \ |
243 |
"${D}"/usr/$(get_libdir)/opengl/xorg-x11/lib/libGL.la |
244 |
|
245 |
# libGLU doesn't get the plain .so symlink either |
246 |
#dosym libGLU.so.1 /usr/$(get_libdir)/libGLU.so |
247 |
|
248 |
# Figure out why libGL.so.1.5 is built (directfb), and why it's linked to |
249 |
# as the default libGL.so.1 |
250 |
} |
251 |
|
252 |
pkg_postinst() { |
253 |
switch_opengl_implem |
254 |
} |
255 |
|
256 |
fix_opengl_symlinks() { |
257 |
# Remove invalid symlinks |
258 |
local LINK |
259 |
for LINK in $(find "${D}"/usr/$(get_libdir) \ |
260 |
-name libGL\.* -type l); do |
261 |
rm -f ${LINK} |
262 |
done |
263 |
# Create required symlinks |
264 |
if [[ ${CHOST} == *-freebsd* ]]; then |
265 |
# FreeBSD doesn't use major.minor versioning, so the library is only |
266 |
# libGL.so.1 and no libGL.so.1.2 is ever used there, thus only create |
267 |
# libGL.so symlink and leave libGL.so.1 being the real thing |
268 |
dosym libGL.so.1 /usr/$(get_libdir)/libGL.so |
269 |
else |
270 |
dosym libGL.so.1.2 /usr/$(get_libdir)/libGL.so |
271 |
dosym libGL.so.1.2 /usr/$(get_libdir)/libGL.so.1 |
272 |
fi |
273 |
} |
274 |
|
275 |
dynamic_libgl_install() { |
276 |
# next section is to setup the dynamic libGL stuff |
277 |
ebegin "Moving libGL and friends for dynamic switching" |
278 |
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/{lib,extensions,include} |
279 |
local x="" |
280 |
for x in "${D}"/usr/$(get_libdir)/libGL.so* \ |
281 |
"${D}"/usr/$(get_libdir)/libGL.la \ |
282 |
"${D}"/usr/$(get_libdir)/libGL.a; do |
283 |
if [ -f ${x} -o -L ${x} ]; then |
284 |
# libGL.a cause problems with tuxracer, etc |
285 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/lib |
286 |
fi |
287 |
done |
288 |
# glext.h added for #54984 |
289 |
for x in "${D}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do |
290 |
if [ -f ${x} -o -L ${x} ]; then |
291 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/include |
292 |
fi |
293 |
done |
294 |
eend 0 |
295 |
} |
296 |
|
297 |
switch_opengl_implem() { |
298 |
# Switch to the xorg implementation. |
299 |
# Use new opengl-update that will not reset user selected |
300 |
# OpenGL interface ... |
301 |
echo |
302 |
eselect opengl set --use-old ${OPENGL_DIR} |
303 |
} |
304 |
|
305 |
# $1 - VIDEO_CARDS flag |
306 |
# other args - names of DRI drivers to enable |
307 |
driver_enable() { |
308 |
case $# in |
309 |
# for enabling unconditionally |
310 |
1) |
311 |
DRI_DRIVERS="${DRI_DRIVERS},$1" |
312 |
;; |
313 |
*) |
314 |
if use $1; then |
315 |
shift |
316 |
for i in $@; do |
317 |
DRI_DRIVERS="${DRI_DRIVERS},${i}" |
318 |
done |
319 |
fi |
320 |
;; |
321 |
esac |
322 |
} |