projects
/
openwrt-github
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gettext-full: fix relocatable patch
[openwrt-github/.git]
/
package
/
libs
/
gettext-full
/
patches
/
000-relocatable.patch
diff --git
a/package/libs/gettext-full/patches/000-relocatable.patch
b/package/libs/gettext-full/patches/000-relocatable.patch
index c475579b39d90f1f665ba1522e297ec1ba147921..c14be728367b57c08024d848cf8ff847cfe865be 100644
(file)
--- a/
package/libs/gettext-full/patches/000-relocatable.patch
+++ b/
package/libs/gettext-full/patches/000-relocatable.patch
@@
-6,7
+6,7
@@
# - gettext_datadir directory where the data files are stored.
-prefix="@prefix@"
+if [ -n "$STAGING_DIR" ]; then
# - gettext_datadir directory where the data files are stored.
-prefix="@prefix@"
+if [ -n "$STAGING_DIR" ]; then
-+ prefix="$STAGING_DIR/
../
host"
++ prefix="$STAGING_DIR/host"
+else
+ prefix="@prefix@"
+fi
+else
+ prefix="@prefix@"
+fi
@@
-21,7
+21,7
@@
# - gettext_datadir directory where the data files are stored.
-prefix="@prefix@"
+if [ -n "$STAGING_DIR" ]; then
# - gettext_datadir directory where the data files are stored.
-prefix="@prefix@"
+if [ -n "$STAGING_DIR" ]; then
-+ prefix="$STAGING_DIR/
../
host"
++ prefix="$STAGING_DIR/host"
+else
+ prefix="@prefix@"
+fi
+else
+ prefix="@prefix@"
+fi