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.

88 lines
2.5 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 - 2006 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 ]
  32. then
  33. prefix="opt/xfce4"
  34. set_confopt
  35. fi
  36. # we create the $prefix here - so it's not in the env yet..
  37. export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$libdir/pkgconfig"
  38. export PATH="$PATH:$bindir"
  39. # sometimes xfce is unsure if its own header files are
  40. # in /$prefix/include/ or /$prefix/include/xfce4/ ..
  41. var_append CC_WRAPPER_APPEND " " "-I$includedir"
  42. for i in \
  43. src/libxfce4util-*.tar.gz \
  44. src/dbh-*.tar.gz \
  45. src/libxfcegui4-*.tar.gz \
  46. src/libxfce4mcs-*.tar.gz \
  47. src/xfce-mcs-manager-*.tar.gz \
  48. src/xfce4-panel-*.tar.gz \
  49. src/*.tar.gz
  50. do
  51. if [ ! -d $(basename ${i%.tar.gz}) ]; then
  52. echo
  53. echo "Building $i ..."
  54. tar xzf ${i}
  55. cd $(basename ${i%.tar.gz})
  56. hook_eval preconf
  57. echo "./configure $confopt"
  58. eval ./configure $confopt
  59. hook_eval premake
  60. echo "make $makeopt"
  61. eval make $makeopt
  62. echo "evaluating inmake"
  63. hook_eval inmake
  64. echo "make $makeopt $makeinstopt"
  65. eval make $makeopt $makeinstopt
  66. hook_eval postmake
  67. echo "Finished building $i"
  68. echo
  69. cd ..
  70. fi
  71. done
  72. }
  73. custmain="xfce4_custmain"
  74. [ "$ROCKCFG_PKG_XFCE4_SANS11" = 1 ] && hook_add preconf 3 "\
  75. if [[ $PWD == *xfwm4-4* ]]; then \
  76. sed -i -e "/DEFAULT_FONT/s/10/11/" mcs-plugin/xfwm4_plugin.c; fi"