Port quagga to -ng
[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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_SOURCE_URL:=@SF/wput
18 PKG_MD5SUM:=441b2e07219f78167b29a7ac33488fff
19 PKG_CAT:=zcat
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/wput
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=A wget-like command-line FTP client
27 DESCRIPTION:=A wget-like command-line FTP client.
28 URL:=http://itooktheredpill.dyndns.org/wput/
29 endef
30
31 define Build/Configure
32 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
33 $(TARGET_CONFIGURE_OPTS) \
34 CFLAGS="$(TARGET_CFLAGS)" \
35 ./configure \
36 --target=$(GNU_TARGET_NAME) \
37 --host=$(GNU_TARGET_NAME) \
38 --build=$(GNU_HOST_NAME) \
39 --program-prefix="" \
40 --program-suffix="" \
41 --prefix=/usr \
42 --exec-prefix=/usr \
43 --bindir=/usr/bin \
44 --datadir=/usr/share \
45 --includedir=/usr/include \
46 --infodir=/usr/share/info \
47 --libdir=/usr/lib \
48 --libexecdir=/usr/lib \
49 --localstatedir=/var \
50 --mandir=/usr/share/man \
51 --sbindir=/usr/sbin \
52 --sysconfdir=/etc \
53 $(DISABLE_LARGEFILE) \
54 $(DISABLE_NLS) \
55 --enable-shared \
56 --disable-static \
57 --disable-g-switch \
58 )
59 endef
60
61 define Build/Compile
62 $(MAKE) -C $(PKG_BUILD_DIR)
63 endef
64
65 define Package/wput/install
66 install -d -m0755 $(1)/usr/bin
67 install -m0755 $(PKG_BUILD_DIR)/wput $(1)/usr/bin/
68 endef
69
70 $(eval $(call BuildPackage,wput))