2 # Copyright (C) 2007-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@GNU
/$(PKG_NAME
)
16 PKG_HASH
:=81542f5cefb8faacc39bbbc6c82ded80e3e4a88505ae72ea51df27525bcde04c
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:gnu
:wget
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/wget
/Default
31 DEPENDS
:=+libpcre2
+zlib
32 SUBMENU
:=File Transfer
33 TITLE
:=Non-interactive network downloader
34 URL
:=https
://www.gnu.org
/software
/wget
/index.html
35 PROVIDES
:=gnu-wget wget
38 define Package
/wget
/Default
/description
39 Wget is a network utility to retrieve files from the Web using http
40 and ftp
, the two most widely used Internet protocols. It works
41 non-interactively
, so it will work in the background
, after having
42 logged off. The program supports recursive retrieval of web-authoring
43 pages
as well
as ftp sites
-- you can use wget to make mirrors of
44 archives and home pages or to travel the Web like a WWW robot.
47 define Package
/wget-ssl
48 $(call Package
/wget
/Default
)
49 DEPENDS
+= +libopenssl
+librt
50 TITLE
+= (with SSL support
)
52 ALTERNATIVES
:=300:/usr
/bin
/wget
:/usr
/libexec
/wget-ssl
55 define Package
/wget-ssl
/description
56 $(call Package
/wget
/Default
/description
)
57 This package is built with SSL support.
60 define Package
/wget-nossl
61 $(call Package
/wget
/Default
)
62 TITLE
+= (without SSL support
)
64 ALTERNATIVES
:=300:/usr
/bin
/wget
:/usr
/libexec
/wget-nossl
67 define Package
/wget-nossl
/description
68 $(call Package
/wget
/Default
/description
)
69 This package is built without SSL support.
75 --with-included-libunistring \
80 ac_cv_header_uuid_uuid_h
=no
82 ifeq ($(BUILD_VARIANT
),ssl
)
85 --with-libssl-prefix
="$(STAGING_DIR)/usr"
91 ifeq ($(BUILD_VARIANT
),nossl
)
97 define Package
/wget-ssl
/install
98 $(INSTALL_DIR
) $(1)/usr
/libexec
99 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/wget
$(1)/usr
/libexec
/wget-ssl
102 define Package
/wget-nossl
/install
103 $(INSTALL_DIR
) $(1)/usr
/libexec
104 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/wget
$(1)/usr
/libexec
/wget-nossl
107 $(eval
$(call BuildPackage
,wget-ssl
))
108 $(eval
$(call BuildPackage
,wget-nossl
))