fix gettext path for gdbm

This commit is contained in:
coolsnowwolf 2018-01-11 21:19:53 +08:00
parent 164b62e069
commit 5d5ba500e6
2 changed files with 5 additions and 4 deletions

View File

@ -19,6 +19,7 @@ HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
PKG_LICENSE:=GPL-3.0+
PKG_CPE_ID:=cpe:/a:gnu:gettext
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1

View 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