libgcrypt: fix libgcrypt-config
authorStefan Fröberg <stefan.froberg@petroprogram.com>
Thu, 3 Jan 2013 12:09:03 +0000 (12:09 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 4 Jan 2013 21:33:34 +0000 (22:33 +0100)
[Peter: use a single sed invocation]
Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libgcrypt/libgcrypt.mk

index 3aa60c697364d00684c216664105f5e107a00e3d..b0a8a738dc6cb9a2094c3b700fcc0acbeedee69b 100644 (file)
@@ -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))