fix typo in firstboot - /etc/config/* is now a file instead of a symlink
[openwrt.git] / openwrt / package / mtr / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=mtr
6 PKG_VERSION:=0.69
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=58904d6d8d70114195cdeb653d56914c
9
10 PKG_SOURCE_URL:=ftp://ftp.bitwizard.nl/mtr/
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,MTR,mtr,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
22 touch configure.in; \
23 touch aclocal.m4; \
24 touch Makefile.in; \
25 touch img/Makefile.in; \
26 touch stamp-h.in; \
27 touch config.h.in; \
28 touch configure; \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS)" \
31 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
32 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
33 ac_cv_lib_resolv_res_mkquery=yes \
34 ./configure \
35 --target=$(GNU_TARGET_NAME) \
36 --host=$(GNU_TARGET_NAME) \
37 --build=$(GNU_HOST_NAME) \
38 --program-prefix="" \
39 --program-suffix="" \
40 --prefix=/usr \
41 --exec-prefix=/usr \
42 --bindir=/usr/bin \
43 --datadir=/usr/share \
44 --includedir=/usr/include \
45 --infodir=/usr/share/info \
46 --libdir=/usr/lib \
47 --libexecdir=/usr/lib \
48 --localstatedir=/var \
49 --mandir=/usr/share/man \
50 --sbindir=/usr/sbin \
51 --sysconfdir=/etc \
52 $(DISABLE_LARGEFILE) \
53 $(DISABLE_NLS) \
54 --without-gtk \
55 );
56 touch $@
57
58 $(PKG_BUILD_DIR)/.built:
59 rm -rf $(PKG_INSTALL_DIR)
60 mkdir -p $(PKG_INSTALL_DIR)
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 CFLAGS="$(TARGET_CFLAGS)" \
64 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
65 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
66 all install
67 touch $@
68
69 $(IPKG_MTR):
70 install -d -m0755 $(IDIR_MTR)/usr/sbin
71 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(IDIR_MTR)/usr/sbin/
72 $(RSTRIP) $(IDIR_MTR)
73 $(IPKG_BUILD) $(IDIR_MTR) $(PACKAGE_DIR)
74
75 mostlyclean:
76 -$(MAKE) -C $(PKG_BUILD_DIR) clean
77 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.053092 seconds and 5 git commands to generate.