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.

69 lines
1.9 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. # documentation files
  15. splitreg 50 doc 'usr/X11.*/lib/X11/doc'
  16. # this fixes many cyclic dependencies..
  17. var_append flistrfilter "|" ".*mkhtmlindex.pl.*X11/doc/html.*"
  18. SUDO=""
  19. DESTDIR="$root/"
  20. PREFIX="$prefix"
  21. # Must create local aclocal dir or aclocal fails
  22. ACLOCAL_LOCALDIR="${DESTDIR}${PREFIX}/share/aclocal"
  23. $SUDO mkdir -p ${ACLOCAL_LOCALDIR}
  24. # The following is required to make aclocal find our .m4 macros
  25. if test x"$ACLOCAL" = x; then
  26. ACLOCAL="aclocal -I ${ACLOCAL_LOCALDIR}"
  27. else
  28. ACLOCAL="${ACLOCAL} -I ${ACLOCAL_LOCALDIR}"
  29. fi
  30. export ACLOCAL
  31. # The following is required to make pkg-config find our .pc metadata files
  32. if test x"$PKG_CONFIG_PATH" = x; then
  33. PKG_CONFIG_PATH=${DESTDIR}${PREFIX}/lib/pkgconfig
  34. else
  35. PKG_CONFIG_PATH=${DESTDIR}${PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}
  36. fi
  37. export PKG_CONFIG_PATH
  38. # Set the library path so that locally built libs will be found by apps
  39. if test x"$LD_LIBRARY_PATH" = x; then
  40. LD_LIBRARY_PATH=${DESTDIR}${PREFIX}/lib
  41. else
  42. LD_LIBRARY_PATH=${DESTDIR}${PREFIX}/lib:${LD_LIBRARY_PATH}
  43. fi
  44. export LD_LIBRARY_PATH
  45. # Set the path so that locally built apps will be found and used
  46. if test x"$PATH" = x; then
  47. PATH=${DESTDIR}${PREFIX}/bin
  48. else
  49. PATH=${DESTDIR}${PREFIX}/bin:${PATH}
  50. fi
  51. export PATH
  52. # Set the default font path for xserver/xorg unless it's already set
  53. if test x"$FONTPATH" = x; then
  54. 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/"
  55. export FONTPATH
  56. fi