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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@GNU
/$(PKG_NAME
)
17 PKG_MD5SUM
:=f5076a8c2ec2b7f334cb6e3059820f9c
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 using http
30 and ftp
, the two most widely used Internet protocols. It works
31 non-interactively
, so it will work in the background
, after having
32 logged off. The program supports recursive retrieval of web-authoring
33 pages
as well
as ftp sites
-- you can use wget to make mirrors of
34 archives and home pages or to travel the Web like a WWW robot.
38 $(call Package
/wget
/Default
)
40 TITLE
+= (with SSL support
)
43 define Package
/wget
/description
44 $(call Package
/wget
/Default
/description
)
45 This package is built with SSL support.
48 define Package
/wget-nossl
49 $(call Package
/wget
/Default
)
50 TITLE
+= (without SSL support
)
53 define Package
/wget-nossl
/description
54 $(call Package
/wget
/Default
/description
)
55 This package is built without SSL support.
61 $(STAMP_BUILT
)-$(2): $(STAMP_PREPARED
)
62 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
63 $(call Build
/Configure
/Default
,$(3))
64 $(MAKE
) -C
$(PKG_BUILD_DIR
)
65 ( cd
$(PKG_BUILD_DIR
)/src
; mv
-f wget wget-
$(2) )
68 $(STAMP_BUILT
): $(STAMP_BUILT
)-$(2)
70 define Package
/$(1)/install
71 $(INSTALL_DIR
) $$(1)/usr
/bin
72 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/wget-
$(2) $$(1)/usr
/bin
/wget
75 # FIXME: check if busybox really provides a wget applet
76 define Package
/wget
/postrm
78 ln
-sf ..
/..
/bin
/busybox
$${IPKG_INSTROOT}/usr
/bin
/wget
86 ifneq ($(SDK
)$(CONFIG_PACKAGE_wget
),)
88 $(call Build
/Template
,wget
,with-ssl
, \
90 --with-libssl-prefix
="$(STAGING_DIR)/usr" \
94 $(eval
$(Build
/with-ssl
))
96 ifneq ($(SDK
)$(CONFIG_PACKAGE_wget-nossl
),)
97 define Build
/without-ssl
98 $(call Build
/Template
,wget-nossl
,without-ssl
, \
103 $(eval
$(Build
/without-ssl
))
105 $(eval
$(call BuildPackage
,wget
))
106 $(eval
$(call BuildPackage
,wget-nossl
))