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.

70 lines
1.6 KiB

  1. if [ "$prefix_auto" = 1 ] ; then
  2. prefix=$ROCKCFG_PKG_XFCE4_CORE_PREFIX
  3. set_confopt
  4. fi
  5. # It already uses a subdirectory
  6. sysconfdir="${sysconfdir%xfce4}"
  7. # Several packages install fr docs
  8. [ "$ROCKCFG_DISABLE_NLS" = 1 ] && postmake="rm -rf $datadir/xfce4/doc/??{,_??}"
  9. xfce4_custmain() {
  10. if [ "$prefix_auto" = 1 ] ; then
  11. prefix="opt/xfce4"
  12. var_append confopt " " "--prefix=$root/$prefix"
  13. fi
  14. # these need to be built first in that order
  15. xfce4_prebuild="libxfce4util libxfcegui4 libxfce4mcs xfce-mcs-manager\
  16. xfce4-panel"
  17. for i in $xfce4_prebuild; do
  18. echo "Building $i ..."
  19. echo "extracting src/${i}*.tar.gz ..."
  20. tar xzf src/${i}*.tar.gz
  21. cd ${i}*
  22. hook_eval preconf
  23. echo "./configure $confopt"
  24. eval ./configure $confopt
  25. hook_eval premake
  26. echo "make $makeopt"
  27. eval make $makeopt
  28. echo "evaluating inmake"
  29. hook_eval inmake
  30. echo "make $makeopt $makeinstopt"
  31. eval make $makeopt $makeinstopt
  32. hook_eval postmake
  33. cd ..
  34. echo "Finished building $i"
  35. done
  36. for i in src/*.tar.gz; do
  37. i=$(basename ${i/.tar.gz})
  38. if [[ ${xfce4_prebuild} != *${i} ]]; then
  39. echo "Building $i ..."
  40. tar xzf src/${i}*.tar.gz
  41. cd ${i}*
  42. hook_eval preconf
  43. echo "./configure $confopt"
  44. eval ./configure $confopt
  45. hook_eval premake
  46. echo "make $makeopt"
  47. eval make $makeopt
  48. hook_eval inmake
  49. echo "make $makeopt $makeinstopt"
  50. eval make $makeopt $makeinstopt
  51. hook_eval postmake
  52. cd ..
  53. echo "Finished building $i"
  54. fi
  55. done
  56. }
  57. custmain="xfce4_custmain"
  58. [ "$ROCKCFG_PKG_XFCE4_SANS11" = 1 ] && hook_add preconf 3 "\
  59. if [[ $PWD == *xfwm4-4* ]]; then \
  60. sed -i -e "/DEFAULT_FONT/s/10/11/" mcs-plugin/xfwm4_plugin.c; fi"