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.

60 lines
1.7 KiB

  1. # hook_add premake 5 " " "ln -svf X11R7 $root/usr/X11"
  2. prefix="$root/usr/X11R7"
  3. set_confopt
  4. if [[ "$xpkg" == font-* && "$xpkg" != font-util ]] ; then
  5. xorg_fonts_preconf ()
  6. {
  7. # This prevents creation of fonts.scale and font.dir files.
  8. sed -i -e's,\(.*$(MAKE).*install-data-hook\),#\1,' Makefile.in
  9. }
  10. hook_add preconf 5 xorg_fonts_preconf
  11. fi
  12. SUDO=""
  13. DESTDIR="$root/"
  14. PREFIX="$prefix"
  15. # Must create local aclocal dir or aclocal fails
  16. ACLOCAL_LOCALDIR="${DESTDIR}${PREFIX}/share/aclocal"
  17. $SUDO mkdir -p ${ACLOCAL_LOCALDIR}
  18. # The following is required to make aclocal find our .m4 macros
  19. if test x"$ACLOCAL" = x; then
  20. ACLOCAL="aclocal -I ${ACLOCAL_LOCALDIR}"
  21. else
  22. ACLOCAL="${ACLOCAL} -I ${ACLOCAL_LOCALDIR}"
  23. fi
  24. export ACLOCAL
  25. # The following is required to make pkg-config find our .pc metadata files
  26. if test x"$PKG_CONFIG_PATH" = x; then
  27. PKG_CONFIG_PATH=${DESTDIR}${PREFIX}/lib/pkgconfig
  28. else
  29. PKG_CONFIG_PATH=${DESTDIR}${PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}
  30. fi
  31. export PKG_CONFIG_PATH
  32. # Set the library path so that locally built libs will be found by apps
  33. if test x"$LD_LIBRARY_PATH" = x; then
  34. LD_LIBRARY_PATH=${DESTDIR}${PREFIX}/lib
  35. else
  36. LD_LIBRARY_PATH=${DESTDIR}${PREFIX}/lib:${LD_LIBRARY_PATH}
  37. fi
  38. export LD_LIBRARY_PATH
  39. # Set the path so that locally built apps will be found and used
  40. if test x"$PATH" = x; then
  41. PATH=${DESTDIR}${PREFIX}/bin
  42. else
  43. PATH=${DESTDIR}${PREFIX}/bin:${PATH}
  44. fi
  45. export PATH
  46. # Set the default font path for xserver/xorg unless it's already set
  47. if test x"$FONTPATH" = x; then
  48. 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/"
  49. export FONTPATH
  50. fi