1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=062bc8fb3856580319857326e0b8752d
8 PKG_SOURCE_URL
:=http
://www.ex-parrot.com
/~pdw
/iftop
/download
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
13 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,IFTOP
,iftop
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
26 --target
=$(GNU_TARGET_NAME
) \
27 --host
=$(GNU_TARGET_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
34 --datadir=/usr
/share \
35 --includedir=/usr
/include \
36 --infodir=/usr
/share
/info \
38 --libexecdir
=/usr
/lib \
39 --localstatedir
=/var \
40 --mandir=/usr
/share
/man \
44 $(DISABLE_LARGEFILE
) \
48 $(PKG_BUILD_DIR
)/.built
:
49 rm -rf
$(PKG_INSTALL_DIR
)
50 mkdir
-p
$(PKG_INSTALL_DIR
)
51 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
)
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
65 rm -f
$(PKG_BUILD_DIR
)/.built