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.

89 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../subversion/subversion.conf
  5. # Copyright (C) 2006 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. # use the apache prefix
  17. # . $base/package/*/apache/apache.conf
  18. if [ $prefix_auto = 1 ]; then
  19. prefix="usr"
  20. set_confopt
  21. fi
  22. # APR is mandatory, so no additional test needed.
  23. #
  24. pkgprefix -t apr
  25. var_append extraconfopt " " "--with-apr=$root/$( pkgprefix apr )"
  26. pkgprefix -t apr-util
  27. var_append extraconfopt " " "--with-apr-util=$root/$( pkgprefix apr-util )"
  28. # all this is to build the apache server-side module and if so, no modification
  29. # to httpd.conf are done ...
  30. #
  31. if pkginstalled apache; then
  32. var_append extraconfopt " " "--with-apxs=$root/$( pkgprefix sbindir apache )/apxs"
  33. var_append extraconfopt " " "--disable-mod-activation"
  34. # --with-berkeley-db=/usr/include/db40:/usr/lib
  35. fi
  36. # build and install perl bindings
  37. svn_inst_pl() {
  38. make swig-pl
  39. make install-swig-pl
  40. }
  41. # build and install python bindings
  42. svn_inst_py() {
  43. # PYTHON_SITE=`python -c "import os,sys; print os.path.join(sys.prefix, 'lib','python'+sys.version[:3],'site-packages')"`
  44. # DESTDIR is used inside
  45. PYTHON_SITE=$(pkgprefix libdir python)/python$( pkgprefix ver python | cut -d. -f1-2 )
  46. make swig-py \
  47. swig_pydir=$PYTHON_SITE/libsvn \
  48. swig_pydir_extra=$PYTHON_SITE/svn
  49. make install-swig-py \
  50. swig_pydir=$PYTHON_SITE/libsvn \
  51. swig_pydir_extra=$PYTHON_SITE/svn
  52. }
  53. # build and install ruby bindings
  54. svn_inst_rb() {
  55. make swig-rb
  56. make install-swig-rb
  57. }
  58. hook_add postmake 3 "install_init svnserve $confdir/svnserve.init"
  59. hook_add postmake 4 "cp -vrf tools $docdir"
  60. # if swig is present build and install the perl and python bindings
  61. if pkginstalled swig; then
  62. pkginstalled perl && hook_add postmake 5 "svn_inst_pl"
  63. pkginstalled python && hook_add postmake 5 "svn_inst_py"
  64. pkginstalled ruby && hook_add postmake 5 "svn_inst_rb"
  65. fi
  66. # use system wide neon
  67. if pkginstalled neon; then
  68. pkgprefix -t neon
  69. var_append extraconfopt " " "--with-neon=$root/$( pkgprefix neon )"
  70. var_append extraconfopt " " "--disable-neon-version-check"
  71. fi
  72. # use bdb if available (it needs bdb 4.4)
  73. if pkginstalled bdb; then
  74. var_append extraconfopt " " "--with-berkeley-db"
  75. else
  76. var_append extraconfopt " " "--without-berkeley-db"
  77. fi