/[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.18 Revision 1.21
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.18 2006/10/25 07:18:47 dberkholz Exp $ 3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.1.1-r1.ebuild,v 1.21 2006/12/01 18:24:51 gustavoz 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
18 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2 18 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
19 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2" 19 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2"
20DESCRIPTION="X.Org X servers" 20DESCRIPTION="X.Org X servers"
21# 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
22RESTRICT="stricter" 22RESTRICT="stricter"
23KEYWORDS="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"
24IUSE_INPUT_DEVICES=" 24IUSE_INPUT_DEVICES="
25 input_devices_acecad 25 input_devices_acecad
26 input_devices_aiptek 26 input_devices_aiptek
27 input_devices_calcomp 27 input_devices_calcomp
28 input_devices_citron 28 input_devices_citron
350 x-modular_unpack_source 350 x-modular_unpack_source
351 x-modular_patch_source 351 x-modular_patch_source
352 352
353 # Set up kdrive servers to build 353 # Set up kdrive servers to build
354 if use kdrive; then 354 if use kdrive; then
355 einfo "Removing unused kdrive drivers ..." 355 kdrive_setup
356 for card in ${IUSE_VIDEO_CARDS}; do
357 real_card=${card#video_cards_}
358
359 # Differences between VIDEO_CARDS name and kdrive server name
360 real_card=${real_card/glint/pm2}
361 real_card=${real_card/radeon/ati}
362 real_card=${real_card/%nv/nvidia}
363 real_card=${real_card/siliconmotion/smi}
364 real_card=${real_card/%sis/sis300}
365
366 disable_card=0
367
368 # Check whether it's a valid kdrive server before we waste time
369 # on the rest of this
370 if ! grep -q -o "\b${real_card}\b" ${S}/hw/kdrive/Makefile.am; then
371 continue
372 fi
373
374 if ! use ${card}; then
375 # (bug #136370) Radeon needs fbdev and vesa
376 if use x86 \
377 && use video_cards_radeon; then
378 if [[ ${real_card} = fbdev ]] \
379 || [[ ${real_card} = vesa ]]; then
380 continue
381 fi
382 fi
383 disable_card=1
384 # Bug #150052
385 # fbdev is the only VIDEO_CARDS setting that works on non-x86
386 elif ! use x86 \
387 && [[ ${real_card} != fbdev ]]; then
388 ewarn " $real_card does not work on your architecture; disabling."
389 disable_card=1
390 fi
391
392 if [[ $disable_card = 1 ]]; then
393 ebegin " ${real_card}"
394 sed -i \
395 -e "s:\b${real_card}\b::g" \
396 ${S}/hw/kdrive/Makefile.am \
397 || die "sed of ${real_card} failed"
398 eend
399 fi
400
401 done
402
403 # smi and via are the only things on line 2. If line 2 ends up blank,
404 # we need to get rid of the backslash at the end of line 1.
405 if ! use video_cards_siliconmotion && ! use video_cards_via; then
406 sed -i \
407 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \
408 ${S}/hw/kdrive/Makefile.am
409 fi
410 fi 356 fi
411 357
412 # Make sure eautoreconf gets run if we need the autoconf/make 358 # Make sure eautoreconf gets run if we need the autoconf/make
413 # changes. 359 # changes.
414 if [[ ${SNAPSHOT} != "yes" ]]; then 360 if [[ ${SNAPSHOT} != "yes" ]]; then
455 # Get rid of module dir to ensure opengl-update works properly 401 # Get rid of module dir to ensure opengl-update works properly
456 if ! has_version x11-base/xorg-server; then 402 if ! has_version x11-base/xorg-server; then
457 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then 403 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then
458 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules 404 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules
459 fi 405 fi
406 fi
407}
408
409kdrive_setup() {
410 local card real_card disable_card kdrive_fbdev kdrive_vesa
411
412 einfo "Removing unused kdrive drivers ..."
413
414 # Some kdrive servers require fbdev and vesa
415 kdrive_fbdev="radeon neomagic sis siliconmotion"
416 # Some kdrive servers require just vesa
417 kdrive_vesa="chips mach64 mga nv glint r128 via"
418
419 for card in ${IUSE_VIDEO_CARDS}; do
420 real_card=${card#video_cards_}
421
422 # Differences between VIDEO_CARDS name and kdrive server name
423 real_card=${real_card/glint/pm2}
424 real_card=${real_card/radeon/ati}
425 real_card=${real_card/%nv/nvidia}
426 real_card=${real_card/siliconmotion/smi}
427 real_card=${real_card/%sis/sis300}
428
429 disable_card=0
430
431 # Check whether it's a valid kdrive server before we waste time
432 # on the rest of this
433 if ! grep -q -o "\b${real_card}\b" ${S}/hw/kdrive/Makefile.am; then
434 continue
435 fi
436
437 if ! use ${card}; then
438 if use x86; then
439 # Some kdrive servers require fbdev and vesa
440 for i in ${kdrive_fbdev}; do
441 if use video_cards_${i}; then
442 if [[ ${real_card} = fbdev ]] \
443 || [[ ${real_card} = vesa ]]; then
444 continue 2 # Don't disable
445 fi
446 fi
447 done
448
449 # Some kdrive servers require just vesa
450 for i in ${kdrive_vesa}; do
451 if use video_cards_${i}; then
452 if [[ ${real_card} = vesa ]]; then
453 continue 2 # Don't disable
454 fi
455 fi
456 done
457 fi
458 disable_card=1
459 # Bug #150052
460 # fbdev is the only VIDEO_CARDS setting that works on non-x86
461 elif ! use x86 \
462 && [[ ${real_card} != fbdev ]]; then
463 ewarn " $real_card does not work on your architecture; disabling."
464 disable_card=1
465 fi
466
467 if [[ $disable_card = 1 ]]; then
468 ebegin " ${real_card}"
469 sed -i \
470 -e "s:\b${real_card}\b::g" \
471 ${S}/hw/kdrive/Makefile.am \
472 || die "sed of ${real_card} failed"
473 eend
474 fi
475
476 done
477
478 # smi and via are the only things on line 2. If line 2 ends up blank,
479 # we need to get rid of the backslash at the end of line 1.
480 if ! use video_cards_siliconmotion && ! use video_cards_via; then
481 sed -i \
482 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \
483 ${S}/hw/kdrive/Makefile.am
460 fi 484 fi
461} 485}
462 486
463dynamic_libgl_install() { 487dynamic_libgl_install() {
464 # next section is to setup the dynamic libGL stuff 488 # next section is to setup the dynamic libGL stuff

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20