aboutsummaryrefslogtreecommitdiffstats
path: root/package/libnspr
diff options
context:
space:
mode:
Diffstat (limited to 'package/libnspr')
-rw-r--r--package/libnspr/libnspr.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/libnspr/libnspr.mk b/package/libnspr/libnspr.mk
index a9d5812f2..590a755c9 100644
--- a/package/libnspr/libnspr.mk
+++ b/package/libnspr/libnspr.mk
@@ -38,4 +38,12 @@ define LIBNSPR_INSTALL_TARGET_PC
endef
LIBNSPR_POST_INSTALL_TARGET_HOOKS += LIBNSPR_INSTALL_TARGET_PC
+define LIBNSPR_STAGING_LIBNSPR_CONFIG_FIXUP
+ $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+ -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+ $(STAGING_DIR)/usr/bin/nspr-config
+endef
+
+LIBNSPR_POST_INSTALL_STAGING_HOOKS += LIBNSPR_STAGING_LIBNSPR_CONFIG_FIXUP
+
$(eval $(autotools-package))