2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@GNU
/$(PKG_NAME
)
17 PKG_MD5SUM
:=795fefbb7099f93e2d346b026785c4b8
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/wget
/Default
24 TITLE
:=Non-interactive network downloader
25 URL
:=http
://www.gnu.org
/software
/wget
/index.html
28 define Package
/wget
/Default
/description
29 Wget is a network utility to retrieve files from the Web
30 using http and ftp
, the two most widely used Internet
31 protocols. It works non-interactively
, so it will work in
32 the background
, after having logged off. The program supports
33 recursive retrieval of web-authoring pages
as well
as ftp
34 sites
-- you can use wget to make mirrors of archives and
35 home pages or to travel the Web like a WWW robot.
39 $(call Package
/wget
/Default
)
41 TITLE
+= (with SSL support
)
44 define Package
/wget
/description
45 $(call Package
/wget
/Default
/description
)
46 This package is built with SSL support.
49 define Package
/wget-nossl
50 $(call Package
/wget
/Default
)
51 TITLE
+= (without SSL support
)
54 define Package
/wget-nossl
/description
55 $(call Package
/wget
/Default
/description
)
56 This package is built without SSL support.
62 $(STAMP_BUILT
)-$(2): $(STAMP_PREPARED
)
63 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
64 $(call Build
/Configure
/Default
,$(3))
65 $(MAKE
) -C
$(PKG_BUILD_DIR
)
66 ( cd
$(PKG_BUILD_DIR
)/src
; mv
-f wget wget-
$(2) )
69 $(STAMP_BUILT
): $(STAMP_BUILT
)-$(2)
71 define Package
/$(1)/install
72 $(INSTALL_DIR
) $$(1)/usr
/bin
73 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/wget-
$(2) $$(1)/usr
/bin
/wget
76 # FIXME: check if busybox really provides a wget applet
77 define Package
/wget
/postrm
79 ln
-sf ..
/..
/bin
/busybox
$${IPKG_INSTROOT}/usr
/bin
/wget
87 ifneq ($(SDK
)$(CONFIG_PACKAGE_wget
),)
89 $(call Build
/Template
,wget
,with-ssl
, \
91 --with-libssl-prefix
="$(STAGING_DIR)/usr" \
95 $(eval
$(Build
/with-ssl
))
97 ifneq ($(SDK
)$(CONFIG_PACKAGE_wget-nossl
),)
98 define Build
/without-ssl
99 $(call Build
/Template
,wget-nossl
,without-ssl
, \
104 $(eval
$(Build
/without-ssl
))
106 $(eval
$(call BuildPackage
,wget
))
107 $(eval
$(call BuildPackage
,wget-nossl
))