xref: /OK3568_Linux_fs/buildroot/package/wget/wget.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# wget
4#
5################################################################################
6
7WGET_VERSION = 1.21.2
8WGET_SOURCE = wget-$(WGET_VERSION).tar.lz
9WGET_SITE = $(BR2_GNU_MIRROR)/wget
10WGET_DEPENDENCIES = host-pkgconf
11WGET_LICENSE = GPL-3.0+
12WGET_LICENSE_FILES = COPYING
13WGET_CPE_ID_VENDOR = gnu
14
15ifeq ($(BR2_PACKAGE_GNUTLS),y)
16WGET_CONF_OPTS += --with-ssl=gnutls
17WGET_DEPENDENCIES += gnutls
18else ifeq ($(BR2_PACKAGE_OPENSSL),y)
19WGET_CONF_OPTS += --with-ssl=openssl
20WGET_DEPENDENCIES += openssl
21else
22WGET_CONF_OPTS += --without-ssl
23endif
24
25ifeq ($(BR2_PACKAGE_LIBICONV),y)
26WGET_DEPENDENCIES += libiconv
27endif
28
29ifeq ($(BR2_PACKAGE_LIBIDN2),y)
30WGET_CONF_OPTS += --with-libidn
31WGET_DEPENDENCIES += libidn2
32else
33WGET_CONF_OPTS += --without-libidn
34endif
35
36ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
37WGET_DEPENDENCIES += util-linux
38endif
39
40ifeq ($(BR2_PACKAGE_ZLIB),y)
41WGET_CONF_OPTS += --with-zlib
42WGET_DEPENDENCIES += zlib
43else
44WGET_CONF_OPTS += --without-zlib
45endif
46
47ifeq ($(BR2_PACKAGE_PCRE2),y)
48WGET_CONF_OPTS += --disable-pcre --enable-pcre2
49WGET_DEPENDENCIES += pcre2
50else ifeq ($(BR2_PACKAGE_PCRE),y)
51WGET_CONF_OPTS += --enable-pcre --disable-pcre2
52WGET_DEPENDENCIES += pcre
53else
54WGET_CONF_OPTS += --disable-pcre --disable-pcre2
55endif
56
57$(eval $(autotools-package))
58