Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= iperf
  7. PKG_VERSION:= 2.0.4
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 8c5bc14cc2ea55f18f22afe3c23e3dcb
  10. PKG_DESCR:= Internet Protocol bandwidth measuring tool
  11. PKG_SECTION:= net
  12. PKG_DEPENDS:= libpthread
  13. PKG_URL:= http://sourceforge.net/projects/iperf
  14. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=iperf/}
  15. include ${TOPDIR}/mk/package.mk
  16. ifeq ($(ADK_COMPILE_IPERF_WITH_UCLIBCXX),y)
  17. PKG_DEPENDS+= uclibc++
  18. else
  19. PKG_DEPENDS+= libstdcxx
  20. endif
  21. $(eval $(call PKG_template,IPERF,iperf,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. CONFIGURE_STYLE= gnu
  23. BUILD_STYLE= auto
  24. INSTALL_STYLE= auto
  25. ifeq ($(ADK_COMPILE_IPERF_WITH_UCLIBCXX),y)
  26. TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
  27. TLDFLAGS+= -nodefaultlibs
  28. CONFIGURE_ENV+= LIBS="-luClibc++ -lc -lm -lgcc_s -lpthread"
  29. else
  30. CONFIGURE_ENV+= LIBS="-lc -lm -lgcc_s -lpthread"
  31. endif
  32. post-install:
  33. ${INSTALL_DIR} ${IDIR_IPERF}/usr/bin
  34. ${INSTALL_BIN} ${WRKINST}/usr/bin/iperf ${IDIR_IPERF}/usr/bin
  35. include ${TOPDIR}/mk/pkg-bottom.mk