diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-12 07:51:56 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-12 07:51:56 +0000 |
commit | b809725eb185c00c14e34d8e4e9d5c4d30a5a985 (patch) | |
tree | a260bbe88816a7595ccdac5ffe2709ca41794084 /package/libs/gettext-full/patches | |
parent | f301086eca942852eae8e5007fca71d321021270 (diff) | |
download | mtk-20170518-b809725eb185c00c14e34d8e4e9d5c4d30a5a985.zip mtk-20170518-b809725eb185c00c14e34d8e4e9d5c4d30a5a985.tar.gz mtk-20170518-b809725eb185c00c14e34d8e4e9d5c4d30a5a985.tar.bz2 |
gettext-full: make autopoint and gettextize reloctable
The autopoint and gettextize host utilities contain hardcoded staging dir
paths which need to be overridden for the SDK environment.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 48208
Diffstat (limited to 'package/libs/gettext-full/patches')
-rw-r--r-- | package/libs/gettext-full/patches/000-relocatable.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/libs/gettext-full/patches/000-relocatable.patch b/package/libs/gettext-full/patches/000-relocatable.patch new file mode 100644 index 0000000..c475579 --- /dev/null +++ b/package/libs/gettext-full/patches/000-relocatable.patch @@ -0,0 +1,30 @@ +--- a/gettext-tools/misc/autopoint.in ++++ b/gettext-tools/misc/autopoint.in +@@ -27,7 +27,11 @@ archive_version=@ARCHIVE_VERSION@ + + # Set variables + # - gettext_datadir directory where the data files are stored. +-prefix="@prefix@" ++if [ -n "$STAGING_DIR" ]; then ++ prefix="$STAGING_DIR/../host" ++else ++ prefix="@prefix@" ++fi + datarootdir="@datarootdir@" + : ${gettext_datadir="@datadir@/gettext"} + : ${AUTOM4TE=autom4te} +--- a/gettext-tools/misc/gettextize.in ++++ b/gettext-tools/misc/gettextize.in +@@ -27,7 +27,11 @@ archive_version=@ARCHIVE_VERSION@ + + # Set variables + # - gettext_datadir directory where the data files are stored. +-prefix="@prefix@" ++if [ -n "$STAGING_DIR" ]; then ++ prefix="$STAGING_DIR/../host" ++else ++ prefix="@prefix@" ++fi + datarootdir="@datarootdir@" + : ${gettext_datadir="@datadir@/gettext"} + : ${AUTOM4TE=autom4te} |