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.

41 lines
1.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/.../edb/parse-config
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. if hasflag E17; then
  16. if [ "$prefix_auto" = 1 ] ; then
  17. if [ "$pkg" == edb ]; then
  18. prefix="${SDECFG_PKG_E17_CORE_PREFIX:-opt/e17}"
  19. set_confopt
  20. elif pkginstalled edb ; then
  21. pkgprefix -t edb
  22. prefix=`pkgprefix edb`
  23. set_confopt
  24. fi
  25. fi
  26. # e17 is CVS only so we have to run the included autogen.sh
  27. e17_autogen() {
  28. # required automake file sometimes missing
  29. [ ! -e Changelog ] || touch ChangeLog
  30. # exporting NOCONFIGURE=yes to not run ./configure automatically
  31. # if the included autogen fails set autogen=1 to use our own ones
  32. if ! env NOCONFIGURE=yes sh autogen.sh; then
  33. autogen=1
  34. fi
  35. }
  36. hook_add preconf 5 "[ ! -e autogen.sh ] || e17_autogen"
  37. fi