Skip to content

Instantly share code, notes, and snippets.

@brianclements
Last active May 1, 2024 16:45
Show Gist options
  • Save brianclements/9802627 to your computer and use it in GitHub Desktop.
Save brianclements/9802627 to your computer and use it in GitHub Desktop.
cURL package information for addition in buildroot. Copy both files to /package/curl and don't forget to add 'source "package/curl/Config.in"' to your top level Config.in
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
#############################################################
#
# curl
#
#############################################################
LIBCURL_VERSION = 7.36.0
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 $(autotools-package,package,libcurl))
$(LIBCURL_HOOK_POST_INSTALL):
rm -rf $(TARGET_DIR)/usr/bin/curl-config \
$(if $(BR2_PACKAGE_CURL),,$(TARGET_DIR)/usr/bin/curl)
@cswarth
Copy link

cswarth commented May 24, 2017

nice, just used this. thanks for posting.

@shufps
Copy link

shufps commented Jul 13, 2019

package/libcurl/libcurl.mk:85: *** Package error: use LIBCURL_CONF_OPTS instead of LIBCURL_CONF_OPT. Please fix your .mk file.

After the change it worked perfect 👍 thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment