2 # Copyright (C) 2007-2008 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.bz2
15 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
16 PKG_MD5SUM:=f5076a8c2ec2b7f334cb6e3059820f9c
18 include $(INCLUDE_DIR)/package.mk
20 define Package/wget/Default
23 TITLE:=Non-interactive network downloader
24 URL:=http://www.gnu.org/software/wget/index.html
27 define Package/wget/Default/description
28 Wget is a network utility to retrieve files from the Web using http
29 and ftp, the two most widely used Internet protocols. It works
30 non-interactively, so it will work in the background, after having
31 logged off. The program supports recursive retrieval of web-authoring
32 pages as well as ftp sites -- you can use wget to make mirrors of
33 archives and home pages or to travel the Web like a WWW robot.
37 $(call Package/wget/Default)
39 TITLE+= (with SSL support)
42 define Package/wget/description
43 $(call Package/wget/Default/description)
44 This package is built with SSL support.
47 define Package/wget-nossl
48 $(call Package/wget/Default)
49 TITLE+= (without SSL support)
52 define Package/wget-nossl/description
53 $(call Package/wget/Default/description)
54 This package is built without SSL support.
60 $(STAMP_BUILT)-$(2): $(STAMP_PREPARED)
61 -$(MAKE) -C $(PKG_BUILD_DIR) clean
62 $(call Build/Configure/Default,$(3))
63 $(MAKE) -C $(PKG_BUILD_DIR)
64 ( cd $(PKG_BUILD_DIR)/src; mv -f wget wget-$(2) )
67 $(STAMP_BUILT): $(STAMP_BUILT)-$(2)
69 define Package/$(1)/install
70 $(INSTALL_DIR) $$(1)/usr/bin
71 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget-$(2) $$(1)/usr/bin/wget
74 # FIXME: check if busybox really provides a wget applet
75 define Package/wget/postrm
77 ln -sf ../../bin/busybox $${IPKG_INSTROOT}/usr/bin/wget
85 ifneq ($(SDK)$(CONFIG_PACKAGE_wget),)
87 $(call Build/Template,wget,with-ssl, \
89 --with-libssl-prefix="$(STAGING_DIR)/usr" \
93 $(eval $(Build/with-ssl))
95 ifneq ($(SDK)$(CONFIG_PACKAGE_wget-nossl),)
96 define Build/without-ssl
97 $(call Build/Template,wget-nossl,without-ssl, \
102 $(eval $(Build/without-ssl))
104 $(eval $(call BuildPackage,wget))
105 $(eval $(call BuildPackage,wget-nossl))