override cflags set to -O2 by configure
[openwrt.git] / package / iftop / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=iftop
4 PKG_VERSION:=0.17pre3
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=6d80885e0ff642222c96bb7bd3e83f96
7
8 PKG_SOURCE_URL:=http://www.ex-parrot.com/~pdw/iftop/download
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_CAT:=zcat
11
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,IFTOP,iftop,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured:
20 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --bindir=/usr/bin \
42 --sysconfdir=/etc \
43 $(DISABLE_NLS) \
44 $(DISABLE_LARGEFILE) \
45 );
46 touch $@
47
48 $(PKG_BUILD_DIR)/.built:
49 rm -rf $(PKG_INSTALL_DIR)
50 mkdir -p $(PKG_INSTALL_DIR)
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 CC=$(TARGET_CC) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 install
55 touch $@
56
57 $(IPKG_IFTOP):
58 install -d -m0755 $(IDIR_IFTOP)/usr/bin
59 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/$(PKG_NAME) $(IDIR_IFTOP)/usr/bin/
60 $(STRIP) $(IDIR_IFTOP)/usr/bin/*
61 $(IPKG_BUILD) $(IDIR_IFTOP) $(PACKAGE_DIR)
62
63 mostlyclean:
64 $(MAKE) -C $(PKG_BUILD_DIR) clean
65 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.041823 seconds and 5 git commands to generate.