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.

60 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../automake/parse-config
  5. # Copyright (C) 2010 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. # If an application is running automake, it includes all the stuff
  17. # from usr/share/aclocal/ and so depends on all packages placing
  18. # something there.
  19. #
  20. # We can savely ignore those dependencies, since a package which is really
  21. # using an others package aclocal file will also access other files related
  22. # to the package outside of usr/share/aclocal.
  23. #
  24. var_append flistrfilter "|" ".*: /usr/share/aclocal/.*"
  25. automake_fixup() {
  26. local pref=$root
  27. if ! atstage native; then
  28. pref=$base/build/$SDECFG_ID/TOOLCHAIN/tools.cross
  29. fi
  30. if [ -d $pref/usr/share/automake/ ]; then
  31. # search (recursively) for the files
  32. find -name config.sub -o -name config.guess | while read file; do
  33. if grep -q Autoconf $file ; then
  34. echo "Updating $file"
  35. cp -fv $pref/usr/share/automake/${file##*/} $file
  36. fi
  37. done
  38. fi
  39. }
  40. # some packages do not include an up-to-date config.{sub,guess}
  41. if ! atstage toolchain && hasflag AUTOMAKE-QUIRK; then
  42. hook_add preconf 3 automake_fixup
  43. fi
  44. pkg_automake_export_aclocal() {
  45. for x in $(cd "${root:-/}"; for d in opt/*/share/aclocal{,-*}/ \
  46. ; do
  47. [ -d "$d" ] || continue
  48. readlink -f "$d"
  49. done | sort -u); do
  50. export ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $x"
  51. done
  52. }
  53. hook_add preconf 3 'pkg_automake_export_aclocal'