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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Fri Jun 30 22:05:52 2006 UTC (8 years, 2 months ago) by spyderous
Branch: MAIN
Changes since 1.8: +1 -3 lines
sparc shouldn't pull in vesa and vga.
(Portage version: 2.1.1_pre1-r1)

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

  ViewVC Help
Powered by ViewVC 1.1.20