pass ARCH down to uClibc
[buildroot.git] / package / mrouted / mrouted.mk
blobaef2f01bcaf2dd4ad99f54e6c0c5c9ed9a77a604
1 #############################################################
3 # mrouted
6 #############################################################
7 MROUTED_VERSION:=3.9-beta3.orig
8 MROUTED_SOURCE:=mrouted_$(MROUTED_VERSION).tar.gz
9 MROUTED_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/non-free/m/mrouted
10 MROUTED_DIR:=$(BUILD_DIR)/mrouted-$(MROUTED_VERSION)
11 MROUTED_CAT:=$(ZCAT)
12 MROUTED_PATCH:=mrouted_3.9-beta3-1.1.diff.gz
13 MROUTED_BINARY:=mrouted
14 MROUTED_TARGET_BINARY:=usr/sbin/mrouted
16 $(DL_DIR)/$(MROUTED_SOURCE):
17 $(WGET) -P $(DL_DIR) $(MROUTED_SITE)/$(MROUTED_SOURCE)
19 $(DL_DIR)/$(MROUTED_PATCH):
20 $(WGET) -P $(DL_DIR) $(MROUTED_SITE)/$(MROUTED_PATCH)
22 mrouted-source: $(DL_DIR)/$(MROUTED_SOURCE) $(DL_DIR)/$(MROUTED_PATCH)
24 $(MROUTED_DIR)/.unpacked: $(DL_DIR)/$(MROUTED_SOURCE) $(DL_DIR)/$(MROUTED_PATCH)
25 $(MROUTED_CAT) $(DL_DIR)/$(MROUTED_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
26 $(MROUTED_CAT) $(DL_DIR)/$(MROUTED_PATCH) | patch -p1 -d $(MROUTED_DIR)
27 toolchain/patch-kernel.sh $(MROUTED_DIR) package/mrouted/ mrouted\*.patch
28 touch $(MROUTED_DIR)/.unpacked
30 $(MROUTED_DIR)/$(MROUTED_BINARY): $(MROUTED_DIR)/.unpacked
31 $(TARGET_CONFIGURE_OPTS) \
32 $(MAKE) CC=$(TARGET_CC) -C $(MROUTED_DIR)
34 $(TARGET_DIR)/$(MROUTED_TARGET_BINARY): $(MROUTED_DIR)/$(MROUTED_BINARY)
35 cp -a $(MROUTED_DIR)/$(MROUTED_BINARY) $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
37 mrouted: $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
39 mrouted-clean:
40 rm -f $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
41 -$(MAKE) -C $(MROUTED_DIR) clean
43 mrouted-dirclean:
44 rm -rf $(MROUTED_DIR)
46 #############################################################
48 # Toplevel Makefile options
50 #############################################################
51 ifeq ($(BR2_PACKAGE_MROUTED),y)
52 TARGETS+=mrouted
53 endif