Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= iperf
  5. PKG_VERSION:= 2.0.4
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 3b52f1c178d6a99c27114929d5469c009197d15379c967b329bafb956f397944
  8. PKG_DESCR:= internet protocol bandwidth measuring tool
  9. PKG_SECTION:= net/perf
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://sourceforge.net/projects/iperf
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=iperf/}
  13. PKG_CXX:= IPERF
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,IPERF,iperf,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. ifeq ($(ADK_COMPILE_IPERF_WITH_UCLIBCXX),y)
  18. TARGET_CXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
  19. TARGET_LDFLAGS+= -nodefaultlibs
  20. CONFIGURE_ENV+= LIBS="-luClibc++ -lc -lm -lpthread"
  21. else
  22. CONFIGURE_ENV+= LIBS="-lc -lm -lpthread"
  23. endif
  24. iperf-install:
  25. ${INSTALL_DIR} ${IDIR_IPERF}/usr/bin
  26. ${INSTALL_BIN} ${WRKINST}/usr/bin/iperf ${IDIR_IPERF}/usr/bin
  27. include ${ADK_TOPDIR}/mk/pkg-bottom.mk