1
0

Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (C) 2007-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=iperf
  9. PKG_VERSION:=2.0.9
  10. PKG_VERSION_SUFFIX:=a
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VERSION_SUFFIX).tar.gz
  13. # Temporary URL change - iperf upstream altered the already released target
  14. # without bumping the version number. The new tarball is renamed to avoid
  15. # conflicts with existing mirrored files.
  16. # PKG_SOURCE_URL:=@SF/iperf2
  17. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
  18. PKG_HASH:=db02911f35686e808ed247160dfa766e08ae3f59d1e7dcedef0ffb2a6643f0bf
  19. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  20. PKG_LICENSE:=BSD-3-Clause
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/uclibc++.mk
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/iperf
  25. SECTION:=net
  26. CATEGORY:=Network
  27. DEPENDS:= $(CXX_DEPENDS) +libpthread
  28. TITLE:=Internet Protocol bandwidth measuring tool
  29. URL:=http://sourceforge.net/projects/iperf2/
  30. endef
  31. define Package/iperf/description
  32. Iperf is a modern alternative for measuring TCP and UDP bandwidth
  33. performance, allowing the tuning of various parameters and
  34. characteristics.
  35. endef
  36. TARGET_CFLAGS += -D_GNU_SOURCE
  37. CONFIGURE_ARGS += --disable-multicast
  38. CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
  39. CONFIGURE_VARS += LIBS="-lpthread -lm"
  40. define Package/iperf/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iperf $(1)/usr/bin/iperf
  43. endef
  44. $(eval $(call BuildPackage,iperf))