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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 13 15:35:13 2006 UTC (8 years, 2 months ago) by joshuabaergen
Branch: MAIN
Changes since 1.1: +365 -2 lines
Move driver dependencies from the meta-ebuild to xorg-server as a PDEPEND.  (Michal Suchanek, bug #132696)
(Portage version: 2.1_pre10-r5)

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

  ViewVC Help
Powered by ViewVC 1.1.20