summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorStefan Fröberg <stefan.froberg@petroprogram.com>2013-01-03 12:09:06 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-01-04 22:46:51 +0100
commit89e642ff4807268eed15873a03af7c1d07936f6f (patch)
tree85c189ef4532bf68f01cf2de1de56893989a65db /package
parent0db5e1203df9219498fe2ffa749d8818515a5607 (diff)
downloadbuildroot-novena-89e642ff4807268eed15873a03af7c1d07936f6f.tar.gz
buildroot-novena-89e642ff4807268eed15873a03af7c1d07936f6f.zip
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>
Diffstat (limited to 'package')
-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))