Gentoo Archives: gentoo-commits

From: "Donnie Berkholz (dberkholz)" <dberkholz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-base/xorg-server: ChangeLog xorg-server-1.5.0.ebuild
Date: Sat, 06 Sep 2008 07:12:17
Message-Id: E1Kbrxt-0003VI-Nn@stork.gentoo.org
1 dberkholz 08/09/06 07:12:13
2
3 Modified: ChangeLog
4 Added: xorg-server-1.5.0.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc5 x86_64)
8
9 Revision Changes Path
10 1.349 x11-base/xorg-server/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.349&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.349&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?r1=1.348&r2=1.349
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v
19 retrieving revision 1.348
20 retrieving revision 1.349
21 diff -u -r1.348 -r1.349
22 --- ChangeLog 5 Aug 2008 21:22:56 -0000 1.348
23 +++ ChangeLog 6 Sep 2008 07:12:13 -0000 1.349
24 @@ -1,6 +1,12 @@
25 # ChangeLog for x11-base/xorg-server
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.348 2008/08/05 21:22:56 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.349 2008/09/06 07:12:13 dberkholz Exp $
29 +
30 +*xorg-server-1.5.0 (06 Sep 2008)
31 +
32 + 06 Sep 2008; Donnie Berkholz <dberkholz@g.o>;
33 + +xorg-server-1.5.0.ebuild:
34 + Version bump.
35
36 05 Aug 2008; Doug Goldstein <cardoe@g.o> metadata.xml:
37 add GLEP 56 USE flag desc from use.local.desc
38
39
40
41 1.1 x11-base/xorg-server/xorg-server-1.5.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.5.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.5.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xorg-server-1.5.0.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.5.0.ebuild,v 1.1 2008/09/06 07:12:13 dberkholz Exp $
51
52 # Must be before x-modular eclass is inherited
53 SNAPSHOT="yes"
54
55 inherit x-modular multilib
56
57 OPENGL_DIR="xorg-x11"
58
59 SRC_URI="${SRC_URI}
60 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2"
61 DESCRIPTION="X.Org X servers"
62 KEYWORDS="~amd64 ~x86"
63 IUSE_INPUT_DEVICES="
64 input_devices_acecad
65 input_devices_aiptek
66 input_devices_calcomp
67 input_devices_citron
68 input_devices_digitaledge
69 input_devices_dmc
70 input_devices_dynapro
71 input_devices_elo2300
72 input_devices_elographics
73 input_devices_evdev
74 input_devices_fpit
75 input_devices_hyperpen
76 input_devices_jamstudio
77 input_devices_joystick
78 input_devices_keyboard
79 input_devices_magellan
80 input_devices_microtouch
81 input_devices_mouse
82 input_devices_mutouch
83 input_devices_palmax
84 input_devices_penmount
85 input_devices_spaceorb
86 input_devices_summa
87 input_devices_tek4957
88 input_devices_ur98
89 input_devices_vmmouse
90 input_devices_void
91
92 input_devices_synaptics
93 input_devices_wacom"
94 IUSE_VIDEO_CARDS="
95 video_cards_apm
96 video_cards_ark
97 video_cards_chips
98 video_cards_cirrus
99 video_cards_cyrix
100 video_cards_dummy
101 video_cards_epson
102 video_cards_fbdev
103 video_cards_geode
104 video_cards_glint
105 video_cards_i128
106 video_cards_i740
107 video_cards_i810
108 video_cards_impact
109 video_cards_imstt
110 video_cards_mach64
111 video_cards_mga
112 video_cards_neomagic
113 video_cards_newport
114 video_cards_nsc
115 video_cards_nv
116 video_cards_r128
117 video_cards_radeon
118 video_cards_radeonhd
119 video_cards_rendition
120 video_cards_s3
121 video_cards_s3virge
122 video_cards_savage
123 video_cards_siliconmotion
124 video_cards_sis
125 video_cards_sisusb
126 video_cards_sunbw2
127 video_cards_suncg14
128 video_cards_suncg3
129 video_cards_suncg6
130 video_cards_sunffb
131 video_cards_sunleo
132 video_cards_suntcx
133 video_cards_tdfx
134 video_cards_tga
135 video_cards_trident
136 video_cards_tseng
137 video_cards_v4l
138 video_cards_vermilion
139 video_cards_vesa
140 video_cards_vga
141 video_cards_via
142 video_cards_vmware
143 video_cards_voodoo
144 video_cards_xgi
145 video_cards_fglrx
146 video_cards_nvidia"
147 IUSE_SERVERS="dmx kdrive xorg"
148 IUSE="${IUSE_VIDEO_CARDS}
149 ${IUSE_INPUT_DEVICES}
150 ${IUSE_SERVERS}
151 3dfx
152 dri hal ipv6 minimal nptl sdl"
153 RDEPEND="hal? ( sys-apps/hal )
154 >=x11-libs/libXfont-1.3.3
155 >=x11-libs/xtrans-1.2.1
156 >=x11-libs/libXau-1.0.4
157 >=x11-libs/libXext-1.0.4
158 >=x11-libs/libX11-1.1.5
159 >=x11-libs/libxkbfile-1.0.4
160 >=x11-libs/libXdmcp-1.0.2
161 >=x11-libs/libXmu-1.0.3
162 >=x11-libs/libXrender-0.9.4
163 >=x11-libs/libXi-1.1.3
164 >=x11-libs/pixman-0.10
165 media-libs/freetype
166 >=media-libs/mesa-7.1
167 media-fonts/font-adobe-75dpi
168 media-fonts/font-misc-misc
169 media-fonts/font-cursor-misc
170 >=x11-misc/xbitmaps-1.0.1
171 >=x11-misc/xkeyboard-config-1.3
172 >=x11-apps/iceauth-1.0.2
173 >=x11-apps/rgb-1.0.3
174 >=x11-apps/xauth-1.0.3
175 >=x11-apps/xinit-1.0.8-r3
176 app-admin/eselect-opengl
177 >=x11-libs/libXaw-1.0.4
178 >=x11-libs/libXpm-3.5.7
179 >=x11-libs/libXxf86misc-1.0.1
180 >=x11-libs/libXxf86vm-1.0.2
181 >=x11-libs/libpciaccess-0.10.3
182 dmx? ( >=x11-libs/libdmx-1.0.2
183 >=x11-libs/libXfixes-4.0.3 )
184 !minimal? ( >=x11-libs/libXtst-1.0.3
185 >=x11-libs/libXres-1.0.3 )
186 >=x11-libs/libxkbui-1.0.2
187 >=x11-libs/liblbxutil-1.0.1
188 kdrive? ( sdl? ( media-libs/libsdl ) )"
189 # Xres is dmx-dependent, xkbui is xorgcfg-dependent
190 # Xaw is dmx- and xorgcfg-dependent
191 # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
192 # Xxf86misc and Xxf86vm are xorgcfg-dependent
193 # liblbxutil is lbx- dependent
194 DEPEND="${RDEPEND}
195 !net-dialup/dtrace
196 >=x11-proto/randrproto-1.2.2
197 >=x11-proto/renderproto-0.9.3
198 >=x11-proto/fixesproto-4
199 >=x11-proto/damageproto-1.1
200 >=x11-proto/xextproto-7.0.3
201 >=x11-proto/xproto-7.0.13
202 >=x11-proto/xf86dgaproto-2.0.3
203 >=x11-proto/xf86miscproto-0.9.2
204 >=x11-proto/xf86rushproto-1.1.2
205 >=x11-proto/xf86vidmodeproto-2.2.2
206 >=x11-proto/xf86bigfontproto-1.1.2
207 >=x11-proto/compositeproto-0.4
208 >=x11-proto/recordproto-1.13.2
209 >=x11-proto/resourceproto-1.0.2
210 >=x11-proto/videoproto-2.2.2
211 >=x11-proto/scrnsaverproto-1.1.0
212 >=x11-proto/evieext-1.0.2
213 >=x11-proto/trapproto-3.4.3
214 >=x11-proto/xineramaproto-1.1.2
215 >=x11-proto/fontsproto-2.0.2
216 >=x11-proto/kbproto-1.0.3
217 >=x11-proto/inputproto-1.4.4
218 >=x11-proto/bigreqsproto-1.0.2
219 >=x11-proto/xcmiscproto-1.1.2
220 >=x11-proto/glproto-1.4.9
221 dmx? ( >=x11-proto/dmxproto-2.2.2 )
222 dri? ( >=x11-proto/xf86driproto-2.0.4
223 >=x11-libs/libdrm-2.3 )"
224
225 # Drivers
226 PDEPEND="
227 xorg? (
228 input_devices_acecad? ( >=x11-drivers/xf86-input-acecad-1.2.2 )
229 input_devices_aiptek? ( >=x11-drivers/xf86-input-aiptek-1.1.1 )
230 input_devices_calcomp? ( >=x11-drivers/xf86-input-calcomp-1.1.2 )
231 input_devices_citron? ( >=x11-drivers/xf86-input-citron-2.2.1 )
232 input_devices_digitaledge? ( >=x11-drivers/xf86-input-digitaledge-1.1.1 )
233 input_devices_dmc? ( >=x11-drivers/xf86-input-dmc-1.1.2 )
234 input_devices_dynapro? ( >=x11-drivers/xf86-input-dynapro-1.1.2 )
235 input_devices_elo2300? ( >=x11-drivers/xf86-input-elo2300-1.1.2 )
236 input_devices_elographics? ( >=x11-drivers/xf86-input-elographics-1.2.2 )
237 input_devices_evdev? ( >=x11-drivers/xf86-input-evdev-2.0.2 )
238 input_devices_fpit? ( >=x11-drivers/xf86-input-fpit-1.2.0 )
239 input_devices_hyperpen? ( >=x11-drivers/xf86-input-hyperpen-1.2.0 )
240 input_devices_jamstudio? ( >=x11-drivers/xf86-input-jamstudio-1.2.0 )
241 input_devices_joystick? ( >=x11-drivers/xf86-input-joystick-1.3.2 )
242 input_devices_keyboard? ( >=x11-drivers/xf86-input-keyboard-1.3.1 )
243 input_devices_magellan? ( >=x11-drivers/xf86-input-magellan-1.2.0 )
244 input_devices_microtouch? ( >=x11-drivers/xf86-input-microtouch-1.2.0 )
245 input_devices_mouse? ( >=x11-drivers/xf86-input-mouse-1.3.0 )
246 input_devices_mutouch? ( >=x11-drivers/xf86-input-mutouch-1.2.0 )
247 input_devices_palmax? ( >=x11-drivers/xf86-input-palmax-1.2.0 )
248 input_devices_penmount? ( >=x11-drivers/xf86-input-penmount-1.3.0 )
249 input_devices_spaceorb? ( >=x11-drivers/xf86-input-spaceorb-1.1.1 )
250 input_devices_summa? ( >=x11-drivers/xf86-input-summa-1.2.0 )
251 input_devices_tek4957? ( >=x11-drivers/xf86-input-tek4957-1.2.0 )
252 input_devices_ur98? ( >=x11-drivers/xf86-input-ur98-1.1.0 )
253 input_devices_vmmouse? ( >=x11-drivers/xf86-input-vmmouse-12.5.0 )
254 input_devices_void? ( >=x11-drivers/xf86-input-void-1.1.1 )
255
256 input_devices_synaptics? ( ||
257 ( x11-drivers/xf86-input-synaptics x11-drivers/synaptics )
258 )
259 input_devices_wacom? ( x11-drivers/linuxwacom )
260
261 video_cards_apm? ( >=x11-drivers/xf86-video-apm-1.2.0 )
262 video_cards_ark? ( >=x11-drivers/xf86-video-ark-0.7.0 )
263 video_cards_ast? ( >=x11-drivers/xf86-video-ast-0.85.0 )
264 video_cards_chips? ( >=x11-drivers/xf86-video-chips-1.2.0 )
265 video_cards_cirrus? ( >=x11-drivers/xf86-video-cirrus-1.2.1 )
266 video_cards_dummy? ( >=x11-drivers/xf86-video-dummy-0.3.0 )
267 video_cards_fbdev? ( >=x11-drivers/xf86-video-fbdev-0.4.0 )
268 video_cards_geode? ( >=x11-drivers/xf86-video-geode-2.9.0 )
269 video_cards_glint? ( >=x11-drivers/xf86-video-glint-1.2.1 )
270 video_cards_i128? ( >=x11-drivers/xf86-video-i128-1.3.1 )
271 video_cards_i740? ( >=x11-drivers/xf86-video-i740-1.2.0 )
272 video_cards_i810? ( >=x11-drivers/xf86-video-i810-2.4.2-r1 )
273 video_cards_mach64? ( >=x11-drivers/xf86-video-mach64-6.8.0 )
274 video_cards_mga? ( >=x11-drivers/xf86-video-mga-1.4.9 )
275 video_cards_neomagic? ( >=x11-drivers/xf86-video-neomagic-1.2.1 )
276 video_cards_nv? ( >=x11-drivers/xf86-video-nv-2.1.12 )
277 video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-173.14.09 )
278 video_cards_r128? ( >=x11-drivers/xf86-video-r128-6.8.0 )
279 video_cards_radeon? ( >=x11-drivers/xf86-video-ati-6.9.0 )
280 video_cards_radeonhd? ( >=x11-drivers/xf86-video-radeonhd-1.2.1 )
281 video_cards_rendition? ( >=x11-drivers/xf86-video-rendition-4.2.0 )
282 video_cards_s3? ( >=x11-drivers/xf86-video-s3-0.6.0 )
283 video_cards_s3virge? ( >=x11-drivers/xf86-video-s3virge-1.10.1 )
284 video_cards_savage? ( >=x11-drivers/xf86-video-savage-2.2.1 )
285 video_cards_siliconmotion? ( >=x11-drivers/xf86-video-siliconmotion-1.6.0 )
286 video_cards_sis? ( >=x11-drivers/xf86-video-sis-0.10.0 )
287 video_cards_sisusb? ( >=x11-drivers/xf86-video-sisusb-0.9.0 )
288 video_cards_sunffb? ( >=x11-drivers/xf86-video-sunffb-1.2.0 )
289 video_cards_sunleo? ( >=x11-drivers/xf86-video-sunleo-1.2.0 )
290 video_cards_tdfx? ( >=x11-drivers/xf86-video-tdfx-1.4.0 )
291 video_cards_tga? ( >=x11-drivers/xf86-video-tga-1.2.0 )
292 video_cards_trident? ( >=x11-drivers/xf86-video-trident-1.3.0 )
293 video_cards_tseng? ( >=x11-drivers/xf86-video-tseng-1.2.0 )
294 video_cards_v4l? ( >=x11-drivers/xf86-video-v4l-0.2.0 )
295 video_cards_vesa? ( >=x11-drivers/xf86-video-vesa-2.0.0 )
296 video_cards_via? ( >=x11-drivers/xf86-video-openchrome-0.2.903 )
297 video_cards_vmware? ( >=x11-drivers/xf86-video-vmware-10.16.5 )
298 video_cards_voodoo? ( >=x11-drivers/xf86-video-voodoo-1.2.0 )
299 video_cards_xgi? ( >=x11-drivers/xf86-video-xgi-1.5.0 )
300
301 video_cards_tdfx? ( 3dfx? ( >=media-libs/glide-v3-3.10 ) )
302 !x11-drivers/ati-drivers
303
304 !x11-drivers/xf86-video-impact
305 !x11-drivers/xf86-video-imstt
306 !x11-drivers/xf86-video-newport
307 !x11-drivers/xf86-video-sunbw2
308 !x11-drivers/xf86-video-suncg14
309 !x11-drivers/xf86-video-suncg3
310 !x11-drivers/xf86-video-suncg6
311 !x11-drivers/xf86-video-suntcx
312 !x11-drivers/xf86-video-vermilion
313
314 !x11-drivers/xf86-video-cyrix
315 !x11-drivers/xf86-video-nsc
316 !x11-drivers/xf86-video-vga
317 )"
318 LICENSE="${LICENSE} MIT"
319
320 EPATCH_FORCE="yes"
321 EPATCH_SUFFIX="patch"
322
323 # Local customizations, unsuitable for upstream
324 GENTOO_PATCHES=(
325 "${FILESDIR}/1.4-fpic-libxf86config.patch"
326 "${FILESDIR}/1.4-fix-kdrive-automake.patch"
327 )
328
329 # These have been sent upstream
330 UPSTREAMED_PATCHES=()
331
332 PATCHES=(
333 "${GENTOO_PATCHES[@]}"
334 "${UPSTREAMED_PATCHES[@]}"
335 )
336
337 pkg_setup() {
338 use minimal || ensure_a_server_is_building
339
340 # SDL only available in kdrive build
341 if use kdrive && use sdl; then
342 conf_opts="${conf_opts} --enable-xsdl"
343 else
344 conf_opts="${conf_opts} --disable-xsdl"
345 fi
346
347 # localstatedir is used for the log location; we need to override the default
348 # from ebuild.sh
349 # sysconfdir is used for the xorg.conf location; same applies
350 # --enable-install-setuid needed because sparcs default off
351 CONFIGURE_OPTIONS="
352 $(use_enable ipv6)
353 $(use_enable dmx)
354 $(use_enable kdrive)
355 $(use_enable !minimal xvfb)
356 $(use_enable !minimal xnest)
357 $(use_enable !minimal xfree86-utils)
358 $(use_enable !minimal install-libxf86config)
359 $(use_enable dri)
360 $(use_enable xorg)
361 $(use_enable nptl glx-tls)
362 $(use_enable !minimal xorgcfg)
363 $(use_enable hal config-dbus)
364 $(use_enable hal config-hal)
365 --disable-dri2
366 --sysconfdir=/etc/X11
367 --localstatedir=/var
368 --enable-install-setuid
369 --with-fontdir=/usr/share/fonts
370 --with-xkb-output=/var/lib/xkb
371 ${conf_opts}"
372
373 local diemsg="You must build xorg-server and mesa with the same nptl USE setting."
374 if built_with_use media-libs/mesa nptl; then
375 use nptl || die "${diemsg}"
376 else
377 use nptl && die "${diemsg}"
378 fi
379
380 # (#121394) Causes window corruption
381 filter-flags -fweb
382
383 # Nothing else provides new enough glxtokens.h
384 ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
385 OLD_IMPLEM="$(eselect opengl show)"
386 eselect opengl set --impl-headers ${OPENGL_DIR}
387 }
388
389 src_unpack() {
390 x-modular_specs_check
391 x-modular_dri_check
392 x-modular_unpack_source
393 x-modular_patch_source
394
395 # Set up kdrive servers to build
396 if use kdrive; then
397 kdrive_setup
398 fi
399
400 # Make sure eautoreconf gets run if we need the autoconf/make
401 # changes.
402 if [[ ${SNAPSHOT} != "yes" ]]; then
403 if use kdrive || use dmx; then
404 SNAPSHOT="yes"
405 fi
406 fi
407
408 if use hal; then
409 sed -i \
410 -e "s:^\(dbusconfigdir = \).*\(dbus-1.*\):\1/etc/\2:g" \
411 "${S}"/config/Makefile.am \
412 || die "failed to fix DBUS config directory"
413 SNAPSHOT="yes"
414 fi
415
416 x-modular_reconf_source
417 }
418
419 src_install() {
420 x-modular_src_install
421
422 dynamic_libgl_install
423
424 server_based_install
425
426 # Install video mode files for system-config-display
427 insinto /usr/share/xorg
428 doins hw/xfree86/common/{extra,vesa}modes \
429 || die "couldn't install extra modes"
430
431 # Bug #151421 - this file is not built with USE="minimal"
432 # Bug #151670 - this file is also not build if USE="-xorg"
433 if ! use minimal && use xorg; then
434 # Install xorg.conf.example
435 insinto /etc/X11
436 doins hw/xfree86/xorg.conf.example \
437 || die "couldn't install xorg.conf.example"
438 fi
439 }
440
441 pkg_postinst() {
442 switch_opengl_implem
443
444 # Bug #135544
445 ewarn "Users of reduced blanking now need:"
446 ewarn " Option \"ReducedBlanking\""
447 ewarn "In the relevant Monitor section(s)."
448 ewarn "Make sure your reduced blanking modelines are safe!"
449
450 echo
451 ewarn "You must rebuild all drivers if upgrading from xorg-server 1.4.1"
452 ewarn "or earlier, because the ABI changed. If you cannot start X because"
453 ewarn "of module version mismatch errors, this is your problem."
454
455 echo
456 ewarn "You can generate a list of all installed packages in the x11-drivers"
457 ewarn "category using this command:"
458 ewarn "emerge portage-utils; qlist -I -C x11-drivers/"
459
460 ebeep 5
461 epause 10
462 }
463
464 pkg_postrm() {
465 # Get rid of module dir to ensure opengl-update works properly
466 if ! has_version x11-base/xorg-server; then
467 if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
468 rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
469 fi
470 fi
471 }
472
473 kdrive_setup() {
474 local card real_card disable_card kdrive_fbdev kdrive_vesa
475
476 einfo "Removing unused kdrive drivers ..."
477
478 # Some kdrive servers require fbdev and vesa
479 kdrive_fbdev="radeon neomagic sis siliconmotion"
480 # Some kdrive servers require just vesa
481 kdrive_vesa="chips mach64 mga nv glint r128 via"
482
483 for card in ${IUSE_VIDEO_CARDS}; do
484 real_card=${card#video_cards_}
485
486 # Differences between VIDEO_CARDS name and kdrive server name
487 real_card=${real_card/glint/pm2}
488 real_card=${real_card/radeon/ati}
489 real_card=${real_card/%nv/nvidia}
490 real_card=${real_card/siliconmotion/smi}
491 real_card=${real_card/%sis/sis300}
492
493 disable_card=0
494
495 # Check whether it's a valid kdrive server before we waste time
496 # on the rest of this
497 if ! grep -q -o "\b${real_card}\b" "${S}"/hw/kdrive/Makefile.am; then
498 continue
499 fi
500
501 if ! use ${card}; then
502 if use x86; then
503 # Some kdrive servers require fbdev and vesa
504 for i in ${kdrive_fbdev}; do
505 if use video_cards_${i}; then
506 if [[ ${real_card} = fbdev ]] \
507 || [[ ${real_card} = vesa ]]; then
508 continue 2 # Don't disable
509 fi
510 fi
511 done
512
513 # Some kdrive servers require just vesa
514 for i in ${kdrive_vesa}; do
515 if use video_cards_${i}; then
516 if [[ ${real_card} = vesa ]]; then
517 continue 2 # Don't disable
518 fi
519 fi
520 done
521 fi
522 disable_card=1
523 # Bug #150052
524 # fbdev is the only VIDEO_CARDS setting that works on non-x86
525 elif ! use x86 \
526 && [[ ${real_card} != fbdev ]]; then
527 ewarn " $real_card does not work on your architecture; disabling."
528 disable_card=1
529 fi
530
531 if [[ $disable_card = 1 ]]; then
532 ebegin " ${real_card}"
533 sed -i \
534 -e "s:\b${real_card}\b::g" \
535 "${S}"/hw/kdrive/Makefile.am \
536 || die "sed of ${real_card} failed"
537 eend
538 fi
539
540 done
541 }
542
543 dynamic_libgl_install() {
544 # next section is to setup the dynamic libGL stuff
545 ebegin "Moving GL files for dynamic switching"
546 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
547 local x=""
548 for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
549 if [ -f ${x} -o -L ${x} ]; then
550 mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
551 fi
552 done
553 eend 0
554 }
555
556 server_based_install() {
557 if ! use xorg; then
558 rm "${D}"/usr/share/man/man1/Xserver.1x \
559 "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
560 "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
561 "${D}"/usr/share/man/man1/Xserver.1x
562 fi
563 }
564
565 switch_opengl_implem() {
566 # Switch to the xorg implementation.
567 # Use new opengl-update that will not reset user selected
568 # OpenGL interface ...
569 echo
570 # eselect opengl set --use-old ${OPENGL_DIR}
571 eselect opengl set ${OLD_IMPLEM}
572 }
573
574 ensure_a_server_is_building() {
575 for server in ${IUSE_SERVERS}; do
576 use ${server} && return;
577 done
578 eerror "You need to specify at least one server to build."
579 eerror "Valid servers are: ${IUSE_SERVERS}."
580 die "No servers were specified to build."
581 }