1 |
dberkholz 08/07/01 08:41:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xorg-server-1.4.99.905.ebuild |
5 |
Log: |
6 |
Bump to the latest RC. |
7 |
(Portage version: 2.1.5.6) |
8 |
|
9 |
Revision Changes Path |
10 |
1.345 x11-base/xorg-server/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.345&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.345&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?r1=1.344&r2=1.345 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v |
19 |
retrieving revision 1.344 |
20 |
retrieving revision 1.345 |
21 |
diff -u -r1.344 -r1.345 |
22 |
--- ChangeLog 27 Jun 2008 16:48:41 -0000 1.344 |
23 |
+++ ChangeLog 1 Jul 2008 08:41:58 -0000 1.345 |
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.344 2008/06/27 16:48:41 dberkholz Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.345 2008/07/01 08:41:58 dberkholz Exp $ |
29 |
+ |
30 |
+*xorg-server-1.4.99.905 (01 Jul 2008) |
31 |
+ |
32 |
+ 01 Jul 2008; Donnie Berkholz <dberkholz@g.o>; |
33 |
+ +xorg-server-1.4.99.905.ebuild: |
34 |
+ Bump to the latest RC. |
35 |
|
36 |
27 Jun 2008; Donnie Berkholz <dberkholz@g.o>; |
37 |
-files/1.4.2-unbreak-endianess.patch, xorg-server-1.4.2.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 x11-base/xorg-server/xorg-server-1.4.99.905.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.4.99.905.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.4.99.905.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: xorg-server-1.4.99.905.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.4.99.905.ebuild,v 1.1 2008/07/01 08:41:58 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" |
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" # xprint |
153 |
RDEPEND="hal? ( sys-apps/hal ) |
154 |
>=x11-libs/libXfont-1.3.2 |
155 |
>=x11-libs/xtrans-1.0.4 |
156 |
>=x11-libs/libXau-1.0.3 |
157 |
>=x11-libs/libXext-1.0.4 |
158 |
>=x11-libs/libX11-1.1.4 |
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_rc1 |
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 |
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.1 |
181 |
>=x11-libs/libpciaccess-0.10 |
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.1 |
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.3-r1 |
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 |
# xprint? ( >=x11-proto/printproto-1.0.4 |
225 |
# >=x11-apps/mkfontdir-1.0.4 |
226 |
# >=x11-apps/mkfontscale-1.0.5 |
227 |
# >=x11-apps/xplsprinters-1.0.1 )" |
228 |
|
229 |
# Drivers |
230 |
PDEPEND=" |
231 |
xorg? ( |
232 |
input_devices_acecad? ( >=x11-drivers/xf86-input-acecad-1.2.2 ) |
233 |
input_devices_aiptek? ( >=x11-drivers/xf86-input-aiptek-1.1.1 ) |
234 |
input_devices_calcomp? ( >=x11-drivers/xf86-input-calcomp-1.1.2 ) |
235 |
input_devices_citron? ( >=x11-drivers/xf86-input-citron-2.2.1 ) |
236 |
input_devices_digitaledge? ( >=x11-drivers/xf86-input-digitaledge-1.1.1 ) |
237 |
input_devices_dmc? ( >=x11-drivers/xf86-input-dmc-1.1.2 ) |
238 |
input_devices_dynapro? ( >=x11-drivers/xf86-input-dynapro-1.1.2 ) |
239 |
input_devices_elo2300? ( >=x11-drivers/xf86-input-elo2300-1.1.2 ) |
240 |
input_devices_elographics? ( >=x11-drivers/xf86-input-elographics-1.2.1 ) |
241 |
input_devices_evdev? ( >=x11-drivers/xf86-input-evdev-1.99.2-r2 ) |
242 |
input_devices_fpit? ( >=x11-drivers/xf86-input-fpit-1.2.0 ) |
243 |
input_devices_hyperpen? ( >=x11-drivers/xf86-input-hyperpen-1.2.0 ) |
244 |
input_devices_jamstudio? ( >=x11-drivers/xf86-input-jamstudio-1.2.0 ) |
245 |
input_devices_joystick? ( >=x11-drivers/xf86-input-joystick-1.3.2 ) |
246 |
input_devices_keyboard? ( >=x11-drivers/xf86-input-keyboard-1.3.1 ) |
247 |
input_devices_magellan? ( >=x11-drivers/xf86-input-magellan-1.2.0 ) |
248 |
input_devices_microtouch? ( >=x11-drivers/xf86-input-microtouch-1.2.0 ) |
249 |
input_devices_mouse? ( >=x11-drivers/xf86-input-mouse-1.3.0 ) |
250 |
input_devices_mutouch? ( >=x11-drivers/xf86-input-mutouch-1.2.0 ) |
251 |
input_devices_palmax? ( >=x11-drivers/xf86-input-palmax-1.2.0 ) |
252 |
input_devices_penmount? ( >=x11-drivers/xf86-input-penmount-1.3.0 ) |
253 |
input_devices_spaceorb? ( >=x11-drivers/xf86-input-spaceorb-1.1.1 ) |
254 |
input_devices_summa? ( >=x11-drivers/xf86-input-summa-1.2.0 ) |
255 |
input_devices_tek4957? ( >=x11-drivers/xf86-input-tek4957-1.2.0 ) |
256 |
input_devices_ur98? ( >=x11-drivers/xf86-input-ur98-1.1.0 ) |
257 |
input_devices_vmmouse? ( >=x11-drivers/xf86-input-vmmouse-12.5.0 ) |
258 |
input_devices_void? ( >=x11-drivers/xf86-input-void-1.1.1 ) |
259 |
|
260 |
input_devices_synaptics? ( x11-drivers/synaptics ) |
261 |
input_devices_wacom? ( x11-drivers/linuxwacom ) |
262 |
|
263 |
video_cards_apm? ( >=x11-drivers/xf86-video-apm-1.2.0 ) |
264 |
video_cards_ark? ( >=x11-drivers/xf86-video-ark-0.7.0 ) |
265 |
video_cards_ast? ( >=x11-drivers/xf86-video-ast-0.85.0 ) |
266 |
video_cards_chips? ( >=x11-drivers/xf86-video-chips-1.2.0 ) |
267 |
video_cards_cirrus? ( >=x11-drivers/xf86-video-cirrus-1.2.1 ) |
268 |
video_cards_dummy? ( >=x11-drivers/xf86-video-dummy-0.3.0 ) |
269 |
video_cards_fbdev? ( >=x11-drivers/xf86-video-fbdev-0.4.0 ) |
270 |
video_cards_geode? ( >=x11-drivers/xf86-video-geode-2.9.0 ) |
271 |
video_cards_glint? ( >=x11-drivers/xf86-video-glint-1.2.0 ) |
272 |
video_cards_i128? ( >=x11-drivers/xf86-video-i128-1.3.0 ) |
273 |
video_cards_i740? ( >=x11-drivers/xf86-video-i740-1.2.0 ) |
274 |
video_cards_i810? ( >=x11-drivers/xf86-video-i810-2.3.1-r1 ) |
275 |
video_cards_mach64? ( >=x11-drivers/xf86-video-mach64-6.8.0 ) |
276 |
video_cards_mga? ( >=x11-drivers/xf86-video-mga-1.4.8 ) |
277 |
video_cards_neomagic? ( >=x11-drivers/xf86-video-neomagic-1.2.1 ) |
278 |
video_cards_nv? ( >=x11-drivers/xf86-video-nv-2.1.9 ) |
279 |
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-173.14.09 ) |
280 |
video_cards_r128? ( >=x11-drivers/xf86-video-r128-6.8.0 ) |
281 |
video_cards_radeon? ( >=x11-drivers/xf86-video-ati-6.9.0 ) |
282 |
video_cards_radeonhd? ( >=x11-drivers/xf86-video-radeonhd-1.2.1 ) |
283 |
video_cards_rendition? ( >=x11-drivers/xf86-video-rendition-4.2.0 ) |
284 |
video_cards_s3? ( >=x11-drivers/xf86-video-s3-0.6.0 ) |
285 |
video_cards_s3virge? ( >=x11-drivers/xf86-video-s3virge-1.10.1 ) |
286 |
video_cards_savage? ( >=x11-drivers/xf86-video-savage-2.2.1 ) |
287 |
video_cards_siliconmotion? ( >=x11-drivers/xf86-video-siliconmotion-1.6.0 ) |
288 |
video_cards_sis? ( >=x11-drivers/xf86-video-sis-0.10.0 ) |
289 |
video_cards_sisusb? ( >=x11-drivers/xf86-video-sisusb-0.9.0 ) |
290 |
video_cards_tdfx? ( >=x11-drivers/xf86-video-tdfx-1.4.0 ) |
291 |
video_cards_trident? ( >=x11-drivers/xf86-video-trident-1.3.0 ) |
292 |
video_cards_tseng? ( >=x11-drivers/xf86-video-tseng-1.2.0 ) |
293 |
video_cards_v4l? ( >=x11-drivers/xf86-video-v4l-0.2.0 ) |
294 |
video_cards_vesa? ( >=x11-drivers/xf86-video-vesa-1.3.0 ) |
295 |
video_cards_vmware? ( >=x11-drivers/xf86-video-vmware-10.16.0 ) |
296 |
video_cards_voodoo? ( >=x11-drivers/xf86-video-voodoo-1.2.0 ) |
297 |
video_cards_xgi? ( >=x11-drivers/xf86-video-xgi-1.5.0 ) |
298 |
|
299 |
video_cards_tdfx? ( 3dfx? ( >=media-libs/glide-v3-3.10 ) ) |
300 |
!x11-drivers/ati-drivers |
301 |
|
302 |
!x11-drivers/xf86-video-impact |
303 |
!x11-drivers/xf86-video-imstt |
304 |
!x11-drivers/xf86-video-newport |
305 |
!x11-drivers/xf86-video-openchrome |
306 |
!x11-drivers/xf86-video-sunbw2 |
307 |
!x11-drivers/xf86-video-suncg14 |
308 |
!x11-drivers/xf86-video-suncg3 |
309 |
!x11-drivers/xf86-video-suncg6 |
310 |
!x11-drivers/xf86-video-sunffb |
311 |
!x11-drivers/xf86-video-sunleo |
312 |
!x11-drivers/xf86-video-suntcx |
313 |
!x11-drivers/xf86-video-tga |
314 |
!x11-drivers/xf86-video-vermilion |
315 |
|
316 |
!x11-drivers/xf86-video-cyrix |
317 |
!x11-drivers/xf86-video-nsc |
318 |
!x11-drivers/xf86-video-vga |
319 |
)" |
320 |
LICENSE="${LICENSE} MIT" |
321 |
|
322 |
EPATCH_FORCE="yes" |
323 |
EPATCH_SUFFIX="patch" |
324 |
|
325 |
# Local customizations, unsuitable for upstream |
326 |
GENTOO_PATCHES=( |
327 |
"${FILESDIR}/1.4-fpic-libxf86config.patch" |
328 |
"${FILESDIR}/1.4-fix-kdrive-automake.patch" |
329 |
) |
330 |
|
331 |
# These have been sent upstream |
332 |
UPSTREAMED_PATCHES=() |
333 |
|
334 |
PATCHES=( |
335 |
"${GENTOO_PATCHES[@]}" |
336 |
"${UPSTREAMED_PATCHES[@]}" |
337 |
) |
338 |
|
339 |
pkg_setup() { |
340 |
use minimal || ensure_a_server_is_building |
341 |
|
342 |
# SDL only available in kdrive build |
343 |
if use kdrive && use sdl; then |
344 |
conf_opts="${conf_opts} --enable-xsdl" |
345 |
else |
346 |
conf_opts="${conf_opts} --disable-xsdl" |
347 |
fi |
348 |
|
349 |
# localstatedir is used for the log location; we need to override the default |
350 |
# from ebuild.sh |
351 |
# sysconfdir is used for the xorg.conf location; same applies |
352 |
# --enable-install-setuid needed because sparcs default off |
353 |
CONFIGURE_OPTIONS=" |
354 |
$(use_enable ipv6) |
355 |
$(use_enable dmx) |
356 |
$(use_enable kdrive) |
357 |
$(use_enable !minimal xvfb) |
358 |
$(use_enable !minimal xnest) |
359 |
$(use_enable !minimal xfree86-utils) |
360 |
$(use_enable !minimal install-libxf86config) |
361 |
$(use_enable dri) |
362 |
$(use_enable xorg) |
363 |
$(use_enable nptl glx-tls) |
364 |
$(use_enable !minimal xorgcfg) |
365 |
$(use_enable hal config-dbus) |
366 |
$(use_enable hal config-hal) |
367 |
--disable-dri2 |
368 |
--disable-xprint |
369 |
--sysconfdir=/etc/X11 |
370 |
--localstatedir=/var |
371 |
--enable-install-setuid |
372 |
--with-fontdir=/usr/share/fonts |
373 |
--with-xkb-output=/var/lib/xkb |
374 |
${conf_opts}" |
375 |
|
376 |
local diemsg="You must build xorg-server and mesa with the same nptl USE setting." |
377 |
if built_with_use media-libs/mesa nptl; then |
378 |
use nptl || die "${diemsg}" |
379 |
else |
380 |
use nptl && die "${diemsg}" |
381 |
fi |
382 |
|
383 |
# (#121394) Causes window corruption |
384 |
filter-flags -fweb |
385 |
|
386 |
# Nothing else provides new enough glxtokens.h |
387 |
ewarn "Forcing on xorg-x11 for new enough glxtokens.h..." |
388 |
OLD_IMPLEM="$(eselect opengl show)" |
389 |
eselect opengl set --impl-headers ${OPENGL_DIR} |
390 |
} |
391 |
|
392 |
src_unpack() { |
393 |
x-modular_specs_check |
394 |
x-modular_dri_check |
395 |
x-modular_unpack_source |
396 |
x-modular_patch_source |
397 |
|
398 |
# Set up kdrive servers to build |
399 |
if use kdrive; then |
400 |
kdrive_setup |
401 |
fi |
402 |
|
403 |
# Make sure eautoreconf gets run if we need the autoconf/make |
404 |
# changes. |
405 |
if [[ ${SNAPSHOT} != "yes" ]]; then |
406 |
if use kdrive || use dmx; then # || use xprint |
407 |
SNAPSHOT="yes" |
408 |
fi |
409 |
fi |
410 |
|
411 |
if use hal; then |
412 |
sed -i \ |
413 |
-e "s:^\(dbusconfigdir = \).*\(dbus-1.*\):\1/etc/\2:g" \ |
414 |
"${S}"/config/Makefile.am \ |
415 |
|| die "failed to fix DBUS config directory" |
416 |
SNAPSHOT="yes" |
417 |
fi |
418 |
|
419 |
x-modular_reconf_source |
420 |
# #do not install xprint's Xsession.d files, we'll do it later |
421 |
# if use xprint; then |
422 |
# sed -e "s:install-data-am\: install-dist_xpcDATA:install-data-am\::g" \ |
423 |
# -i "${S}"/hw/xprint/etc/Xsession.d/Makefile.in \ |
424 |
# || die "sed of Xsession.d makefile failed" |
425 |
# fi |
426 |
} |
427 |
|
428 |
src_install() { |
429 |
x-modular_src_install |
430 |
|
431 |
dynamic_libgl_install |
432 |
|
433 |
server_based_install |
434 |
|
435 |
# Install video mode files for system-config-display |
436 |
insinto /usr/share/xorg |
437 |
doins hw/xfree86/common/{extra,vesa}modes \ |
438 |
|| die "couldn't install extra modes" |
439 |
|
440 |
# Bug #151421 - this file is not built with USE="minimal" |
441 |
# Bug #151670 - this file is also not build if USE="-xorg" |
442 |
if ! use minimal && use xorg; then |
443 |
# Install xorg.conf.example |
444 |
insinto /etc/X11 |
445 |
doins hw/xfree86/xorg.conf.example \ |
446 |
|| die "couldn't install xorg.conf.example" |
447 |
fi |
448 |
} |
449 |
|
450 |
pkg_postinst() { |
451 |
switch_opengl_implem |
452 |
|
453 |
# Bug #135544 |
454 |
ewarn "Users of reduced blanking now need:" |
455 |
ewarn " Option \"ReducedBlanking\"" |
456 |
ewarn "In the relevant Monitor section(s)." |
457 |
ewarn "Make sure your reduced blanking modelines are safe!" |
458 |
|
459 |
echo |
460 |
ewarn "You must rebuild all drivers if upgrading from xorg-server 1.4.1" |
461 |
ewarn "or earlier, because the ABI changed. If you cannot start X because" |
462 |
ewarn "of module version mismatch errors, this is your problem." |
463 |
|
464 |
echo |
465 |
ewarn "You can generate a list of all installed packages in the x11-drivers" |
466 |
ewarn "category using this command:" |
467 |
ewarn "emerge portage-utils; qlist -I -C x11-drivers/" |
468 |
|
469 |
ebeep 5 |
470 |
epause 10 |
471 |
} |
472 |
|
473 |
pkg_postrm() { |
474 |
# Get rid of module dir to ensure opengl-update works properly |
475 |
if ! has_version x11-base/xorg-server; then |
476 |
if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then |
477 |
rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules |
478 |
fi |
479 |
fi |
480 |
} |
481 |
|
482 |
kdrive_setup() { |
483 |
local card real_card disable_card kdrive_fbdev kdrive_vesa |
484 |
|
485 |
einfo "Removing unused kdrive drivers ..." |
486 |
|
487 |
# Some kdrive servers require fbdev and vesa |
488 |
kdrive_fbdev="radeon neomagic sis siliconmotion" |
489 |
# Some kdrive servers require just vesa |
490 |
kdrive_vesa="chips mach64 mga nv glint r128 via" |
491 |
|
492 |
for card in ${IUSE_VIDEO_CARDS}; do |
493 |
real_card=${card#video_cards_} |
494 |
|
495 |
# Differences between VIDEO_CARDS name and kdrive server name |
496 |
real_card=${real_card/glint/pm2} |
497 |
real_card=${real_card/radeon/ati} |
498 |
real_card=${real_card/%nv/nvidia} |
499 |
real_card=${real_card/siliconmotion/smi} |
500 |
real_card=${real_card/%sis/sis300} |
501 |
|
502 |
disable_card=0 |
503 |
|
504 |
# Check whether it's a valid kdrive server before we waste time |
505 |
# on the rest of this |
506 |
if ! grep -q -o "\b${real_card}\b" "${S}"/hw/kdrive/Makefile.am; then |
507 |
continue |
508 |
fi |
509 |
|
510 |
if ! use ${card}; then |
511 |
if use x86; then |
512 |
# Some kdrive servers require fbdev and vesa |
513 |
for i in ${kdrive_fbdev}; do |
514 |
if use video_cards_${i}; then |
515 |
if [[ ${real_card} = fbdev ]] \ |
516 |
|| [[ ${real_card} = vesa ]]; then |
517 |
continue 2 # Don't disable |
518 |
fi |
519 |
fi |
520 |
done |
521 |
|
522 |
# Some kdrive servers require just vesa |
523 |
for i in ${kdrive_vesa}; do |
524 |
if use video_cards_${i}; then |
525 |
if [[ ${real_card} = vesa ]]; then |
526 |
continue 2 # Don't disable |
527 |
fi |
528 |
fi |
529 |
done |
530 |
fi |
531 |
disable_card=1 |
532 |
# Bug #150052 |
533 |
# fbdev is the only VIDEO_CARDS setting that works on non-x86 |
534 |
elif ! use x86 \ |
535 |
&& [[ ${real_card} != fbdev ]]; then |
536 |
ewarn " $real_card does not work on your architecture; disabling." |
537 |
disable_card=1 |
538 |
fi |
539 |
|
540 |
if [[ $disable_card = 1 ]]; then |
541 |
ebegin " ${real_card}" |
542 |
sed -i \ |
543 |
-e "s:\b${real_card}\b::g" \ |
544 |
"${S}"/hw/kdrive/Makefile.am \ |
545 |
|| die "sed of ${real_card} failed" |
546 |
eend |
547 |
fi |
548 |
|
549 |
done |
550 |
} |
551 |
|
552 |
dynamic_libgl_install() { |
553 |
# next section is to setup the dynamic libGL stuff |
554 |
ebegin "Moving GL files for dynamic switching" |
555 |
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions |
556 |
local x="" |
557 |
for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do |
558 |
if [ -f ${x} -o -L ${x} ]; then |
559 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions |
560 |
fi |
561 |
done |
562 |
eend 0 |
563 |
} |
564 |
|
565 |
server_based_install() { |
566 |
# use xprint && xprint_src_install |
567 |
|
568 |
if ! use xorg; then |
569 |
rm "${D}"/usr/share/man/man1/Xserver.1x \ |
570 |
"${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \ |
571 |
"${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ |
572 |
"${D}"/usr/share/man/man1/Xserver.1x |
573 |
fi |
574 |
} |
575 |
|
576 |
switch_opengl_implem() { |
577 |
# Switch to the xorg implementation. |
578 |
# Use new opengl-update that will not reset user selected |
579 |
# OpenGL interface ... |
580 |
echo |
581 |
# eselect opengl set --use-old ${OPENGL_DIR} |
582 |
eselect opengl set ${OLD_IMPLEM} |
583 |
} |
584 |
|
585 |
#xprint_src_install() { |
586 |
# # RH-style init script, we provide a wrapper |
587 |
# exeinto /usr/$(get_libdir)/misc |
588 |
# doexe "${S}"/hw/xprint/etc/init.d/xprint |
589 |
# # Install the wrapper |
590 |
# newinitd "${FILESDIR}"/xprint.init xprint |
591 |
# # Install profile scripts |
592 |
# insinto /etc/profile.d |
593 |
# doins "${S}"/hw/xprint/etc/profile.d/xprint* |
594 |
# exeinto /etc/X11/xinit/xinitrc.d |
595 |
# doexe "${S}"/hw/xprint/etc/Xsession.d/92xprint-xpserverlist |
596 |
# # Patch profile scripts |
597 |
# sed -e "s:/etc/init.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \ |
598 |
# get_xpserverlist:g" -i "${D}"/etc/profile.d/xprint* \ |
599 |
# "${D}"/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist |
600 |
# # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo |
601 |
# dodoc "${D}"/etc/profile.d/xprint* |
602 |
# rm -f "${D}"/etc/profile.d/xprint* |
603 |
#} |
604 |
|
605 |
ensure_a_server_is_building() { |
606 |
for server in ${IUSE_SERVERS}; do |
607 |
use ${server} && return; |
608 |
done |
609 |
eerror "You need to specify at least one server to build." |
610 |
eerror "Valid servers are: ${IUSE_SERVERS}." |
611 |
die "No servers were specified to build." |
612 |
} |
613 |
|
614 |
|
615 |
|
616 |
-- |
617 |
gentoo-commits@l.g.o mailing list |