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.

72 lines
2.2 KiB

  1. #!/bin/sh
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: package/.../bdb/bdb-conf.in
  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. # oficial patches
  17. bdb_autopatch() {
  18. local x=
  19. for x in `match_source_file -p patch ${pkg%-java}` ; do
  20. patch -p0 < $x
  21. done
  22. }
  23. hook_add prepatch 5 'bdb_autopatch'
  24. hook_add preconf 5 'cd build_unix'
  25. configscript="../dist/configure"
  26. # explicitly link to pthread (required for --as-needed)
  27. var_append GCC_WRAPPER_APPEND ' ' "-lpthread"
  28. if [[ $pkg = *-java ]]; then
  29. pkgprefix -t java-dirtree
  30. prefix=$( pkgprefix java-dirtree )
  31. set_confopt
  32. var_append confopt ' ' '--enable-java'
  33. libjso_base=libdb_java
  34. libversion=${ver:0:3}
  35. # bdb doesn't like some of our make options
  36. makeopt="libj_jarfile=$libjso_base-${libversion}.jar"
  37. makeinstopt="$makeopt"
  38. var_append makeinstopt ' ' install_lib
  39. var_append makeinstopt ' ' "install_docs docdir=$docdir DOCLIST=java"
  40. var_append makeopt ' ' $libjso_base-${libversion}.la
  41. var_append makeopt ' ' java
  42. else
  43. var_append confopt ' ' '--enable-compat185'
  44. var_append confopt ' ' '--enable-cxx'
  45. # we need the install-sh here, since our gnu-install does not
  46. # handle the transform-name ...
  47. var_append confopt ' ' "--program-transform-name='s/db/db${ver:0:1}/'"
  48. # bdb doesn't like some of our make options
  49. makeopt="docdir=$docdir all" ; makeinstopt="docdir=$docdir install"
  50. # create yet another alternative library name some programs use
  51. # this will crate a symlink in the form libdb-4.1.so -> libdb41.so
  52. hook_add postinstall 9 'ln -sfv libdb-${ver:0:3}.so $root/$libdir/libdb${ver:0:1}.so'
  53. fi
  54. includedir=$includedir/db${ver:0:1}
  55. # bdb does copy the docs itself ...
  56. createdocs=0
  57. var_append makeinstopt ' ' "DESTDIR=$root"