From: Stefan Fröberg Date: Thu, 3 Jan 2013 12:09:03 +0000 (+0000) Subject: libgcrypt: fix libgcrypt-config X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=857413845eac7f00a9219d7ed45177ae1d271f65;p=buildroot.git libgcrypt: fix libgcrypt-config [Peter: use a single sed invocation] Signed-off-by: Stefan Fröberg Signed-off-by: Peter Korsgaard --- diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk index 3aa60c6973..b0a8a738dc 100644 --- a/package/libgcrypt/libgcrypt.mk +++ b/package/libgcrypt/libgcrypt.mk @@ -25,5 +25,13 @@ endef LIBGCRYPT_POST_PATCH_HOOKS += LIBGCRYPT_DISABLE_TESTS +define LIBGCRYPT_STAGING_LIBGCRYPT_CONFIG_FIXUP + $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \ + -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \ + $(STAGING_DIR)/usr/bin/libgcrypt-config +endef + +LIBGCRYPT_POST_INSTALL_STAGING_HOOKS += LIBGCRYPT_STAGING_LIBGCRYPT_CONFIG_FIXUP + $(eval $(autotools-package))