use upstream download source, not debian
[openwrt.git] / openwrt / package / mtr / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=mtr
4 PKG_VERSION:=0.69
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=58904d6d8d70114195cdeb653d56914c
7
8 PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr/
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,MTR,mtr,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
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 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
24 ac_cv_lib_resolv_res_mkquery=yes \
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 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_LARGEFILE) \
44 $(DISABLE_NLS) \
45 --without-gtk \
46 );
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 rm -rf $(PKG_INSTALL_DIR)
51 mkdir -p $(PKG_INSTALL_DIR)
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 CFLAGS="$(TARGET_CFLAGS)" \
55 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
56 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
57 all install
58 touch $@
59
60 $(IPKG_MTR):
61 install -d -m0755 $(IDIR_MTR)/usr/sbin
62 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/mtr $(IDIR_MTR)/usr/sbin/
63 $(RSTRIP) $(IDIR_MTR)
64 $(IPKG_BUILD) $(IDIR_MTR) $(PACKAGE_DIR)
65
66 mostlyclean:
67 -$(MAKE) -C $(PKG_BUILD_DIR) clean
68 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.046309 seconds and 5 git commands to generate.