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.

61 lines
2.0 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 - 2014 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. # LD=$CC is a hack that for now (2014-07-08) we need for
  17. # unknown reasons, please study and remove if cause is found.
  18. var_append makeopt ' ' "LD=$CC"
  19. var_append configcache ' ' "rd_cv_ms_async=ok"
  20. var_append extraconfopt " " "--enable-shared"
  21. # tcl support
  22. pkginstalled tcl || var_append extraconfopt ' ' "--disable-tcl"
  23. # python support
  24. pkginstalled python || var_append extraconfopt ' ' "--disable-python"
  25. # perl support
  26. if pkginstalled perl ; then
  27. # install perl modules into 'vendor_perl' directory
  28. var_append extraconfopt ' ' "--with-perl-options='INSTALLDIRS=vendor'"
  29. else
  30. var_append extraconfopt ' ' "--disable-perl"
  31. fi
  32. # ruby support is broken right now (2007-05-13)
  33. var_append extraconfopt ' ' "--disable-ruby"
  34. # lua binding support
  35. # fix to remove the installed rrd.a and rrd.la from lua's cmod dir
  36. rrdtool_lua_installfix() {
  37. egrep '.*\/rrd\.(a|la)$' $builddir/flist.txt |
  38. while read fn ; do
  39. if [ -e $root/$fn ]; then
  40. # remove the file
  41. rm -f $root/$fn
  42. # fix flist.txt
  43. local pattern=$( echo $fn | sed "s:\/:\\\/:g" )
  44. sed '/$pattern/d' $builddir/flist.txt > $builddir/flist.txt.fixed
  45. fi
  46. done
  47. # replace the old flist.txt with the fixed one
  48. [ -e $builddir/flist.txt.fixed ] && mv $builddir/flist.txt{.fixed,}
  49. }
  50. if pkginstalled -f lua; then
  51. hook_add postflist 9 'rrdtool_lua_installfix'
  52. fi