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.

96 lines
3.2 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/base/bdb/bdb.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2004 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. case "$xpkg" in
  23. bdb33) ver=3.3.11 ;;
  24. bdb40) ver=4.0.14 ;;
  25. bdb41) ver=4.1.25 ;;
  26. bdb42) ver=4.2.52 ;;
  27. *)
  28. echo_error "Not supported bdb package name: $xpkg"
  29. exit 1
  30. esac
  31. echo_status "Set package version number based on name: $ver"
  32. hook_add preconf 2 'cd build_unix'
  33. configscript="../dist/configure"
  34. var_append confopt ' ' '--enable-compat185'
  35. var_append confopt ' ' '--enable-cxx'
  36. var_append confopt ' ' "--includedir=$root/$prefix/include/${xpkg:1}"
  37. # we need the install-sh here, since our gnu-install does not
  38. # handle the transform-name ...
  39. var_append confopt ' ' "--program-transform-name='s/db/${xpkg:1}/'"
  40. # bdb doesn't like some of our make options
  41. makeopt="docdir=$docdir all"
  42. makeinstopt="docdir=$docdir install"
  43. hook_add postinstall 8 'chmod 755 $libdir/libdb-${xpkg:3:1}.${xpkg:4:1}.so \
  44. $libdir/libdb_cxx-${xpkg:3:1}.${xpkg:4:1}.so'
  45. # create yet another alternative library name some programs use
  46. # this will crate a symlinks in the form libdb-4.1.so -> libdb41.so
  47. hook_add postinstall 9 'ln -sfv libdb-${xpkg:3:1}.${xpkg:4:1}.so $libdir/libdb${xpkg:3}.so'
  48. hook_add postinstall 9 'ln -sfv libdb-${xpkg:3:1}.${xpkg:4:1}.a $libdir/libdb${xpkg:3}.a'
  49. # bdb does copy the docs itself ...
  50. createdocs=0
  51. if [ $xpkg = bdb33 ]
  52. then
  53. pkg_bdb33_pm() {
  54. # this job should be done by Makefile :(
  55. ln -svf libdb-3.3.a $libdir/libdb-3.a
  56. ln -svf libdb_cxx-3.3.a $libdir/libdb_cxx-3.a
  57. }
  58. hook_add postmake 3 'pkg_bdb33_pm'
  59. # default for it's mayor version
  60. hook_add postmake 4 '[ -e $includedir/${xpkg:1:3} ] || \
  61. ln -svf ${xpkg:1} $includedir/${xpkg:1:3}'
  62. fi
  63. if [ $xpkg = bdb41 ]
  64. then
  65. # default symlinks db.h db_185.h db/ for headers
  66. hook_add postmake 3 "ln -sfv ${xpkg:1}/db.h $root/$prefix/include/db.h"
  67. hook_add postmake 3 "ln -sfv ${xpkg:1}/db_185.h $root/$prefix/include/db_185.h"
  68. hook_add postmake 3 "[ -e $includedir/db ] || \
  69. ln -sfv ${xpkg:1} $includedir/db"
  70. # and default for it's mayor version
  71. hook_add postmake 3 "[ -e $includedir/${xpkg:1:3} ] || \
  72. ln -sfv ${xpkg:1} $includedir/${xpkg:1:3}"
  73. fi
  74. if [ $xpkg = bdb42 ]
  75. then
  76. : not yet the default
  77. ## default symlinks db.h db_185.h db/ for headers
  78. #hook_add postmake 3 "ln -sfv ${xpkg:1}/db.h $root/$prefix/include/db.h"
  79. #hook_add postmake 3 "ln -sfv ${xpkg:1}/db_185.h $root/$prefix/include/db_185.h"
  80. fi