blob: 2491199f18cecc6f6f436c31eb257125e57a0c1e [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Console URL download utility supporting HTTP, FTP, etc"
Brad Bishopf3f93bb2019-10-16 14:33:32 -04002DESCRIPTION = "Wget is a network utility to retrieve files from the web using \
3HTTP(S) and FTP, the two most widely used internet protocols. It works \
4non-interactively, so it will work in the background, after having logged off. \
5The program supports recursive retrieval of web-authoring pages as well as \
6FTP sites"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007HOMEPAGE = "https://www.gnu.org/software/wget/"
8SECTION = "console/network"
9LICENSE = "GPLv3"
Brad Bishop316dfdd2018-06-25 12:45:53 -040010LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012inherit autotools gettext texinfo update-alternatives pkgconfig
13
Andrew Geisslereff27472021-10-29 15:35:00 -050014DEPENDS += "autoconf-archive"
15
Brad Bishop19323692019-04-05 15:28:33 -040016EXTRA_OECONF = "--without-libgnutls-prefix --without-libssl-prefix \
17 --disable-rpath"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018
Brad Bishop316dfdd2018-06-25 12:45:53 -040019EXTRA_OEMAKE += 'TOOLCHAIN_OPTIONS="${TOOLCHAIN_OPTIONS}" \
20 DEBUG_PREFIX_MAP="${DEBUG_PREFIX_MAP}"'
21
Patrick Williams213cb262021-08-07 19:21:33 -050022ALTERNATIVE:${PN} = "wget"
23ALTERNATIVE:${PN}:class-nativesdk = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024ALTERNATIVE_PRIORITY = "100"
25
Patrick Williams213cb262021-08-07 19:21:33 -050026RRECOMMENDS:${PN} += "ca-certificates"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028BBCLASSEXTEND = "nativesdk"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
Brad Bishop19323692019-04-05 15:28:33 -040030PACKAGECONFIG ??= "gnutls pcre zlib \
31 ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
32PACKAGECONFIG[ares] = "--with-cares,--without-cares,c-ares"
33PACKAGECONFIG[gnutls] = "--with-ssl=gnutls,,gnutls"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060034PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
Brad Bishop19323692019-04-05 15:28:33 -040035PACKAGECONFIG[iri] = "--enable-iri,--disable-iri,libidn2"
36PACKAGECONFIG[libpsl] = "--with-libpsl,--without-libpsl,libpsl"
37PACKAGECONFIG[libuuid] = "--with-libuuid,--without-libuuid,util-linux"
38PACKAGECONFIG[openssl] = "--with-ssl=openssl,,openssl"
39PACKAGECONFIG[pcre] = "--enable-pcre,--disable-pcre,libpcre"
40PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050041
42# Let aclocal use the relative path for the m4 file rather than
43# absolute, otherwise there might be an "Argument list too long" error
44# when it is built in a long/deep directory.
45acpaths = "-I ./m4"