3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=bb658aba58a5af0356f5b1342dfe8f53
10 PKG_SOURCE_URL
:=http
://dast.nlanr.net
/Projects
/Iperf2.0
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,IPERF
,iperf
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
:
21 (cd
$(PKG_BUILD_DIR
); \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25 CXXFLAGS
="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
26 LDFLAGS
="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 LIBS
="-luClibc++ -lc -lm -lgcc_s" \
28 ac_cv_func_malloc_0_nonnull
=yes \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
57 $(PKG_BUILD_DIR
)/.built
:
58 rm -rf
$(PKG_INSTALL_DIR
)
59 mkdir
-p
$(PKG_INSTALL_DIR
)
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 DESTDIR
="$(PKG_INSTALL_DIR)" install
65 install -d
-m0755
$(IDIR_IPERF
)/usr
/bin
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/iperf
$(IDIR_IPERF
)/usr
/bin
67 $(RSTRIP
) $(IDIR_IPERF
)
68 $(IPKG_BUILD
) $(IDIR_IPERF
) $(PACKAGE_DIR
)
71 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
72 rm -f
$(PKG_BUILD_DIR
)/.built