procd: update to latest git HEAD
[openwrt/staging/wigyori.git] / package / libs / gettext-full / patches / 000-relocatable.patch
1 --- a/gettext-tools/misc/autopoint.in
2 +++ b/gettext-tools/misc/autopoint.in
3 @@ -27,7 +27,11 @@ archive_version=@ARCHIVE_VERSION@
4
5 # Set variables
6 # - gettext_datadir directory where the data files are stored.
7 -prefix="@prefix@"
8 +if [ -n "$STAGING_DIR_HOSTPKG" ]; then
9 + prefix="$STAGING_DIR_HOSTPKG"
10 +else
11 + prefix="@prefix@"
12 +fi
13 datarootdir="@datarootdir@"
14 : ${gettext_datadir="@datadir@/gettext"}
15 : ${AUTOM4TE=autom4te}
16 --- a/gettext-tools/misc/gettextize.in
17 +++ b/gettext-tools/misc/gettextize.in
18 @@ -27,7 +27,11 @@ archive_version=@ARCHIVE_VERSION@
19
20 # Set variables
21 # - gettext_datadir directory where the data files are stored.
22 -prefix="@prefix@"
23 +if [ -n "$STAGING_DIR_HOSTPKG" ]; then
24 + prefix="$STAGING_DIR_HOSTPKG"
25 +else
26 + prefix="@prefix@"
27 +fi
28 datarootdir="@datarootdir@"
29 : ${gettext_datadir="@datadir@/gettext"}
30 : ${AUTOM4TE=autom4te}