1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=bb658aba58a5af0356f5b1342dfe8f53
8 PKG_SOURCE_URL
:=http
://dast.nlanr.net
/Projects
/Iperf2.0
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
14 include $(TOPDIR
)/package
/rules.mk
16 $(eval
$(call PKG_template
,IPERF
,iperf
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
18 $(PKG_BUILD_DIR
)/.configured
:
19 (cd
$(PKG_BUILD_DIR
); \
20 $(TARGET_CONFIGURE_OPTS
) \
21 CFLAGS
="$(TARGET_CFLAGS)" \
22 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
23 CXXFLAGS
="$(TARGET_CFLAGS) -fno-builtin -nostdinc++ -nodefaultlibs" \
24 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 LIBS
="-luClibc++ -lc -lm -lgcc_s" \
26 ac_cv_func_malloc_0_nonnull
=yes \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --datadir=/usr
/share \
37 --includedir=/usr
/include \
38 --infodir=/usr
/share
/info \
40 --libexecdir
=/usr
/lib \
41 --localstatedir
=/var \
42 --mandir=/usr
/share
/man \
45 $(DISABLE_LARGEFILE
) \
55 $(PKG_BUILD_DIR
)/.built
:
56 rm -rf
$(PKG_INSTALL_DIR
)
57 mkdir
-p
$(PKG_INSTALL_DIR
)
58 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
59 DESTDIR
="$(PKG_INSTALL_DIR)" install
63 install -d
-m0755
$(IDIR_IPERF
)/usr
/bin
64 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/iperf
$(IDIR_IPERF
)/usr
/bin
65 $(RSTRIP
) $(IDIR_IPERF
)
66 $(IPKG_BUILD
) $(IDIR_IPERF
) $(PACKAGE_DIR
)
69 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
70 rm -f
$(PKG_BUILD_DIR
)/.built