massive Makefile cleanup, add missing 'svn:keywords' property
[openwrt/svn-archive/archive.git] / net / iperf / 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:=iperf
12 PKG_VERSION:=2.0.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://dast.nlanr.net/Projects/Iperf2.0
17 PKG_MD5SUM:=bb658aba58a5af0356f5b1342dfe8f53
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/iperf
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+uclibcxx
29 TITLE:=Internet Protocol bandwidth measuring tool
30 DESCRIPTION:=\
31 Iperf is a modern alternative for measuring TCP and UDP bandwidth \\\
32 performance, allowing the tuning of various parameters and \\\
33 characteristics.
34 URL:=http://dast.nlanr.net/Projects/Iperf/
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --disable-multicast \
40 --disable-threads \
41 , \
42 CXXFLAGS="$$$$CXX_CFLAGS -fno-builtin -fno-rtti -nostdinc++" \
43 LIBS="-nodefaultlibs -luClibc++ -lc -lm -lgcc_s" \
44 )
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/iperf/install
54 install -d -m0755 $(1)/usr/bin
55 $(CP) $(PKG_INSTALL_DIR)/usr/bin/iperf $(1)/usr/bin
56 endef
57
58 $(eval $(call BuildPackage,iperf))