gettext-full: fix to use $STAGING_DIR_HOSTPKG instead of $STAGING_DIR/host
[openwrt/openwrt.git] / package / libs / gettext-full / patches / 000-relocatable.patch
index c475579b39d90f1f665ba1522e297ec1ba147921..a95c268f5bc94ed8ec3784ae2044aa77e0322491 100644 (file)
@@ -5,8 +5,8 @@
  # Set variables
  # - gettext_datadir     directory where the data files are stored.
 -prefix="@prefix@"
-+if [ -n "$STAGING_DIR" ]; then
-+      prefix="$STAGING_DIR/../host"
++if [ -n "$STAGING_DIR_HOSTPKG" ]; then
++      prefix="$STAGING_DIR_HOSTPKG"
 +else
 +      prefix="@prefix@"
 +fi
@@ -20,8 +20,8 @@
  # Set variables
  # - gettext_datadir     directory where the data files are stored.
 -prefix="@prefix@"
-+if [ -n "$STAGING_DIR" ]; then
-+      prefix="$STAGING_DIR/../host"
++if [ -n "$STAGING_DIR_HOSTPKG" ]; then
++      prefix="$STAGING_DIR_HOSTPKG"
 +else
 +      prefix="@prefix@"
 +fi