3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=58904d6d8d70114195cdeb653d56914c
10 PKG_SOURCE_URL
:=ftp
://ftp.bitwizard.nl
/mtr
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,MTR
,mtr
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
:
21 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
25 touch img
/Makefile.in
; \
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 \
35 --target
=$(GNU_TARGET_NAME
) \
36 --host
=$(GNU_TARGET_NAME
) \
37 --build
=$(GNU_HOST_NAME
) \
43 --datadir=/usr
/share \
44 --includedir=/usr
/include \
45 --infodir=/usr
/share
/info \
47 --libexecdir
=/usr
/lib \
48 --localstatedir
=/var \
49 --mandir=/usr
/share
/man \
52 $(DISABLE_LARGEFILE
) \
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" \
70 install -d
-m0755
$(IDIR_MTR
)/usr
/sbin
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/mtr
$(IDIR_MTR
)/usr
/sbin
/
73 $(IPKG_BUILD
) $(IDIR_MTR
) $(PACKAGE_DIR
)
76 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
77 rm -f
$(PKG_BUILD_DIR
)/.built