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

Diff of /x11-base/xorg-server/xorg-server-1.1.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.11
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.1.1-r1.ebuild,v 1.3 2006/09/12 20:59:52 dberkholz Exp $ 3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.1.1-r1.ebuild,v 1.11 2006/10/13 22:54:58 joshuabaergen Exp $
4 4
5# Must be before x-modular eclass is inherited 5# Must be before x-modular eclass is inherited
6SNAPSHOT="yes" 6SNAPSHOT="yes"
7 7
8inherit x-modular multilib 8inherit x-modular multilib
9 9
10OPENGL_DIR="xorg-x11" 10OPENGL_DIR="xorg-x11"
11 11
12MESA_PN="Mesa" 12MESA_PN="Mesa"
13MESA_PV="20060831" 13MESA_PV="6.5.1"
14MESA_P="${MESA_PN}-${MESA_PV}" 14MESA_P="${MESA_PN}-${MESA_PV}"
15MESA_SRC_P="${MESA_PN}-${MESA_PV}" 15MESA_SRC_P="${MESA_PN}Lib-${MESA_PV}"
16
17PATCHES="${FILESDIR}/01-no-move-damage.patch
18 ${FILESDIR}/02-dont-backfill-bg-none.patch
19 ${FILESDIR}/03-tfp-damage.patch
20 ${FILESDIR}/04-mesa-copy-sub-buffer.patch
21 ${FILESDIR}/05-offscreen-pixmaps.patch
22 ${FILESDIR}/06-aiglx-happy-vt-switch.patch
23 ${FILESDIR}/xorg-x11-server-1.1.1-mesa-6.5.1.patch
24 ${FILESDIR}/${P}-install-libxf86config-headers.patch
25 ${FILESDIR}/${PV}-fix-xrandr-zoom-keys.patch"
26
27 16
28SRC_URI="${SRC_URI} 17SRC_URI="${SRC_URI}
29 http://www.schokokeks.org/~hanno/snapshots/${MESA_SRC_P}.tar.bz2 18 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
30 http://xorg.freedesktop.org/snapshots/individual/xserver/${P}.tar.bz2" 19 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2"
31DESCRIPTION="X.Org X servers" 20DESCRIPTION="X.Org X servers"
32# It's suid and has lazy bindings, so FEATURES="stricter" doesn't work 21# It's suid and has lazy bindings, so FEATURES="stricter" doesn't work
33RESTRICT="stricter" 22RESTRICT="stricter"
34KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 mips ppc ppc64 sh sparc ~x86 ~x86-fbsd" 23KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 mips ppc ppc64 sh sparc ~x86 ~x86-fbsd"
35IUSE_INPUT_DEVICES=" 24IUSE_INPUT_DEVICES="
116IUSE_SERVERS="dmx kdrive xorg" 105IUSE_SERVERS="dmx kdrive xorg"
117IUSE="${IUSE_VIDEO_CARDS} 106IUSE="${IUSE_VIDEO_CARDS}
118 ${IUSE_INPUT_DEVICES} 107 ${IUSE_INPUT_DEVICES}
119 ${IUSE_SERVERS} 108 ${IUSE_SERVERS}
120 3dfx 109 3dfx
110 aiglx
121 dri ipv6 minimal nptl sdl xprint" 111 dri ipv6 minimal nptl sdl xprint"
122RDEPEND="x11-libs/libXfont 112RDEPEND="x11-libs/libXfont
123 x11-libs/xtrans 113 x11-libs/xtrans
124 x11-libs/libXau 114 x11-libs/libXau
125 x11-libs/libXext 115 x11-libs/libXext
148 dmx? ( x11-libs/libdmx ) 138 dmx? ( x11-libs/libdmx )
149 !minimal? ( x11-libs/libXtst 139 !minimal? ( x11-libs/libXtst
150 x11-libs/libXres ) 140 x11-libs/libXres )
151 >=x11-libs/libxkbui-1.0.2 141 >=x11-libs/libxkbui-1.0.2
152 x11-libs/liblbxutil 142 x11-libs/liblbxutil
153 kdrive? ( sdl? ( media-libs/libsdl ) ) 143 kdrive? ( sdl? ( media-libs/libsdl ) )"
154 !media-video/nvidia-glx"
155 # Xres is dmx-dependent, xkbui is xorgcfg-dependent 144 # Xres is dmx-dependent, xkbui is xorgcfg-dependent
156 # Xaw is dmx- and xorgcfg-dependent 145 # Xaw is dmx- and xorgcfg-dependent
157 # Xpm is dmx- and xorgcfg-dependent, pulls in Xt 146 # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
158 # Xxf86misc and Xxf86vm are xorgcfg-dependent 147 # Xxf86misc and Xxf86vm are xorgcfg-dependent
159 # liblbxutil is lbx- dependent 148 # liblbxutil is lbx- dependent
180 x11-proto/fontsproto 169 x11-proto/fontsproto
181 >=x11-proto/kbproto-1.0-r1 170 >=x11-proto/kbproto-1.0-r1
182 x11-proto/inputproto 171 x11-proto/inputproto
183 x11-proto/bigreqsproto 172 x11-proto/bigreqsproto
184 x11-proto/xcmiscproto 173 x11-proto/xcmiscproto
185 >=x11-proto/glproto-1.4.6 174 >=x11-proto/glproto-1.4.8
186 dmx? ( x11-proto/dmxproto ) 175 dmx? ( x11-proto/dmxproto )
187 dri? ( x11-proto/xf86driproto 176 dri? ( x11-proto/xf86driproto
188 >=x11-libs/libdrm-2 ) 177 >=x11-libs/libdrm-2 )
189 xprint? ( x11-proto/printproto 178 xprint? ( x11-proto/printproto
190 x11-apps/mkfontdir 179 x11-apps/mkfontdir
282LICENSE="${LICENSE} MIT" 271LICENSE="${LICENSE} MIT"
283 272
284pkg_setup() { 273pkg_setup() {
285 use minimal || ensure_a_server_is_building 274 use minimal || ensure_a_server_is_building
286 275
287 # Bug #145274 - anything that uses vm86.h is broken on AMD64 276 PATCHES="${FILESDIR}/xorg-x11-server-1.1.1-mesa-6.5.1.patch
288 if use kdrive && use amd64 && use video_cards_vesa; then 277 ${FILESDIR}/${P}-install-libxf86config-headers.patch
289 eerror "kdrive's VESA driver does not build on AMD64 because it uses" 278 ${FILESDIR}/${PV}-fix-xrandr-zoom-keys.patch
290 eerror "vm86.h. Please build kdrive without VIDEO_CARDS=\"vesa\"." 279 ${FILESDIR}/${PV}-sparc64-ati-lockups.patch
291 die "kdrive's VESA driver does not build on AMD64." 280 ${FILESDIR}/xorg-conf-example.patch"
281
282 # Patches required for compiz to work with AIGLX,
283 # but they slow EXA down (bug #147841).
284 if use aiglx; then
285 einfo "AIGLX patches will be applied."
286 ewarn "These patches are known to cause problems with EXA enabled."
287 PATCHES="${FILESDIR}/01-no-move-damage.patch
288 ${FILESDIR}/02-dont-backfill-bg-none.patch
289 ${FILESDIR}/03-tfp-damage.patch
290 ${FILESDIR}/04-mesa-copy-sub-buffer.patch
291 ${FILESDIR}/05-offscreen-pixmaps.patch
292 ${FILESDIR}/06-aiglx-happy-vt-switch.patch
293 ${PATCHES}"
292 fi 294 fi
293 295
294 # SDL only available in kdrive build 296 # SDL only available in kdrive build
295 if use kdrive && use sdl; then 297 if use kdrive && use sdl; then
296 conf_opts="${conf_opts} --enable-xsdl" 298 conf_opts="${conf_opts} --enable-xsdl"
299 fi 301 fi
300 302
301 # Only Xorg and Xgl support this, and we won't build Xgl 303 # Only Xorg and Xgl support this, and we won't build Xgl
302 # until it merges to trunk 304 # until it merges to trunk
303 if use xorg; then 305 if use xorg; then
304 conf_opts="${conf_opts} --with-mesa-source=${WORKDIR}/Mesa" 306 conf_opts="${conf_opts} --with-mesa-source=${WORKDIR}/${MESA_P}"
305 fi 307 fi
306 308
307 # localstatedir is used for the log location; we need to override the default 309 # localstatedir is used for the log location; we need to override the default
308 # from ebuild.sh 310 # from ebuild.sh
309 # sysconfdir is used for the xorg.conf location; same applies 311 # sysconfdir is used for the xorg.conf location; same applies
321 $(use_enable xprint) 323 $(use_enable xprint)
322 $(use_enable nptl glx-tls) 324 $(use_enable nptl glx-tls)
323 --sysconfdir=/etc/X11 325 --sysconfdir=/etc/X11
324 --localstatedir=/var 326 --localstatedir=/var
325 --enable-install-setuid 327 --enable-install-setuid
326 --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 328 --with-fontdir=/usr/share/fonts
327 ${conf_opts}" 329 ${conf_opts}"
328 330
329 local diemsg="You must build xorg-server and mesa with the same nptl USE setting." 331 local diemsg="You must build xorg-server and mesa with the same nptl USE setting."
330 if built_with_use media-libs/mesa nptl; then 332 if built_with_use media-libs/mesa nptl; then
331 use nptl || die "${diemsg}" 333 use nptl || die "${diemsg}"
346 x-modular_specs_check 348 x-modular_specs_check
347 x-modular_dri_check 349 x-modular_dri_check
348 x-modular_unpack_source 350 x-modular_unpack_source
349 x-modular_patch_source 351 x-modular_patch_source
350 352
351 # https://bugs.freedesktop.org/show_bug.cgi?id=3914
352 # Addition of Altix support breaks 64-bit BARs,
353 # which causes sparc64 lockups with ATI video
354 # The sparc team will maintain and forward-port this patch.
355 if use sparc && use video_cards_mach64; then
356 epatch "${FILESDIR}"/${PV}-remove-altix.patch
357 fi
358
359 # Set up kdrive servers to build 353 # Set up kdrive servers to build
354 # Bug #150052 - anything that uses vm86.h is broken on non-x86 arches.
355 # That translates into the following set:
356 vm86_devices="chips epson glint i810 mach64 mga neomagic
357 nv r128 radeon siliconmotion vesa via"
358
360 if use kdrive; then 359 if use kdrive; then
361 einfo "Removing unused kdrive drivers ..." 360 einfo "Removing unused kdrive drivers ..."
362 for card in ${IUSE_VIDEO_CARDS}; do 361 for card in ${IUSE_VIDEO_CARDS}; do
363 # (bug #136370) Radeon needs fbdev and vesa 362 # Skip binary drivers
364 if use video_cards_radeon; then
365 if [[ ${card} = video_cards_fbdev ]] \ 363 if [[ ${card} = video_cards_nvidia ]] \
366 || [[ ${card} = video_cards_vesa ]]; then 364 || [[ ${card} = video_cards_fglrx ]]; then
367 continue 365 continue
368 fi
369 fi 366 fi
370 367
371 real_card=${card#video_cards_} 368 real_card=${card#video_cards_}
372 369
373 # Differences between VIDEO_CARDS name and kdrive server name 370 # Differences between VIDEO_CARDS name and kdrive server name
374 real_card=${real_card/glint/pm2} 371 real_card=${real_card/glint/pm2}
375 real_card=${real_card/radeon/ati} 372 real_card=${real_card/radeon/ati}
376 real_card=${real_card/%nv/nvidia} 373 real_card=${real_card/%nv/nvidia}
377 real_card=${real_card/siliconmotion/smi} 374 real_card=${real_card/siliconmotion/smi}
378 real_card=${real_card/%sis/sis300} 375 real_card=${real_card/%sis/sis300}
376
377 disable_card=0
379 if ! use ${card}; then 378 if ! use ${card}; then
379 # (bug #136370) Radeon needs fbdev and vesa
380 if ! use x86 \
381 && use video_cards_radeon; then
382 if [[ ${card} = fbdev ]] \
383 || [[ ${card} = vesa ]]; then
384 continue
385 fi
386 fi
387 disable_card=1
388 # Bug #150052
389 elif ! use x86 &&
390 [[ ${vm86_devices/${card#video_cards_}/} != ${vm86_devices} ]]; then
391 ewarn " $real_card does not work on your architecture; disabling."
392 disable_card=1
393 fi
394
395 if [[ $disable_card = 1 ]]; then
380 ebegin " ${real_card}" 396 ebegin " ${real_card}"
381 sed -i \ 397 sed -i \
382 -e "s:\b${real_card}\b::g" \ 398 -e "s:\b${real_card}\b::g" \
383 ${S}/hw/kdrive/Makefile.am \ 399 ${S}/hw/kdrive/Makefile.am \
384 || die "sed of ${real_card} failed" 400 || die "sed of ${real_card} failed"
415 431
416 # Install video mode files for system-config-display 432 # Install video mode files for system-config-display
417 insinto /usr/share/xorg 433 insinto /usr/share/xorg
418 doins hw/xfree86/common/{extra,vesa}modes \ 434 doins hw/xfree86/common/{extra,vesa}modes \
419 || die "couldn't install extra modes" 435 || die "couldn't install extra modes"
436
437 # Install xorg.conf.example
438 insinto /etc/X11
439 doins hw/xfree86/xorg.conf.example \
440 || die "couldn't install xorg.conf.example"
420} 441}
421 442
422pkg_postinst() { 443pkg_postinst() {
423 switch_opengl_implem 444 switch_opengl_implem
424 445

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20