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
:=5726bb8bc5ca0f6dc7110f6416e4bb7019e2d2ff5bf93d1ca2ffcc6656f220e5
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:gnu
:wget
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/wget
/Default
32 DEPENDS
:=+libpcre
+zlib
33 SUBMENU
:=File Transfer
34 TITLE
:=Non-interactive network downloader
35 URL
:=https
://www.gnu.org
/software
/wget
/index.html
36 PROVIDES
:=gnu-wget wget
39 define Package
/wget
/Default
/description
40 Wget is a network utility to retrieve files from the Web using http
41 and ftp
, the two most widely used Internet protocols. It works
42 non-interactively
, so it will work in the background
, after having
43 logged off. The program supports recursive retrieval of web-authoring
44 pages
as well
as ftp sites
-- you can use wget to make mirrors of
45 archives and home pages or to travel the Web like a WWW robot.
48 define Package
/wget-ssl
49 $(call Package
/wget
/Default
)
50 DEPENDS
+= +libopenssl
+librt
51 TITLE
+= (with SSL support
)
53 ALTERNATIVES
:=300:/usr
/bin
/wget
:/usr
/libexec
/wget-ssl
56 define Package
/wget-ssl
/description
57 $(call Package
/wget
/Default
/description
)
58 This package is built with SSL support.
61 define Package
/wget-nossl
62 $(call Package
/wget
/Default
)
63 TITLE
+= (without SSL support
)
65 ALTERNATIVES
:=300:/usr
/bin
/wget
:/usr
/libexec
/wget-nossl
68 define Package
/wget-nossl
/description
69 $(call Package
/wget
/Default
/description
)
70 This package is built without SSL support.
77 --with-included-libunistring \
82 ac_cv_header_uuid_uuid_h
=no
84 ifeq ($(BUILD_VARIANT
),ssl
)
87 --with-libssl-prefix
="$(STAGING_DIR)/usr"
93 ifeq ($(BUILD_VARIANT
),nossl
)
99 define Package
/wget-ssl
/install
100 $(INSTALL_DIR
) $(1)/usr
/libexec
101 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/wget
$(1)/usr
/libexec
/wget-ssl
104 define Package
/wget-nossl
/install
105 $(INSTALL_DIR
) $(1)/usr
/libexec
106 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/wget
$(1)/usr
/libexec
/wget-nossl
109 $(eval
$(call BuildPackage
,wget-ssl
))
110 $(eval
$(call BuildPackage
,wget-nossl
))