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.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xorg-server/modular-x-conf.in
  5. # Copyright (C) 2007 - 2012 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. if [ $prefix_auto = 1 ] ; then
  16. prefix="usr/X11R7"
  17. set_confopt
  18. if atstage toolchain; then
  19. if [ ! -d "$root$bindir/" ]; then
  20. ln -sv "../bin" "$root$bindir"
  21. fi
  22. fi
  23. fi
  24. # apply external patches that Are defined in the .desc file
  25. var_append patchfiles ' ' "`match_source_file -p patch`"
  26. # in the past we suppressed generating those cache files, however then e.g.
  27. # the virtual X server needed to build / install some packages does not work
  28. flistdel="$flistdel|.*fonts/.*fonts\.(dir|scale|cache.*)|var/cache/fontconfig.*"
  29. # needed due to inconsistent app-defaults dir handling
  30. for ad in usr/X11/lib/X11/app-defaults usr/X11/lib64/X11/app-defaults \
  31. \$prefix/lib/X11/app-defaults \$prefix/lib64/X11/app-defaults \
  32. usr/X11/lib/app-defaults usr/X11/lib64/app-defaults; do
  33. var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,$ad,etc/X11/app-defaults,'"
  34. done
  35. # while cross compiling some Xorg packages need help
  36. #
  37. if atstage cross; then
  38. if pkginstalled -f xproto; then
  39. # help them to find xproto files
  40. export XPROTO_CFLAGS="-I$root$( pkgprefix includedir xproto )"
  41. fi
  42. # tests that can't be performed while cross compiling
  43. # it's better to disable than assuming the wrong (config.cache)
  44. var_append extraconfopt ' ' '--disable-malloc0returnsnull'
  45. fi