OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xorg-server/xorg-server.conf
  5. # Copyright (C) 2007 - 2010 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. x_postmake() {
  16. ln -sfv Xorg $root$bindir/X
  17. rm -fv $root/etc/fonts/*.bak
  18. echo "Copying default example configs ..."
  19. cp -fv $confdir/xorg.conf.{example,template} \
  20. $root/etc/X11/
  21. if [ -f $root/etc/X11/xorg.conf ]; then
  22. touch $root/etc/X11/xorg.conf
  23. else
  24. cp -v $root/etc/X11/xorg.conf{.example,}
  25. fi
  26. install -m 755 $confdir/startxdm.sh $root$bindir/startxdm
  27. install -m 755 $confdir/xcfgt2.sh $root$bindir/xcfgt2
  28. install -m 755 $confdir/xvfb-run.sh $root$bindir/xvfb-run
  29. echo "Installing X Setup Script ..."
  30. echo "export WINDOWMANAGER=kde" > $root/etc/profile.d/windowmanager
  31. }
  32. if atstage cross; then
  33. # help configure
  34. var_append configcache ' ' "ac_cv_file__${prefix//\//_}_share_sgml_X11_defs_ent=no"
  35. fi
  36. var_append GCC_WRAPPER_REMOVE ' ' '-I/usr/X11R6/include'
  37. var_append GCC_WRAPPER_REMOVE ' ' '-L/usr/X11R6/lib'
  38. hook_add postmake 5 "x_postmake"
  39. if ! pkginstalled mesa; then
  40. for x in glx dri xprint; do
  41. var_append extraconfopt ' ' "--disable-$x"
  42. done
  43. fi