summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Fröberg <stefan.froberg@petroprogram.com>2013-01-03 12:09:03 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-01-04 21:33:34 (GMT)
commit857413845eac7f00a9219d7ed45177ae1d271f65 (patch)
treeb6496c42a468b30179bf87784259bfc9a2ccfb2f
parent6ba5ac89f890b1dd515fc906bbd82cfdc373e5a2 (diff)
downloadbuildroot-857413845eac7f00a9219d7ed45177ae1d271f65.tar.gz
buildroot-857413845eac7f00a9219d7ed45177ae1d271f65.tar.bz2
libgcrypt: fix libgcrypt-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/libgcrypt/libgcrypt.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 3aa60c6..b0a8a73 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))