1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 636b4eff0431cea80667ea85a67ce4c68698760a9837e1e9d13096d20362265b
10 PKG_DESCR
:= internet protocol bandwidth measuring tool
11 PKG_SECTION
:= net
/perf
12 PKG_DEPENDS
:= libpthread
13 PKG_URL
:= http
://sourceforge.net
/projects
/iperf
14 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=iperf
/}
17 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
19 include ${ADK_TOPDIR}/mk
/package.mk
21 $(eval
$(call PKG_template
,IPERF
,iperf
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 ifeq ($(ADK_COMPILE_IPERF_WITH_UCLIBCXX
),y
)
24 TARGET_CXXFLAGS
+= -fno-builtin
-fno-rtti
-nostdinc
++
25 TARGET_LDFLAGS
+= -nodefaultlibs
26 CONFIGURE_ENV
+= LIBS
="-luClibc++ -lc -lm -lpthread"
28 CONFIGURE_ENV
+= LIBS
="-lc -lm -lpthread"
30 CONFIGURE_ENV
+= ac_cv_func_malloc_0_nonnull
=yes
33 ${INSTALL_DIR} ${IDIR_IPERF}/usr
/bin
34 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/iperf
${IDIR_IPERF}/usr
/bin
36 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk