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.

72 lines
2.0 KiB

  1. prefix="usr/X11R7"
  2. set_confopt
  3. if [[ "$xpkg" == font-* && "$xpkg" != font-util ]] ; then
  4. xorg_fonts_preconf ()
  5. {
  6. # This prevents creation of fonts.scale and font.dir files.
  7. sed -i -e's,\(.*$(MAKE).*install-data-hook\),#\1,' Makefile.in
  8. }
  9. hook_add preconf 5 xorg_fonts_preconf
  10. fi
  11. createdocs=0
  12. forcefpic=0
  13. var_remove GCC3_WRAPPER_INSERT " " "-fstack-protector"
  14. # don't put the modules in a :dev package
  15. splitreg 45 . '/lib/modules/'
  16. # documentation files
  17. splitreg 50 doc 'usr/X11.*/lib/X11/doc'
  18. # this fixes many cyclic dependencies..
  19. var_append flistrfilter "|" ".*mkhtmlindex.pl.*X11/doc/html.*"
  20. SUDO=""
  21. DESTDIR="$root/"
  22. PREFIX="$prefix"
  23. # Must create local aclocal dir or aclocal fails
  24. ACLOCAL_LOCALDIR="${DESTDIR}${PREFIX}/share/aclocal"
  25. $SUDO mkdir -p ${ACLOCAL_LOCALDIR}
  26. # The following is required to make aclocal find our .m4 macros
  27. if test x"$ACLOCAL" = x; then
  28. ACLOCAL="aclocal -I ${ACLOCAL_LOCALDIR}"
  29. else
  30. ACLOCAL="${ACLOCAL} -I ${ACLOCAL_LOCALDIR}"
  31. fi
  32. export ACLOCAL
  33. # The following is required to make pkg-config find our .pc metadata files
  34. if test x"$PKG_CONFIG_PATH" = x; then
  35. PKG_CONFIG_PATH=${DESTDIR}${PREFIX}/lib/pkgconfig
  36. else
  37. PKG_CONFIG_PATH=${DESTDIR}${PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}
  38. fi
  39. export PKG_CONFIG_PATH
  40. # Set the library path so that locally built libs will be found by apps
  41. if test x"$LD_LIBRARY_PATH" = x; then
  42. LD_LIBRARY_PATH=${DESTDIR}${PREFIX}/lib
  43. else
  44. LD_LIBRARY_PATH=${DESTDIR}${PREFIX}/lib:${LD_LIBRARY_PATH}
  45. fi
  46. export LD_LIBRARY_PATH
  47. # Set the path so that locally built apps will be found and used
  48. if test x"$PATH" = x; then
  49. PATH=${DESTDIR}${PREFIX}/bin
  50. else
  51. PATH=${DESTDIR}${PREFIX}/bin:${PATH}
  52. fi
  53. export PATH
  54. # Set the default font path for xserver/xorg unless it's already set
  55. if test x"$FONTPATH" = x; then
  56. FONTPATH="${PREFIX}/lib/X11/fonts/misc/,${PREFIX}/lib/X11/fonts/Type1/,${PREFIX}/lib/X11/fonts/75dpi/,${PREFIX}/lib/X11/fonts/100dpi/,${PREFIX}/lib/X11/fonts/cyrillic/,${PREFIX}/lib/X11/fonts/TTF/"
  57. export FONTPATH
  58. fi