/[gentoo-x86]/x11-base/xorg-server/xorg-server-1.1.0.ebuild
Gentoo

Contents of /x11-base/xorg-server/xorg-server-1.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue May 23 04:30:27 2006 UTC (8 years, 2 months ago) by joshuabaergen
Branch: MAIN
Bump for 7.1 final.  Includes various crash fixes, etc.
(Portage version: 2.1_rc1-r4)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.0.99.903.ebuild,v 1.4 2006/05/14 22:16:51 spyderous Exp $
4
5 # Must be before x-modular eclass is inherited
6 # Hack to make sure autoreconf gets run
7 SNAPSHOT="yes"
8
9 inherit x-modular multilib
10
11 OPENGL_DIR="xorg-x11"
12
13 MESA_PN="Mesa"
14 MESA_PV="6.5"
15 MESA_P="${MESA_PN}-${MESA_PV}"
16 MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
17
18 PATCHES="${FILESDIR}/${PN}-1.0.2-xprint-init.patch
19 ${FILESDIR}/1.0.99.901-Xprint-xprintdir.patch"
20
21 SRC_URI="${SRC_URI}
22 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
23 http://xorg.freedesktop.org/snapshots/individual/xserver/${P}.tar.bz2"
24 DESCRIPTION="X.Org X servers"
25 # It's suid and has lazy bindings, so FEATURES="stricter" doesn't work
26 RESTRICT="stricter"
27 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
28 IUSE_INPUT_DEVICES="
29 input_devices_acecad
30 input_devices_aiptek
31 input_devices_calcomp
32 input_devices_citron
33 input_devices_digitaledge
34 input_devices_dmc
35 input_devices_dynapro
36 input_devices_elo2300
37 input_devices_elographics
38 input_devices_evdev
39 input_devices_fpit
40 input_devices_hyperpen
41 input_devices_jamstudio
42 input_devices_joystick
43 input_devices_keyboard
44 input_devices_magellan
45 input_devices_magictouch
46 input_devices_microtouch
47 input_devices_mouse
48 input_devices_mutouch
49 input_devices_palmax
50 input_devices_penmount
51 input_devices_spaceorb
52 input_devices_summa
53 input_devices_tek4957
54 input_devices_ur98
55 input_devices_vmmouse
56 input_devices_void
57
58 input_devices_synaptics
59 input_devices_wacom"
60 IUSE_VIDEO_CARDS="
61 video_cards_apm
62 video_cards_ark
63 video_cards_chips
64 video_cards_cirrus
65 video_cards_cyrix
66 video_cards_dummy
67 video_cards_epson
68 video_cards_fbdev
69 video_cards_glint
70 video_cards_i128
71 video_cards_i740
72 video_cards_i810
73 video_cards_imstt
74 video_cards_mach64
75 video_cards_mga
76 video_cards_neomagic
77 video_cards_newport
78 video_cards_nsc
79 video_cards_nv
80 video_cards_r128
81 video_cards_radeon
82 video_cards_rendition
83 video_cards_s3
84 video_cards_s3virge
85 video_cards_savage
86 video_cards_siliconmotion
87 video_cards_sis
88 video_cards_sisusb
89 video_cards_sunbw2
90 video_cards_suncg14
91 video_cards_suncg3
92 video_cards_suncg6
93 video_cards_sunffb
94 video_cards_sunleo
95 video_cards_suntcx
96 video_cards_tdfx
97 video_cards_tga
98 video_cards_trident
99 video_cards_tseng
100 video_cards_v4l
101 video_cards_vesa
102 video_cards_vga
103 video_cards_via
104 video_cards_vmware
105 video_cards_voodoo
106
107 video_cards_nvidia
108 video_cards_fglrx"
109 IUSE="${IUSE_VIDEO_CARDS}
110 ${IUSE_INPUT_DEVICES}
111 3dfx
112 dmx dri ipv6 kdrive minimal nptl sdl xorg xprint"
113 RDEPEND="x11-libs/libXfont
114 x11-libs/xtrans
115 x11-libs/libXau
116 x11-libs/libXext
117 x11-libs/libX11
118 x11-libs/libxkbfile
119 x11-libs/libXdmcp
120 x11-libs/libXmu
121 x11-libs/libXrender
122 x11-libs/libXi
123 media-libs/freetype
124 >=media-libs/mesa-6.5-r2
125 media-fonts/font-adobe-75dpi
126 media-fonts/font-misc-misc
127 media-fonts/font-cursor-misc
128 x11-misc/xbitmaps
129 || ( x11-misc/xkeyboard-config x11-misc/xkbdata )
130 x11-apps/iceauth
131 x11-apps/rgb
132 x11-apps/xauth
133 x11-apps/xinit
134 app-admin/eselect-opengl
135 x11-libs/libXaw
136 x11-libs/libXpm
137 x11-libs/libXxf86misc
138 x11-libs/libXxf86vm
139 !minimal? ( x11-libs/libdmx
140 x11-libs/libXtst
141 x11-libs/libXres )
142 >=x11-libs/libxkbui-1.0.2
143 x11-libs/liblbxutil
144 kdrive? ( sdl? ( media-libs/libsdl ) )"
145 # Xres is dmx-dependent, xkbui is xorgcfg-dependent
146 # Xaw is dmx- and xorgcfg-dependent
147 # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
148 # Xxf86misc and Xxf86vm are xorgcfg-dependent
149 # liblbxutil is lbx- dependent
150 DEPEND="${RDEPEND}
151 x11-proto/randrproto
152 x11-proto/renderproto
153 >=x11-proto/fixesproto-4
154 x11-proto/damageproto
155 x11-proto/xextproto
156 x11-proto/xproto
157 x11-proto/xf86dgaproto
158 x11-proto/xf86miscproto
159 x11-proto/xf86rushproto
160 x11-proto/xf86vidmodeproto
161 x11-proto/xf86bigfontproto
162 >=x11-proto/compositeproto-0.3
163 x11-proto/recordproto
164 x11-proto/resourceproto
165 x11-proto/videoproto
166 >=x11-proto/scrnsaverproto-1.1.0
167 x11-proto/evieext
168 x11-proto/trapproto
169 >=x11-proto/xineramaproto-1.1-r1
170 x11-proto/fontsproto
171 >=x11-proto/kbproto-1.0-r1
172 x11-proto/inputproto
173 x11-proto/bigreqsproto
174 x11-proto/xcmiscproto
175 >=x11-proto/glproto-1.4.6
176 !minimal? ( x11-proto/dmxproto )
177 dri? ( x11-proto/xf86driproto
178 >=x11-libs/libdrm-2 )
179 xprint? ( x11-proto/printproto
180 x11-apps/mkfontdir
181 x11-apps/mkfontscale )"
182
183 # Drivers
184 ###############################################################################
185 ###############################################################################
186 ## ##
187 ## REMEMBER TO EDIT USE.MASK FILES IF CHANGING ARCHITECTURE DEPENDENCIES ##
188 ## ##
189 ###############################################################################
190 ###############################################################################
191 PDEPEND="
192 || (
193 (
194 input_devices_acecad? ( >=x11-drivers/xf86-input-acecad-1.1.0 )
195 input_devices_aiptek? ( >=x11-drivers/xf86-input-aiptek-1.0.1 )
196 input_devices_calcomp? ( >=x11-drivers/xf86-input-calcomp-1.1.0 )
197 input_devices_citron? ( >=x11-drivers/xf86-input-citron-2.2.0 )
198 input_devices_digitaledge? ( >=x11-drivers/xf86-input-digitaledge-1.1.0 )
199 input_devices_dmc? ( >=x11-drivers/xf86-input-dmc-1.1.0 )
200 input_devices_dynapro? ( >=x11-drivers/xf86-input-dynapro-1.1.0 )
201 input_devices_elo2300? ( >=x11-drivers/xf86-input-elo2300-1.1.0 )
202 input_devices_elographics? ( >=x11-drivers/xf86-input-elographics-1.1.0 )
203 input_devices_evdev? ( >=x11-drivers/xf86-input-evdev-1.1.1 )
204 input_devices_fpit? ( >=x11-drivers/xf86-input-fpit-1.1.0 )
205 input_devices_hyperpen? ( >=x11-drivers/xf86-input-hyperpen-1.1.0 )
206 input_devices_jamstudio? ( >=x11-drivers/xf86-input-jamstudio-1.1.0 )
207 input_devices_joystick? ( >=x11-drivers/xf86-input-joystick-1.1.0 )
208 input_devices_keyboard? ( >=x11-drivers/xf86-input-keyboard-1.1.0 )
209 input_devices_magellan? ( >=x11-drivers/xf86-input-magellan-1.1.0 )
210 input_devices_magictouch? ( x11-drivers/xf86-input-magictouch )
211 input_devices_microtouch? ( >=x11-drivers/xf86-input-microtouch-1.1.0 )
212 input_devices_mouse? ( >=x11-drivers/xf86-input-mouse-1.1.0 )
213 input_devices_mutouch? ( >=x11-drivers/xf86-input-mutouch-1.1.0 )
214 input_devices_palmax? ( >=x11-drivers/xf86-input-palmax-1.1.0 )
215 input_devices_penmount? ( >=x11-drivers/xf86-input-penmount-1.1.0 )
216 input_devices_spaceorb? ( >=x11-drivers/xf86-input-spaceorb-1.1.0 )
217 input_devices_summa? ( >=x11-drivers/xf86-input-summa-1.1.0 )
218 input_devices_tek4957? ( >=x11-drivers/xf86-input-tek4957-1.1.0 )
219 input_devices_ur98? ( >=x11-drivers/xf86-input-ur98-1.1.0 )
220 input_devices_vmmouse? ( >=x11-drivers/xf86-input-vmmouse-12.4.0 )
221 input_devices_void? ( >=x11-drivers/xf86-input-void-1.1.0 )
222
223 input_devices_synaptics? ( x11-drivers/synaptics )
224 input_devices_wacom? ( x11-misc/linuxwacom )
225 )
226 (
227 >=x11-drivers/xf86-input-acecad-1.1.0
228 >=x11-drivers/xf86-input-calcomp-1.1.0
229 >=x11-drivers/xf86-input-citron-2.2.0
230 >=x11-drivers/xf86-input-digitaledge-1.1.0
231 >=x11-drivers/xf86-input-dmc-1.1.0
232 >=x11-drivers/xf86-input-dynapro-1.1.0
233 >=x11-drivers/xf86-input-elo2300-1.1.0
234 >=x11-drivers/xf86-input-elographics-1.1.0
235 >=x11-drivers/xf86-input-fpit-1.1.0
236 >=x11-drivers/xf86-input-hyperpen-1.1.0
237 >=x11-drivers/xf86-input-jamstudio-1.1.0
238 >=x11-drivers/xf86-input-joystick-1.1.0
239 >=x11-drivers/xf86-input-keyboard-1.1.0
240 >=x11-drivers/xf86-input-magellan-1.1.0
241 x11-drivers/xf86-input-magictouch
242 >=x11-drivers/xf86-input-microtouch-1.1.0
243 >=x11-drivers/xf86-input-mouse-1.1.0
244 >=x11-drivers/xf86-input-mutouch-1.1.0
245 >=x11-drivers/xf86-input-palmax-1.1.0
246 >=x11-drivers/xf86-input-penmount-1.1.0
247 >=x11-drivers/xf86-input-spaceorb-1.1.0
248 >=x11-drivers/xf86-input-summa-1.1.0
249 >=x11-drivers/xf86-input-tek4957-1.1.0
250 >=x11-drivers/xf86-input-void-1.1.0
251
252 kernel_linux? (
253 >=x11-drivers/xf86-input-aiptek-1.0.1
254 >=x11-drivers/xf86-input-evdev-1.1.1
255 >=x11-drivers/xf86-input-ur98-1.1.0
256 )
257
258 x86? ( >=x11-drivers/xf86-input-vmmouse-12.4.0
259 x11-drivers/synaptics
260 x11-misc/linuxwacom
261 )
262 x86-fbsd? ( >=x11-drivers/xf86-input-vmmouse-12.4.0 )
263 amd64? ( >=x11-drivers/xf86-input-vmmouse-12.4.0
264 x11-drivers/synaptics
265 x11-misc/linuxwacom
266 )
267 ppc? ( x11-drivers/synaptics
268 x11-misc/linuxwacom
269 )
270 ppc64? ( x11-drivers/synaptics
271 x11-misc/linuxwacom
272 )
273 )
274 )
275 input_devices_synaptics? ( >=x11-drivers/synaptics-0.14.4-r2 )
276 || (
277 (
278 video_cards_apm? ( >=x11-drivers/xf86-video-apm-1.1.1 )
279 video_cards_ark? ( >=x11-drivers/xf86-video-ark-0.6.0 )
280 video_cards_chips? ( >=x11-drivers/xf86-video-chips-1.1.1 )
281 video_cards_cirrus? ( >=x11-drivers/xf86-video-cirrus-1.1.0 )
282 video_cards_cyrix? ( >=x11-drivers/xf86-video-cyrix-1.1.0 )
283 video_cards_dummy? ( >=x11-drivers/xf86-video-dummy-0.2.0 )
284 video_cards_fbdev? ( >=x11-drivers/xf86-video-fbdev-0.2.0 )
285 video_cards_glint? ( >=x11-drivers/xf86-video-glint-1.1.1 )
286 video_cards_i128? ( >=x11-drivers/xf86-video-i128-1.2.0 )
287 video_cards_i740? ( >=x11-drivers/xf86-video-i740-1.1.0 )
288 video_cards_i810? ( >=x11-drivers/xf86-video-i810-1.6.0 )
289 video_cards_imstt? ( >=x11-drivers/xf86-video-imstt-1.1.0 )
290 video_cards_mach64? ( >=x11-drivers/xf86-video-ati-6.6.0 )
291 video_cards_mga? ( >=x11-drivers/xf86-video-mga-1.4.1 )
292 video_cards_neomagic? ( >=x11-drivers/xf86-video-neomagic-1.1.1 )
293 video_cards_newport? ( >=x11-drivers/xf86-video-newport-0.2.0 )
294 video_cards_nsc? ( >=x11-drivers/xf86-video-nsc-2.8.1 )
295 video_cards_nv? ( >=x11-drivers/xf86-video-nv-1.1.1 )
296 video_cards_r128? ( >=x11-drivers/xf86-video-ati-6.6.0 )
297 video_cards_radeon? ( >=x11-drivers/xf86-video-ati-6.6.0 )
298 video_cards_rendition? ( >=x11-drivers/xf86-video-rendition-4.1.0 )
299 video_cards_s3? ( >=x11-drivers/xf86-video-s3-0.4.1 )
300 video_cards_s3virge? ( >=x11-drivers/xf86-video-s3virge-1.9.1 )
301 video_cards_savage? ( >=x11-drivers/xf86-video-savage-2.1.1 )
302 video_cards_siliconmotion? ( >=x11-drivers/xf86-video-siliconmotion-1.4.1 )
303 video_cards_sis? ( >=x11-drivers/xf86-video-sis-0.9.1 )
304 video_cards_sisusb? ( >=x11-drivers/xf86-video-sisusb-0.8.1 )
305 video_cards_sunbw2? ( >=x11-drivers/xf86-video-sunbw2-1.1.0 )
306 video_cards_suncg14? ( >=x11-drivers/xf86-video-suncg14-1.1.0 )
307 video_cards_suncg3? ( >=x11-drivers/xf86-video-suncg3-1.1.0 )
308 video_cards_suncg6? ( >=x11-drivers/xf86-video-suncg6-1.1.0 )
309 video_cards_sunffb? ( >=x11-drivers/xf86-video-sunffb-1.1.0 )
310 video_cards_sunleo? ( >=x11-drivers/xf86-video-sunleo-1.1.0 )
311 video_cards_suntcx? ( >=x11-drivers/xf86-video-suntcx-1.1.0 )
312 video_cards_tdfx? ( >=x11-drivers/xf86-video-tdfx-1.2.1 )
313 video_cards_tga? ( >=x11-drivers/xf86-video-tga-1.1.0 )
314 video_cards_trident? ( >=x11-drivers/xf86-video-trident-1.2.1 )
315 video_cards_tseng? ( >=x11-drivers/xf86-video-tseng-1.1.0 )
316 video_cards_v4l? ( >=x11-drivers/xf86-video-v4l-0.1.1 )
317 video_cards_vesa? ( >=x11-drivers/xf86-video-vesa-1.1.0 )
318 video_cards_vga? ( >=x11-drivers/xf86-video-vga-4.1.0 )
319 video_cards_via? ( >=x11-drivers/xf86-video-via-0.2.1 )
320 video_cards_vmware? ( >=x11-drivers/xf86-video-vmware-10.13.0 )
321 video_cards_voodoo? ( >=x11-drivers/xf86-video-voodoo-1.1.0 )
322
323 video_cards_3dfx? ( 3dfx? ( >=media-libs/glide-v3-3.10 ) )
324 video_cards_nvidia? ( media-video/nvidia-glx )
325 video_cards_fglrx? ( x11-drivers/ati-drivers )
326 )
327 (
328 >=x11-drivers/xf86-video-dummy-0.2.0
329 >=x11-drivers/xf86-video-fbdev-0.2.0
330
331 !hppa? (
332 >=x11-drivers/xf86-video-ati-6.6.0
333 >=x11-drivers/xf86-video-mga-1.4.1
334
335 >=x11-drivers/xf86-video-sisusb-0.8.1
336 kernel_linux? ( >=x11-drivers/xf86-video-v4l-0.1.1 )
337 )
338
339 3dfx? ( >=media-libs/glide-v3-3.10 )
340
341 alpha? ( >=x11-drivers/xf86-video-cirrus-1.1.0
342 >=x11-drivers/xf86-video-glint-1.1.1
343 >=x11-drivers/xf86-video-nv-1.1.1
344 >=x11-drivers/xf86-video-rendition-4.1.0
345 >=x11-drivers/xf86-video-s3-0.4.1
346 >=x11-drivers/xf86-video-s3virge-1.9.1
347 >=x11-drivers/xf86-video-savage-2.1.1
348 >=x11-drivers/xf86-video-siliconmotion-1.4.1
349 >=x11-drivers/xf86-video-tdfx-1.2.1
350 >=x11-drivers/xf86-video-tga-1.1.0
351 >=x11-drivers/xf86-video-vga-4.1.0
352 >=x11-drivers/xf86-video-voodoo-1.1.0 )
353 amd64? ( >=x11-drivers/xf86-video-apm-1.1.1
354 >=x11-drivers/xf86-video-ark-0.6.0
355 >=x11-drivers/xf86-video-chips-1.1.1
356 >=x11-drivers/xf86-video-cirrus-1.1.0
357 >=x11-drivers/xf86-video-cyrix-1.1.0
358 >=x11-drivers/xf86-video-glint-1.1.1
359 >=x11-drivers/xf86-video-i128-1.2.0
360 >=x11-drivers/xf86-video-i810-1.6.0
361 >=x11-drivers/xf86-video-neomagic-1.1.1
362 >=x11-drivers/xf86-video-nv-1.1.1
363 >=x11-drivers/xf86-video-rendition-4.1.0
364 >=x11-drivers/xf86-video-s3-0.4.1
365 >=x11-drivers/xf86-video-s3virge-1.9.1
366 >=x11-drivers/xf86-video-savage-2.1.1
367 >=x11-drivers/xf86-video-siliconmotion-1.4.1
368 >=x11-drivers/xf86-video-sis-0.9.1
369 >=x11-drivers/xf86-video-tdfx-1.2.1
370 >=x11-drivers/xf86-video-tga-1.1.0
371 >=x11-drivers/xf86-video-trident-1.2.1
372 >=x11-drivers/xf86-video-tseng-1.1.0
373 >=x11-drivers/xf86-video-vesa-1.1.0
374 >=x11-drivers/xf86-video-vga-4.1.0
375 >=x11-drivers/xf86-video-via-0.2.1
376 >=x11-drivers/xf86-video-vmware-10.13.0
377 >=x11-drivers/xf86-video-voodoo-1.1.0 )
378 arm? ( >=x11-drivers/xf86-video-chips-1.1.1
379 >=x11-drivers/xf86-video-glint-1.1.1
380 >=x11-drivers/xf86-video-nv-1.1.1
381 >=x11-drivers/xf86-video-s3-0.4.1
382 >=x11-drivers/xf86-video-s3virge-1.9.1
383 >=x11-drivers/xf86-video-savage-2.1.1
384 >=x11-drivers/xf86-video-sis-0.9.1
385 >=x11-drivers/xf86-video-tdfx-1.2.1
386 >=x11-drivers/xf86-video-trident-1.2.1
387 >=x11-drivers/xf86-video-vga-4.1.0
388 >=x11-drivers/xf86-video-voodoo-1.1.0 )
389 ia64? ( >=x11-drivers/xf86-video-apm-1.1.1
390 >=x11-drivers/xf86-video-ark-0.6.0
391 >=x11-drivers/xf86-video-chips-1.1.1
392 >=x11-drivers/xf86-video-cirrus-1.1.0
393 >=x11-drivers/xf86-video-cyrix-1.1.0
394 >=x11-drivers/xf86-video-glint-1.1.1
395 >=x11-drivers/xf86-video-i128-1.2.0
396 >=x11-drivers/xf86-video-i740-1.1.0
397 >=x11-drivers/xf86-video-i810-1.6.0
398 >=x11-drivers/xf86-video-imstt-1.1.0
399 >=x11-drivers/xf86-video-neomagic-1.1.1
400 >=x11-drivers/xf86-video-nv-1.1.1
401 >=x11-drivers/xf86-video-rendition-4.1.0
402 >=x11-drivers/xf86-video-s3-0.4.1
403 >=x11-drivers/xf86-video-s3virge-1.9.1
404 >=x11-drivers/xf86-video-savage-2.1.1
405 >=x11-drivers/xf86-video-siliconmotion-1.4.1
406 >=x11-drivers/xf86-video-sis-0.9.1
407 >=x11-drivers/xf86-video-tdfx-1.2.1
408 >=x11-drivers/xf86-video-tga-1.1.0
409 >=x11-drivers/xf86-video-trident-1.2.1
410 >=x11-drivers/xf86-video-tseng-1.1.0
411 >=x11-drivers/xf86-video-vesa-1.1.0
412 >=x11-drivers/xf86-video-vga-4.1.0
413 >=x11-drivers/xf86-video-via-0.2.1
414 >=x11-drivers/xf86-video-voodoo-1.1.0 )
415 mips? ( >=x11-drivers/xf86-video-newport-0.2.0 )
416 ppc? ( >=x11-drivers/xf86-video-chips-1.1.1
417 >=x11-drivers/xf86-video-glint-1.1.1
418 >=x11-drivers/xf86-video-imstt-1.1.0
419 >=x11-drivers/xf86-video-nv-1.1.1
420 >=x11-drivers/xf86-video-s3-0.4.1
421 >=x11-drivers/xf86-video-s3virge-1.9.1
422 >=x11-drivers/xf86-video-savage-2.1.1
423 >=x11-drivers/xf86-video-sis-0.9.1
424 >=x11-drivers/xf86-video-tdfx-1.2.1
425 >=x11-drivers/xf86-video-trident-1.2.1
426 >=x11-drivers/xf86-video-vga-4.1.0
427 >=x11-drivers/xf86-video-voodoo-1.1.0 )
428 ppc64? ( >=x11-drivers/xf86-video-nv-1.1.1 )
429 sparc? (
430 >=x11-drivers/xf86-video-glint-1.1.1
431 >=x11-drivers/xf86-video-savage-2.1.1
432 >=x11-drivers/xf86-video-sunbw2-1.1.0
433 >=x11-drivers/xf86-video-suncg14-1.1.0
434 >=x11-drivers/xf86-video-suncg3-1.1.0
435 >=x11-drivers/xf86-video-suncg6-1.1.0
436 >=x11-drivers/xf86-video-sunffb-1.1.0
437 >=x11-drivers/xf86-video-sunleo-1.1.0
438 >=x11-drivers/xf86-video-suntcx-1.1.0
439 >=x11-drivers/xf86-video-tdfx-1.2.1
440 >=x11-drivers/xf86-video-vesa-1.1.0
441 >=x11-drivers/xf86-video-vga-4.1.0
442 >=x11-drivers/xf86-video-voodoo-1.1.0 )
443 x86? ( >=x11-drivers/xf86-video-apm-1.1.1
444 >=x11-drivers/xf86-video-ark-0.6.0
445 >=x11-drivers/xf86-video-chips-1.1.1
446 >=x11-drivers/xf86-video-cirrus-1.1.0
447 >=x11-drivers/xf86-video-cyrix-1.1.0
448 >=x11-drivers/xf86-video-glint-1.1.1
449 >=x11-drivers/xf86-video-i128-1.2.0
450 >=x11-drivers/xf86-video-i740-1.1.0
451 >=x11-drivers/xf86-video-i810-1.6.0
452 >=x11-drivers/xf86-video-imstt-1.1.0
453 >=x11-drivers/xf86-video-neomagic-1.1.1
454 >=x11-drivers/xf86-video-nsc-2.8.1
455 >=x11-drivers/xf86-video-nv-1.1.1
456 >=x11-drivers/xf86-video-rendition-4.1.0
457 >=x11-drivers/xf86-video-s3-0.4.1
458 >=x11-drivers/xf86-video-s3virge-1.9.1
459 >=x11-drivers/xf86-video-savage-2.1.1
460 >=x11-drivers/xf86-video-siliconmotion-1.4.1
461 >=x11-drivers/xf86-video-sis-0.9.1
462 >=x11-drivers/xf86-video-tdfx-1.2.1
463 >=x11-drivers/xf86-video-tga-1.1.0
464 >=x11-drivers/xf86-video-trident-1.2.1
465 >=x11-drivers/xf86-video-tseng-1.1.0
466 >=x11-drivers/xf86-video-vesa-1.1.0
467 >=x11-drivers/xf86-video-vga-4.1.0
468 >=x11-drivers/xf86-video-via-0.2.1
469 >=x11-drivers/xf86-video-vmware-10.13.0
470 >=x11-drivers/xf86-video-voodoo-1.1.0 )
471 x86-fbsd? (
472 >=x11-drivers/xf86-video-vmware-10.13.0 )
473 )
474 )"
475 LICENSE="${LICENSE} MIT"
476
477 pkg_setup() {
478 # localstatedir is used for the log location; we need to override the default
479 # from ebuild.sh
480 # sysconfdir is used for the xorg.conf location; same applies
481
482 # --enable-xorg needed because darwin defaults off
483 # --enable-install-setuid needed because sparcs default off
484
485 # SDL only available in kdrive build
486 if use kdrive && use sdl; then
487 conf_opts="${conf_opts} --enable-xsdl"
488 else
489 conf_opts="${conf_opts} --disable-xsdl"
490 fi
491
492 # Only Xorg and Xgl support this, and we won't build Xgl
493 # until it merges to trunk
494 if use xorg; then
495 conf_opts="${conf_opts} --with-mesa-source=${WORKDIR}/${MESA_P}"
496 fi
497
498 CONFIGURE_OPTIONS="
499 $(use_enable ipv6)
500 $(use_enable dmx)
501 $(use_enable kdrive)
502 $(use_enable !minimal xvfb)
503 $(use_enable !minimal xnest)
504 $(use_enable dri)
505 $(use_enable xorg)
506 $(use_enable xprint)
507 $(use_enable nptl glx-tls)
508 --sysconfdir=/etc/X11
509 --localstatedir=/var
510 --enable-install-setuid
511 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1
512 ${conf_opts}"
513
514 local diemsg="You must build xorg-server and mesa with the same nptl USE setting."
515 if built_with_use media-libs/mesa nptl; then
516 use nptl || die "${diemsg}"
517 else
518 use nptl && die "${diemsg}"
519 fi
520
521 # (#121394) Causes window corruption
522 filter-flags -fweb
523
524 # Nothing else provides new enough glxtokens.h
525 ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
526 OLD_IMPLEM="$(eselect opengl show)"
527 eselect opengl set --impl-headers ${OPENGL_DIR}
528 }
529
530 src_unpack() {
531 x-modular_specs_check
532 x-modular_dri_check
533 x-modular_unpack_source
534 x-modular_patch_source
535
536 # Set up kdrive servers to build
537 if use kdrive; then
538 einfo "Removing unused kdrive drivers ..."
539 for card in ${IUSE_VIDEO_CARDS}; do
540 real_card=${card#video_cards_}
541
542 # Differences between VIDEO_CARDS name and kdrive server name
543 real_card=${real_card/glint/pm2}
544 real_card=${real_card/radeon/ati}
545 real_card=${real_card/nv/nvidia}
546 real_card=${real_card/siliconmotion/smi}
547 real_card=${real_card/%sis/sis300}
548 if ! use ${card}; then
549 ebegin " ${real_card}"
550 sed -i \
551 -e "s:\b${real_card}\b::g" \
552 ${S}/hw/kdrive/Makefile.am \
553 || die "sed of ${real_card} failed"
554 eend
555 fi
556
557 done
558
559 # smi and via are the only things on line 2. If line 2 ends up blank,
560 # we need to get rid of the backslash at the end of line 1.
561 if ! use video_cards_siliconmotion && ! use video_cards_via; then
562 sed -i \
563 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \
564 ${S}/hw/kdrive/Makefile.am
565 fi
566
567 # Only need to reconf if we're modifying kdrive's Makefile.am
568 x-modular_reconf_source
569 fi
570 }
571
572 src_install() {
573 x-modular_src_install
574
575 dynamic_libgl_install
576
577 server_based_install
578 }
579
580 pkg_postinst() {
581 switch_opengl_implem
582 }
583
584 pkg_postrm() {
585 # Get rid of module dir to ensure opengl-update works properly
586 if ! has_version x11-base/xorg-server; then
587 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
588 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
589 fi
590 fi
591 }
592
593 dynamic_libgl_install() {
594 # next section is to setup the dynamic libGL stuff
595 ebegin "Moving GL files for dynamic switching"
596 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
597 local x=""
598 for x in ${D}/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
599 if [ -f ${x} -o -L ${x} ]; then
600 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
601 fi
602 done
603 eend 0
604 }
605
606 server_based_install() {
607 use xprint && xprint_src_install
608
609 if ! use xorg; then
610 rm ${D}/usr/share/man/man1/Xserver.1x \
611 ${D}/usr/$(get_libdir)/xserver/SecurityPolicy \
612 ${D}/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
613 ${D}/usr/share/man/man1/Xserver.1x
614 fi
615 }
616
617 switch_opengl_implem() {
618 # Switch to the xorg implementation.
619 # Use new opengl-update that will not reset user selected
620 # OpenGL interface ...
621 echo
622 # eselect opengl set --use-old ${OPENGL_DIR}
623 eselect opengl set ${OLD_IMPLEM}
624 }
625
626 xprint_src_install() {
627 # RH-style init script, we provide a wrapper
628 exeinto /usr/$(get_libdir)/misc
629 doexe ${S}/Xprint/etc/init.d/xprint
630 # Patch init script for fonts location
631 sed -e 's:/lib/X11/fonts/:/share/fonts/:g' \
632 -i ${D}/usr/$(get_libdir)/misc/xprint
633 # Install the wrapper
634 newinitd ${FILESDIR}/xprint.init xprint
635 # Install profile scripts
636 insinto /etc/profile.d
637 doins ${S}/Xprint/etc/profile.d/xprint*
638 insinto /etc/X11/xinit/xinitrc.d
639 newins ${S}/Xprint/etc/Xsession.d/cde_xsessiond_xprint.sh \
640 92xprint-xpserverlist.sh
641 # Patch profile scripts
642 sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
643 get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \
644 ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist.sh
645 # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo
646 dodoc ${D}/etc/profile.d/xprint*
647 rm -f ${D}/etc/profile.d/xprint*
648 }

  ViewVC Help
Powered by ViewVC 1.1.20