From 89e642ff4807268eed15873a03af7c1d07936f6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20Fr=C3=B6berg?= Date: Thu, 3 Jan 2013 12:09:06 +0000 Subject: [PATCH] libnspr: fix nspr-config MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit [Peter: use a single sed invocation] Signed-off-by: Stefan Fröberg Signed-off-by: Peter Korsgaard --- package/libnspr/libnspr.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/libnspr/libnspr.mk b/package/libnspr/libnspr.mk index a9d5812f21..590a755c9c 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)) -- 2.30.2