mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/wget2: new package
Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
09ea72e44c
commit
c912c6b4a5
@@ -533,6 +533,7 @@ F: package/unixodbc/
|
|||||||
F: package/utfcpp/
|
F: package/utfcpp/
|
||||||
F: package/vlc/
|
F: package/vlc/
|
||||||
F: package/wget/
|
F: package/wget/
|
||||||
|
F: package/wget2/
|
||||||
F: package/wireless-regdb/
|
F: package/wireless-regdb/
|
||||||
F: package/wireless_tools/
|
F: package/wireless_tools/
|
||||||
F: package/x264/
|
F: package/x264/
|
||||||
|
|||||||
@@ -2665,6 +2665,7 @@ endif
|
|||||||
source "package/vtun/Config.in"
|
source "package/vtun/Config.in"
|
||||||
source "package/wavemon/Config.in"
|
source "package/wavemon/Config.in"
|
||||||
source "package/wget/Config.in"
|
source "package/wget/Config.in"
|
||||||
|
source "package/wget2/Config.in"
|
||||||
source "package/whois/Config.in"
|
source "package/whois/Config.in"
|
||||||
source "package/wireguard-linux-compat/Config.in"
|
source "package/wireguard-linux-compat/Config.in"
|
||||||
source "package/wireguard-tools/Config.in"
|
source "package/wireguard-tools/Config.in"
|
||||||
|
|||||||
15
package/wget2/Config.in
Normal file
15
package/wget2/Config.in
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
config BR2_PACKAGE_WGET2
|
||||||
|
bool "wget2"
|
||||||
|
depends on BR2_USE_MMU # fork()
|
||||||
|
depends on BR2_USE_WCHAR
|
||||||
|
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
|
||||||
|
select BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 if BR2_PACKAGE_LIBOPENSSL
|
||||||
|
help
|
||||||
|
GNU Wget2 is the successor of GNU Wget, a file and recursive
|
||||||
|
website downloader.
|
||||||
|
|
||||||
|
https://gitlab.com/gnuwget/wget2
|
||||||
|
|
||||||
|
comment "wget2 needs a toolchain w/ wchar"
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
depends on !BR2_USE_WCHAR
|
||||||
4
package/wget2/wget2.hash
Normal file
4
package/wget2/wget2.hash
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Locally calculated
|
||||||
|
sha256 d7544b13e37f18e601244fce5f5f40688ac1d6ab9541e0fbb01a32ee1fb447b4 wget2-2.2.1.tar.gz
|
||||||
|
sha256 e79e9c8a0c85d735ff98185918ec94ed7d175efc377012787aebcf3b80f0d90b COPYING
|
||||||
|
sha256 e3a994d82e644b03a792a930f574002658412f62407f5fee083f2555c5f23118 COPYING.LESSER
|
||||||
100
package/wget2/wget2.mk
Normal file
100
package/wget2/wget2.mk
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# wget2
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
WGET2_VERSION = 2.2.1
|
||||||
|
WGET2_SITE = $(BR2_GNU_MIRROR)/wget
|
||||||
|
WGET2_DEPENDENCIES = host-pkgconf
|
||||||
|
WGET2_LICENSE = GPL-3.0+, LGPL-3.0+
|
||||||
|
WGET2_LICENSE_FILES = COPYING COPYING.LESSER
|
||||||
|
WGET2_CPE_ID_VENDOR = gnu
|
||||||
|
|
||||||
|
WGET2_CONF_OPTS = \
|
||||||
|
--without-libhsts \
|
||||||
|
--without-libmicrohttpd \
|
||||||
|
--without-lzip
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
||||||
|
WGET2_CONF_OPTS += --with-brotlidec
|
||||||
|
WGET2_DEPENDENCIES += brotli
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-brotlidec
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
||||||
|
WGET2_CONF_OPTS += --with-bzip2
|
||||||
|
WGET2_DEPENDENCIES += bzip2
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-bzip2
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||||
|
WGET2_CONF_OPTS += --with-ssl=gnutls
|
||||||
|
WGET2_DEPENDENCIES += gnutls
|
||||||
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
|
WGET2_CONF_OPTS += --with-ssl=openssl
|
||||||
|
WGET2_DEPENDENCIES += openssl
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-ssl
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBGPGME),y)
|
||||||
|
WGET2_CONF_OPTS += --with-gpgme
|
||||||
|
WGET2_DEPENDENCIES += libgpgme
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-gpgme
|
||||||
|
endif
|
||||||
|
|
||||||
|
# BR2_ENABLE_LOCALE and BR2_PACKAGE_LIBICONV are mutually exclusive
|
||||||
|
ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV)$(BR2_PACKAGE_LIBIDN2),yy)
|
||||||
|
WGET2_CONF_OPTS += --with-libidn2
|
||||||
|
WGET2_DEPENDENCIES += libidn2
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-libidn2
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBPSL),y)
|
||||||
|
WGET2_CONF_OPTS += --with-libpsl
|
||||||
|
WGET2_DEPENDENCIES += libpsl
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-libpsl
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_NGHTTP2),y)
|
||||||
|
WGET2_CONF_OPTS += --with-libnghttp2
|
||||||
|
WGET2_DEPENDENCIES += nghttp2
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-libnghttp2
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_PCRE2),y)
|
||||||
|
WGET2_CONF_OPTS += --with-libpcre2
|
||||||
|
WGET2_DEPENDENCIES += pcre2
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-libpcre2
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
||||||
|
WGET2_CONF_OPTS += --with-lzma
|
||||||
|
WGET2_DEPENDENCIES += xz
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-lzma
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||||
|
WGET2_CONF_OPTS += --with-zlib
|
||||||
|
WGET2_DEPENDENCIES += zlib
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-zlib
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||||
|
WGET2_CONF_OPTS += --with-zstd
|
||||||
|
WGET2_DEPENDENCIES += zstd
|
||||||
|
else
|
||||||
|
WGET2_CONF_OPTS += --without-zstd
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(eval $(autotools-package))
|
||||||
Reference in New Issue
Block a user