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.

63 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xorg-cf-files/xorg-cf-files.conf
  5. # Copyright (C) 2007 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. add_host_def() {
  16. echo "$*" >> $root$libdir/X11/config/host.def
  17. }
  18. make_host_def() {
  19. rm -f $root$libdir/X11/config/host.def
  20. add_host_def "/* T2 host.def file */"
  21. add_host_def "#define ProjectRoot /$prefix"
  22. add_host_def ""
  23. add_host_def "#define LinuxDistribution LinuxT2"
  24. add_host_def "#define LinuxDistName \"T2\""
  25. add_host_def ""
  26. add_host_def "/* Configuration options */"
  27. add_host_def "#define XAppLoadDir EtcX11Directory/app-defaults"
  28. if pkginstalled pam; then add_host_def "#define HasPam YES";
  29. else add_host_def "#define HasPam NO"; fi
  30. add_host_def "#define FSUseSyslog YES"
  31. # FIXME needs wraphelp.c
  32. # add_host_def "#define HasXdmAuth YES"
  33. # NOTE: there's maybe a lot more to configure,
  34. # see lines after "#if LinuxDistribution == LinuxDebian"
  35. # in file linux.cf, e.g.:
  36. #define LinkGLToUsrInclude NO
  37. #define LinkGLToUsrLib NO
  38. #define SharedLibFont NO
  39. #define SharedLibGlu YES
  40. #define NormalLibGlu YES
  41. }
  42. cf_custmain() {
  43. mkdir -p $root$libdir/X11/config
  44. cp -fv * $root$libdir/X11/config/
  45. touch $root$libdir/X11/config/date.def
  46. make_host_def
  47. }
  48. custmain="cf_custmain"