Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= iperf
  5. PKG_VERSION:= 2.0.4
  6. PKG_RELEASE:= 1
  7. PKG_CXX:= IPERF
  8. PKG_MD5SUM:= 8c5bc14cc2ea55f18f22afe3c23e3dcb
  9. PKG_DESCR:= Internet Protocol bandwidth measuring tool
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= libpthread
  12. PKG_URL:= http://sourceforge.net/projects/iperf
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=iperf/}
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,IPERF,iperf,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_STYLE= gnu
  17. BUILD_STYLE= auto
  18. INSTALL_STYLE= auto
  19. ifeq ($(ADK_COMPILE_IPERF_WITH_UCLIBCXX),y)
  20. TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
  21. TLDFLAGS+= -nodefaultlibs
  22. CONFIGURE_ENV+= LIBS="-luClibc++ -lc -lm -lgcc_s -lpthread"
  23. else
  24. CONFIGURE_ENV+= LIBS="-lc -lm -lgcc_s -lpthread"
  25. endif
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_IPERF}/usr/bin
  28. ${INSTALL_BIN} ${WRKINST}/usr/bin/iperf ${IDIR_IPERF}/usr/bin
  29. include ${TOPDIR}/mk/pkg-bottom.mk