summaryrefslogtreecommitdiffstats
path: root/package/libcurl
diff options
context:
space:
mode:
Diffstat (limited to 'package/libcurl')
-rw-r--r--package/libcurl/Config.in13
-rw-r--r--package/libcurl/libcurl.mk17
2 files changed, 30 insertions, 0 deletions
diff --git a/package/libcurl/Config.in b/package/libcurl/Config.in
new file mode 100644
index 000000000..1d6d08e68
--- /dev/null
+++ b/package/libcurl/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_LIBCURL
+ bool "libcurl"
+ help
+ cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet,
+ and Dict servers, using any of the supported protocols.
+
+ http://curl.haxx.nu/
+
+config BR2_PACKAGE_CURL
+ bool "curl binary"
+ depends on BR2_PACKAGE_LIBCURL
+ help
+ Install curl binary as well
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
new file mode 100644
index 000000000..60ed3623d
--- /dev/null
+++ b/package/libcurl/libcurl.mk
@@ -0,0 +1,17 @@
+#############################################################
+#
+# libcurl
+#
+#############################################################
+LIBCURL_VERSION = 7.19.2
+LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.bz2
+LIBCURL_SITE = http://curl.haxx.se/download/
+LIBCURL_INSTALL_STAGING = YES
+LIBCURL_CONF_OPT = --disable-verbose --disable-manual --enable-hidden-symbols \
+ $(DISABLE_NLS) $(DISABLE_LARGEFILE) $(DISABLE_IPV6)
+
+$(eval $(call AUTOTARGETS,package,libcurl))
+
+$(LIBCURL_HOOK_POST_INSTALL):
+ rm -rf $(TARGET_DIR)/usr/bin/curl-config \
+ $(if $(BR2_PACKAGE_CURL),,$(TARGET_DIR)/usr/bin/curl)