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