fix a dependency bug introduced by [2333]
[openwrt.git] / package / fping / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=fping
6 PKG_VERSION:=2.4b2_to-ipv6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=3ad516765514249a40d3c5b6caab812a
9
10 PKG_SOURCE_URL:=http://www.fping.com/download/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,FPING,$(PKG_NAME),$(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 ./configure \
24 --target=$(GNU_TARGET_NAME) \
25 --host=$(GNU_TARGET_NAME) \
26 --build=$(GNU_HOST_NAME) \
27 --prefix=/usr \
28 --exec-prefix=/usr \
29 --bindir=/usr/bin \
30 --sbindir=/usr/sbin \
31 --libexecdir=/usr/lib \
32 --sysconfdir=/etc \
33 --datadir=/usr/share \
34 --localstatedir=/var \
35 --mandir=/usr/man \
36 --infodir=/usr/info \
37 $(DISABLE_NLS) \
38 $(DISABLE_LARGEFILE) \
39 );
40 touch $@
41
42 $(PKG_BUILD_DIR)/.built:
43 $(MAKE) -j1 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) clean $(PKG_NAME)
44 mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)4
45 $(MAKE) -j1 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -DIPV6=1" -C $(PKG_BUILD_DIR) clean $(PKG_NAME)
46 mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)6
47 touch $@
48
49 $(IPKG_FPING):
50 mkdir -p $(IDIR_FPING)/usr/bin
51 cp $(PKG_BUILD_DIR)/$(PKG_NAME)4 $(IDIR_FPING)/usr/bin/$(PKG_NAME)
52 cp $(PKG_BUILD_DIR)/$(PKG_NAME)6 $(IDIR_FPING)/usr/bin/
53 $(STRIP) $(IDIR_FPING)/usr/bin/*
54 $(IPKG_BUILD) $(IDIR_FPING) $(PACKAGE_DIR)
55
This page took 0.058571 seconds and 5 git commands to generate.