Makefile 1.1 KB

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