fix a dependency bug introduced by [2333]
[openwrt.git] / package / iperf / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=iperf
4 PKG_VERSION:=2.0.2
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=bb658aba58a5af0356f5b1342dfe8f53
7
8 PKG_SOURCE_URL:=http://dast.nlanr.net/Projects/Iperf2.0
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_CAT:=zcat
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,IPERF,iperf,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
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 -fno-rtti -nostdinc++" \
24 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
25 LIBS="-luClibc++ -lc -lm -lgcc_s" \
26 ac_cv_func_malloc_0_nonnull=yes \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
45 $(DISABLE_LARGEFILE) \
46 $(DISABLE_NLS) \
47 --enable-shared \
48 --disable-static \
49 --disable-rpath \
50 --disable-multicast \
51 --disable-threads \
52 );
53 touch $@
54
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
60 touch $@
61
62 $(IPKG_IPERF):
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)
67
68 mostlyclean:
69 -$(MAKE) -C $(PKG_BUILD_DIR) clean
70 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.048096 seconds and 5 git commands to generate.