000-relocatable.patch 850 B

123456789101112131415161718192021222324252627282930
  1. --- a/gettext-tools/misc/autopoint.in
  2. +++ b/gettext-tools/misc/autopoint.in
  3. @@ -27,7 +27,11 @@ archive_version=@ARCHIVE_VERSION@
  4. # Set variables
  5. # - gettext_datadir directory where the data files are stored.
  6. -prefix="@prefix@"
  7. +if [ -n "$STAGING_DIR" ]; then
  8. + prefix="$STAGING_DIR/../host"
  9. +else
  10. + prefix="@prefix@"
  11. +fi
  12. datarootdir="@datarootdir@"
  13. : ${gettext_datadir="@datadir@/gettext"}
  14. : ${AUTOM4TE=autom4te}
  15. --- a/gettext-tools/misc/gettextize.in
  16. +++ b/gettext-tools/misc/gettextize.in
  17. @@ -27,7 +27,11 @@ archive_version=@ARCHIVE_VERSION@
  18. # Set variables
  19. # - gettext_datadir directory where the data files are stored.
  20. -prefix="@prefix@"
  21. +if [ -n "$STAGING_DIR" ]; then
  22. + prefix="$STAGING_DIR/../host"
  23. +else
  24. + prefix="@prefix@"
  25. +fi
  26. datarootdir="@datarootdir@"
  27. : ${gettext_datadir="@datadir@/gettext"}
  28. : ${AUTOM4TE=autom4te}