summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Fröberg <stefan.froberg@petroprogram.com>2013-01-03 12:09:06 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-01-04 21:46:51 (GMT)
commit89e642ff4807268eed15873a03af7c1d07936f6f (patch)
tree85c189ef4532bf68f01cf2de1de56893989a65db
parent0db5e1203df9219498fe2ffa749d8818515a5607 (diff)
downloadbuildroot-89e642ff4807268eed15873a03af7c1d07936f6f.tar.gz
buildroot-89e642ff4807268eed15873a03af7c1d07936f6f.tar.bz2
libnspr: fix nspr-config
[Peter: use a single sed invocation] Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-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 a9d5812..590a755 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))