summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-06-02 06:13:52 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-11 22:35:45 +0200
commitf83cd598907c5b8ac3a2b1bbb70c071d1ae929d8 (patch)
treedd15b267645f594095816ae0e635fb575aa1ea29 /package
parent06ad6b03ed6145db19afe3a741858f531efd71c5 (diff)
downloadbuildroot-novena-f83cd598907c5b8ac3a2b1bbb70c071d1ae929d8.tar.gz
buildroot-novena-f83cd598907c5b8ac3a2b1bbb70c071d1ae929d8.zip
libcurl: fix up prefix in curl-config
While most packages that rely on libcurl use pkg-config, a few packages (such as libxmlrpc) still use curl-config. So we need to fix up the prefix locations in the curl-config script installed in STAGING_DIR. [Peter: only fixup if prefix=/usr] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/libcurl/libcurl.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index e8f13bb4c..50a55b4de 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -30,6 +30,12 @@ endef
LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
+define LIBCURL_STAGING_FIXUP_CURL_CONFIG
+ $(SED) "s,prefix=/usr,prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/bin/curl-config
+endef
+
+LIBCURL_POST_INSTALL_STAGING_HOOKS += LIBCURL_STAGING_FIXUP_CURL_CONFIG
+
$(eval $(call AUTOTARGETS))
curl: libcurl