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.

62 lines
1.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../cf/cf.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- T2-COPYRIGHT-NOTE-END ---
  14. add_host_def() {
  15. echo "$*" >> $root$libdir/X11/config/host.def
  16. }
  17. make_host_def() {
  18. rm -f $root$libdir/X11/config/host.def
  19. add_host_def "/* T2 host.def file */"
  20. add_host_def "#define ProjectRoot /$prefix"
  21. add_host_def ""
  22. add_host_def "#define LinuxDistribution LinuxT2"
  23. add_host_def "#define LinuxDistName \"T2\""
  24. add_host_def ""
  25. add_host_def "/* Configuration options */"
  26. add_host_def "#define XAppLoadDir EtcX11Directory/app-defaults"
  27. if pkginstalled pam; then add_host_def "#define HasPam YES";
  28. else add_host_def "#define HasPam NO"; fi
  29. add_host_def "#define FSUseSyslog YES"
  30. # FIXME needs wraphelp.c
  31. # add_host_def "#define HasXdmAuth YES"
  32. # NOTE: there's maybe a lot more to configure,
  33. # see lines after "#if LinuxDistribution == LinuxDebian"
  34. # in file linux.cf, e.g.:
  35. #define LinkGLToUsrInclude NO
  36. #define LinkGLToUsrLib NO
  37. #define SharedLibFont NO
  38. #define SharedLibGlu YES
  39. #define NormalLibGlu YES
  40. }
  41. cf_custmain() {
  42. mkdir -p $root$libdir/X11/config
  43. cp -fv * $root$libdir/X11/config/
  44. touch $root$libdir/X11/config/date.def
  45. make_host_def
  46. }
  47. custmain="cf_custmain"