aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/gettext-full/patches/000-relocatable.patch
blob: c14be728367b57c08024d848cf8ff847cfe865be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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}