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.

92 lines
2.6 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/avm/xfce4/xfce4.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. if [ "$prefix_auto" = 1 ] ; then
  23. prefix=$ROCKCFG_PKG_XFCE4_CORE_PREFIX
  24. set_confopt
  25. fi
  26. # It already uses a subdirectory
  27. sysconfdir="${sysconfdir%xfce4}"
  28. # Several packages install fr docs
  29. [ "$ROCKCFG_DISABLE_NLS" = 1 ] && postmake="rm -rf $datadir/xfce4/doc/??{,_??}"
  30. xfce4_custmain() {
  31. if [ "$prefix_auto" = 1 ] ; then
  32. prefix="opt/xfce4"
  33. var_append confopt " " "--prefix=$root/$prefix"
  34. fi
  35. # these need to be built first in that order
  36. xfce4_prebuild="libxfce4util libxfcegui4 libxfce4mcs xfce-mcs-manager\
  37. xfce4-panel"
  38. for i in $xfce4_prebuild; do
  39. echo "Building $i ..."
  40. echo "extracting src/${i}*.tar.gz ..."
  41. tar xzf src/${i}*.tar.gz
  42. cd ${i}*
  43. hook_eval preconf
  44. echo "./configure $confopt"
  45. eval ./configure $confopt
  46. hook_eval premake
  47. echo "make $makeopt"
  48. eval make $makeopt
  49. echo "evaluating inmake"
  50. hook_eval inmake
  51. echo "make $makeopt $makeinstopt"
  52. eval make $makeopt $makeinstopt
  53. hook_eval postmake
  54. cd ..
  55. echo "Finished building $i"
  56. done
  57. for i in src/*.tar.gz; do
  58. i=$(basename ${i/.tar.gz})
  59. if [[ ${xfce4_prebuild} != *${i} ]]; then
  60. echo "Building $i ..."
  61. tar xzf src/${i}*.tar.gz
  62. cd ${i}*
  63. hook_eval preconf
  64. echo "./configure $confopt"
  65. eval ./configure $confopt
  66. hook_eval premake
  67. echo "make $makeopt"
  68. eval make $makeopt
  69. hook_eval inmake
  70. echo "make $makeopt $makeinstopt"
  71. eval make $makeopt $makeinstopt
  72. hook_eval postmake
  73. cd ..
  74. echo "Finished building $i"
  75. fi
  76. done
  77. }
  78. custmain="xfce4_custmain"
  79. [ "$ROCKCFG_PKG_XFCE4_SANS11" = 1 ] && hook_add preconf 3 "\
  80. if [[ $PWD == *xfwm4-4* ]]; then \
  81. sed -i -e "/DEFAULT_FONT/s/10/11/" mcs-plugin/xfwm4_plugin.c; fi"