OpenSDE Packages Database (without history before r20070)
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.

57 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../rrdtool/rrdtool.conf
  5. # Copyright (C) 2006 - 2011 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  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; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. var_append configcache ' ' "rd_cv_ms_async=ok"
  17. var_append extraconfopt " " "--enable-shared"
  18. # tcl support
  19. pkginstalled tcl || var_append extraconfopt ' ' "--disable-tcl"
  20. # python support
  21. pkginstalled python || var_append extraconfopt ' ' "--disable-python"
  22. # perl support
  23. if pkginstalled perl ; then
  24. # install perl modules into 'vendor_perl' directory
  25. var_append extraconfopt ' ' "--with-perl-options='INSTALLDIRS=vendor'"
  26. else
  27. var_append extraconfopt ' ' "--disable-perl"
  28. fi
  29. # ruby support is broken right now (2007-05-13)
  30. var_append extraconfopt ' ' "--disable-ruby"
  31. # lua binding support
  32. # fix to remove the installed rrd.a and rrd.la from lua's cmod dir
  33. rrdtool_lua_installfix() {
  34. egrep '.*\/rrd\.(a|la)$' $builddir/flist.txt |
  35. while read fn ; do
  36. if [ -e $root/$fn ]; then
  37. # remove the file
  38. rm -f $root/$fn
  39. # fix flist.txt
  40. local pattern=$( echo $fn | sed "s:\/:\\\/:g" )
  41. sed '/$pattern/d' $builddir/flist.txt > $builddir/flist.txt.fixed
  42. fi
  43. done
  44. # replace the old flist.txt with the fixed one
  45. [ -e $builddir/flist.txt.fixed ] && mv $builddir/flist.txt{.fixed,}
  46. }
  47. if pkginstalled -f lua; then
  48. hook_add postflist 9 'rrdtool_lua_installfix'
  49. fi