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.

46 lines
1.8 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/bdb40/bdb_config.sh
  9. # ROCK Linux is Copyright (C) 1998 - 2003 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. hook_add preconf 2 'cd build_unix'
  23. configscript="../dist/configure"
  24. var_append confopt ' ' '--enable-compat185'
  25. var_append confopt ' ' '--enable-cxx'
  26. var_append confopt ' ' "--includedir=$root/$prefix/include/${pkg:1}"
  27. # we need the install-sh here, since our gnu-install does not
  28. # handle the transform-name ...
  29. var_append confopt ' ' "--program-transform-name='s/db/${pkg:1}/'"
  30. # bdb doesn't like some of our make options
  31. makeopt="docdir=$docdir all" ; makeinstopt="docdir=$docdir install"
  32. hook_add postinstall 8 'chmod 755 $libdir/libdb-${ver:0:3}.so \
  33. $libdir/libdb_cxx-${ver:0:3}.so'
  34. # create yet another alternative library name some programs use
  35. # this will crate a symlink in the form libdb-4.1.so -> libdb41.so
  36. hook_add postinstall 9 'ln -sfv libdb-${ver:0:3}.so $libdir/libdb${pkg:3}.so'
  37. # bdb does copy the docs itself ...
  38. createdocs=0