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
:=b783b390cb571c837b392857945f5a1f00ec6b043177cc42abb8ee1b542ee1b3
17 PKG_MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
19 PKG_LICENSE_FILES
:=COPYING
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/wget
/Default
28 DEPENDS
:=+libpcre
+zlib
29 SUBMENU
:=File Transfer
30 TITLE
:=Non-interactive network downloader
31 URL
:=https
://www.gnu.org
/software
/wget
/index.html
34 define Package
/wget
/Default
/description
35 Wget is a network utility to retrieve files from the Web using http
36 and ftp
, the two most widely used Internet protocols. It works
37 non-interactively
, so it will work in the background
, after having
38 logged off. The program supports recursive retrieval of web-authoring
39 pages
as well
as ftp sites
-- you can use wget to make mirrors of
40 archives and home pages or to travel the Web like a WWW robot.
44 $(call Package
/wget
/Default
)
45 DEPENDS
+= +libopenssl
+librt
46 TITLE
+= (with SSL support
)
50 define Package
/wget
/description
51 $(call Package
/wget
/Default
/description
)
52 This package is built with SSL support.
55 define Package
/wget-nossl
56 $(call Package
/wget
/Default
)
57 TITLE
+= (without SSL support
)
61 define Package
/wget-nossl
/description
62 $(call Package
/wget
/Default
/description
)
63 This package is built without SSL support.
70 --with-included-libunistring \
75 ac_cv_header_uuid_uuid_h
=no
77 ifeq ($(BUILD_VARIANT
),ssl
)
80 --with-libssl-prefix
="$(STAGING_DIR)/usr"
83 ifeq ($(BUILD_VARIANT
),nossl
)
89 define Package
/wget
/install
90 $(INSTALL_DIR
) $(1)/usr
/bin
91 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/wget
$(1)/usr
/bin
/wget-ssl
92 ln
-sf wget-ssl
$(1)/usr
/bin
/wget
95 define Package
/wget-nossl
/install
96 $(INSTALL_DIR
) $(1)/usr
/bin
97 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/wget
$(1)/usr
/bin
/wget-nossl
98 ln
-sf wget-nossl
$(1)/usr
/bin
/wget
101 $(eval
$(call BuildPackage
,wget
))
102 $(eval
$(call BuildPackage
,wget-nossl
))