]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/wget/wget.mk
23e4c8accaa20a33c9d5f8a2869c2ba34e5561e5
[coffee/buildroot.git] / package / wget / wget.mk
1 ################################################################################
2 #
3 # wget
4 #
5 ################################################################################
6
7 WGET_VERSION = 1.19.4
8 WGET_SOURCE = wget-$(WGET_VERSION).tar.lz
9 WGET_SITE = $(BR2_GNU_MIRROR)/wget
10 WGET_DEPENDENCIES = host-pkgconf
11 WGET_LICENSE = GPL-3.0+
12 WGET_LICENSE_FILES = COPYING
13
14 # Prefer full-blown wget over busybox
15 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
16 WGET_DEPENDENCIES += busybox
17 endif
18
19 ifeq ($(BR2_PACKAGE_GNUTLS),y)
20 WGET_CONF_OPTS += --with-ssl=gnutls
21 WGET_DEPENDENCIES += gnutls
22 else ifeq ($(BR2_PACKAGE_OPENSSL),y)
23 WGET_CONF_OPTS += --with-ssl=openssl
24 WGET_DEPENDENCIES += openssl
25 else
26 WGET_CONF_OPTS += --without-ssl
27 endif
28
29 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
30 WGET_DEPENDENCIES += util-linux
31 endif
32
33 ifeq ($(BR2_PACKAGE_ZLIB),y)
34 WGET_CONF_OPTS += --with-zlib
35 WGET_DEPENDENCIES += zlib
36 else
37 WGET_CONF_OPTS += --without-zlib
38 endif
39
40 $(eval $(autotools-package))