mirror of the now-defunct rocklinux.org
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.

45 lines
1.1 KiB

  1. [ -e ${confdir}/${pkg}.conf ] && . ${confdir}/${pkg}.conf
  2. var_append patchfiles " " "${targetdir}/patches/xfree86_hotfixes.patch"
  3. # configure the World for LVP
  4. xf_config() {
  5. echo "Configuring XFree for LVP ..."
  6. if pkginstalled expat ; then
  7. cat >> config/cf/host.def << EOT
  8. /* Disable the internal expat library to use the system installed one */
  9. #define HasExpat YES
  10. EOT
  11. fi
  12. cat >> config/cf/host.def << EOT
  13. /* Disable the internal zlib to use the system installed one */
  14. #define HasZlib YES
  15. /* Less warnings with recent gccs ... */
  16. #define DefaultCCOptions -ansi GccWarningOptions
  17. /* Make sure config files are allways installed ... */
  18. #define InstallXinitConfig YES
  19. #define InstallXdmConfig YES
  20. #define InstallFSConfig YES
  21. /* do not install duplicate crap in /etc/X11 */
  22. #define UseSeparateConfDir NO
  23. /* build statically */
  24. #define DoLoadableServer NO
  25. #define ForceNormalLib YES
  26. EOT
  27. if [ ${arch} == "x86" ] ; then
  28. echo "Enabling Matrox HALlib (since this is x86) ..."
  29. cat >> config/cf/host.def << EOT
  30. /* Additinal TV/DVI support since this is x86 */
  31. #define HaveMatroxHal YES
  32. EOT
  33. fi
  34. }