/[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.8 Revision 1.9
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.8 2006/10/06 21:57:29 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.1.1-r1.ebuild,v 1.9 2006/10/12 02:53:25 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
21 ${FILESDIR}/05-offscreen-pixmaps.patch 21 ${FILESDIR}/05-offscreen-pixmaps.patch
22 ${FILESDIR}/06-aiglx-happy-vt-switch.patch 22 ${FILESDIR}/06-aiglx-happy-vt-switch.patch
23 ${FILESDIR}/xorg-x11-server-1.1.1-mesa-6.5.1.patch 23 ${FILESDIR}/xorg-x11-server-1.1.1-mesa-6.5.1.patch
24 ${FILESDIR}/${P}-install-libxf86config-headers.patch 24 ${FILESDIR}/${P}-install-libxf86config-headers.patch
25 ${FILESDIR}/${PV}-fix-xrandr-zoom-keys.patch 25 ${FILESDIR}/${PV}-fix-xrandr-zoom-keys.patch
26 ${FILESDIR}/${PV}-sparc64-ati-lockups.patch" 26 ${FILESDIR}/${PV}-sparc64-ati-lockups.patch
27 ${FILESDIR}/xorg-conf-example.patch"
27 28
28 29
29SRC_URI="${SRC_URI} 30SRC_URI="${SRC_URI}
30 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2 31 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
31 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2" 32 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2"
282LICENSE="${LICENSE} MIT" 283LICENSE="${LICENSE} MIT"
283 284
284pkg_setup() { 285pkg_setup() {
285 use minimal || ensure_a_server_is_building 286 use minimal || ensure_a_server_is_building
286 287
287 # Bug #145274 - anything that uses vm86.h is broken on AMD64
288 if use kdrive && use amd64 && use video_cards_vesa; then
289 eerror "kdrive's VESA driver does not build on AMD64 because it uses"
290 eerror "vm86.h. Please build kdrive without VIDEO_CARDS=\"vesa\"."
291 die "kdrive's VESA driver does not build on AMD64."
292 fi
293
294 # SDL only available in kdrive build 288 # SDL only available in kdrive build
295 if use kdrive && use sdl; then 289 if use kdrive && use sdl; then
296 conf_opts="${conf_opts} --enable-xsdl" 290 conf_opts="${conf_opts} --enable-xsdl"
297 else 291 else
298 conf_opts="${conf_opts} --disable-xsdl" 292 conf_opts="${conf_opts} --disable-xsdl"
321 $(use_enable xprint) 315 $(use_enable xprint)
322 $(use_enable nptl glx-tls) 316 $(use_enable nptl glx-tls)
323 --sysconfdir=/etc/X11 317 --sysconfdir=/etc/X11
324 --localstatedir=/var 318 --localstatedir=/var
325 --enable-install-setuid 319 --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 320 --with-fontdir=/usr/share/fonts
327 ${conf_opts}" 321 ${conf_opts}"
328 322
329 local diemsg="You must build xorg-server and mesa with the same nptl USE setting." 323 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 324 if built_with_use media-libs/mesa nptl; then
331 use nptl || die "${diemsg}" 325 use nptl || die "${diemsg}"
347 x-modular_dri_check 341 x-modular_dri_check
348 x-modular_unpack_source 342 x-modular_unpack_source
349 x-modular_patch_source 343 x-modular_patch_source
350 344
351 # Set up kdrive servers to build 345 # Set up kdrive servers to build
346 # Bug #150052 - anything that uses vm86.h is broken on non-x86 arches.
347 # That translates into the following set:
348 vm86_devices="chips epson glint i810 mach64 mga neomagic
349 nv r128 radeon siliconmotion vesa via"
350
352 if use kdrive; then 351 if use kdrive; then
353 einfo "Removing unused kdrive drivers ..." 352 einfo "Removing unused kdrive drivers ..."
354 for card in ${IUSE_VIDEO_CARDS}; do 353 for card in ${IUSE_VIDEO_CARDS}; do
355 # (bug #136370) Radeon needs fbdev and vesa 354 # (bug #136370) Radeon needs fbdev and vesa
356 if use video_cards_radeon; then 355 if use video_cards_radeon; then
366 real_card=${real_card/glint/pm2} 365 real_card=${real_card/glint/pm2}
367 real_card=${real_card/radeon/ati} 366 real_card=${real_card/radeon/ati}
368 real_card=${real_card/%nv/nvidia} 367 real_card=${real_card/%nv/nvidia}
369 real_card=${real_card/siliconmotion/smi} 368 real_card=${real_card/siliconmotion/smi}
370 real_card=${real_card/%sis/sis300} 369 real_card=${real_card/%sis/sis300}
370
371 disable_card=0
371 if ! use ${card}; then 372 if ! use ${card}; then
373 disable_card=1
374 elif ! use x86; then
375 # Bug #150052
376 if [[ ${vm86_devices/${card#video_cards_}/} != ${vm86_devices} ]]; then
377 ewarn " $real_card does not work on your architecture; disabling."
378 disable_card=1
379 fi
380 fi
381
382 if [[ $disable_card = 1 ]]; then
372 ebegin " ${real_card}" 383 ebegin " ${real_card}"
373 sed -i \ 384 sed -i \
374 -e "s:\b${real_card}\b::g" \ 385 -e "s:\b${real_card}\b::g" \
375 ${S}/hw/kdrive/Makefile.am \ 386 ${S}/hw/kdrive/Makefile.am \
376 || die "sed of ${real_card} failed" 387 || die "sed of ${real_card} failed"
407 418
408 # Install video mode files for system-config-display 419 # Install video mode files for system-config-display
409 insinto /usr/share/xorg 420 insinto /usr/share/xorg
410 doins hw/xfree86/common/{extra,vesa}modes \ 421 doins hw/xfree86/common/{extra,vesa}modes \
411 || die "couldn't install extra modes" 422 || die "couldn't install extra modes"
423
424 # Install xorg.conf.example
425 insinto /etc/X11
426 doins hw/xfree86/xorg.conf.example \
427 || die "couldn't install xorg.conf.example"
412} 428}
413 429
414pkg_postinst() { 430pkg_postinst() {
415 switch_opengl_implem 431 switch_opengl_implem
416 432

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20