From: Stefan Fröberg Date: Thu, 3 Jan 2013 12:09:06 +0000 (+0000) Subject: libnspr: fix nspr-config X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89e642ff4807268eed15873a03af7c1d07936f6f;p=buildroot.git libnspr: fix nspr-config [Peter: use a single sed invocation] Signed-off-by: Stefan Fröberg Signed-off-by: Peter Korsgaard --- 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))