use Build/Configure/Default macro, Makefile cleanup
[openwrt/svn-archive/archive.git] / net / wput / 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:=wput
12 PKG_VERSION:=0.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=@SF/wput
17 PKG_MD5SUM:=441b2e07219f78167b29a7ac33488fff
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/wput
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=A wget-like command-line FTP client
28 URL:=http://itooktheredpill.dyndns.org/wput/
29 endef
30
31 define Build/Configure
32 $(call Build/Configure/Default, \
33 --disable-g-switch \
34 )
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR)
39 endef
40
41 define Package/wput/install
42 install -d -m0755 $(1)/usr/bin
43 install -m0755 $(PKG_BUILD_DIR)/wput $(1)/usr/bin/
44 endef
45
46 $(eval $(call BuildPackage,wput))