add wget package (closes: #1277)
[openwrt/svn-archive/archive.git] / net / wget / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=wget
12 PKG_VERSION:=1.10.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
17 PKG_MD5SUM:=795fefbb7099f93e2d346b026785c4b8
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/wget
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libopenssl
28 TITLE:=Non-interactive network downloader
29 DESCRIPTION:=\
30 Wget is a network utility to retrieve files from the Web \\\
31 using http and ftp, the two most widely used Internet \\\
32 protocols. It works non-interactively, so it will work in \\\
33 the background, after having logged off. The program supports \\\
34 recursive retrieval of web-authoring pages as well as ftp \\\
35 sites -- you can use wget to make mirrors of archives and \\\
36 home pages or to travel the Web like a WWW robot.
37 URL:=http://www.gnu.org/software/wget/index.html
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 --disable-rpath \
43 --with-ssl \
44 --with-libssl-prefix="$(STAGING_DIR)/usr" \
45 )
46 endef
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR)
50 endef
51
52 define Package/wget/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/
55 endef
56
57 # FIXME: check if busybox really provides a wget applet
58 define Package/wget/postrm
59 !/bin/sh
60 ln -sf ../../bin/busybox $${IPKG_INSTROOT}/usr/bin/wget
61 endef
62
63 $(eval $(call BuildPackage,wget))