enable cgi & python at configure time, use new python packaging, cleanup
[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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/iperf
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+uclibcxx
25 TITLE:=Internet Protocol bandwidth measuring tool
26 URL:=http://dast.nlanr.net/Projects/Iperf/
27 endef
28
29 define Package/iperf/description
30 Iperf is a modern alternative for measuring TCP and UDP bandwidth
31 performance, allowing the tuning of various parameters and
32 characteristics.
33 endef
34
35 CONFIGURE_ARGS += \
36 --disable-multicast \
37 --disable-threads \
38
39 CONFIGURE_VARS += \
40 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
41 CXXFLAGS="$$$$CXX_CFLAGS -fno-builtin -fno-rtti -nostdinc++" \
42 LIBS="-nodefaultlibs -luClibc++ -lgcc" \
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Package/iperf/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(CP) $(PKG_INSTALL_DIR)/usr/bin/iperf $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,iperf))