fix (cosmetic) Config.in glitches, add "svn:keywords" prop to Makefile.
[openwrt.git] / package / iperf / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=iperf
6 PKG_VERSION:=2.0.2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=bb658aba58a5af0356f5b1342dfe8f53
9
10 PKG_SOURCE_URL:=http://dast.nlanr.net/Projects/Iperf2.0
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,IPERF,iperf,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
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 \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --enable-shared \
50 --disable-static \
51 --disable-rpath \
52 --disable-multicast \
53 --disable-threads \
54 );
55 touch $@
56
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
62 touch $@
63
64 $(IPKG_IPERF):
65 install -d -m0755 $(IDIR_IPERF)/usr/bin
66 $(CP) $(PKG_INSTALL_DIR)/usr/bin/iperf $(IDIR_IPERF)/usr/bin
67 $(RSTRIP) $(IDIR_IPERF)
68 $(IPKG_BUILD) $(IDIR_IPERF) $(PACKAGE_DIR)
69
70 mostlyclean:
71 -$(MAKE) -C $(PKG_BUILD_DIR) clean
72 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.053487 seconds and 5 git commands to generate.