patched uClibc.config gentoo bug #69785
[openwrt.git] / obsolete-buildroot / make / mrouted.mk
1 #############################################################
2 #
3 # mrouted
4 #
5 #
6 #############################################################
7 MROUTED_SOURCE:=mrouted_3.9-beta3.orig.tar.gz
8 MROUTED_SITE:=http://ftp.debian.org/debian/pool/non-free/m/mrouted
9 MROUTED_DIR:=$(BUILD_DIR)/mrouted-3.9-beta3.orig
10 MROUTED_CAT:=zcat
11 #MROUTED_PATCH:=$(SOURCE_DIR)/mrouted_3.9-beta3-1.1.diff
12 MROUTED_PATCH:=mrouted_3.9-beta3-1.1.diff.gz
13 MROUTED_BINARY:=mrouted
14 MROUTED_TARGET_BINARY:=usr/sbin/mrouted
15
16 $(DL_DIR)/$(MROUTED_SOURCE):
17 $(WGET) -P $(DL_DIR) $(MROUTED_SITE)/$(MROUTED_SOURCE)
18
19 $(DL_DIR)/$(MROUTED_PATCH):
20 $(WGET) -P $(DL_DIR) $(MROUTED_SITE)/$(MROUTED_PATCH)
21
22 mrouted-source: $(DL_DIR)/$(MROUTED_SOURCE) $(DL_DIR)/$(MROUTED_PATCH)
23
24 $(MROUTED_DIR)/.unpacked: mrouted-source
25 $(MROUTED_CAT) $(DL_DIR)/$(MROUTED_SOURCE) | tar -C $(BUILD_DIR) -xvf -
26 $(MROUTED_CAT) $(DL_DIR)/$(MROUTED_PATCH) | patch -p1 -d $(MROUTED_DIR)
27 $(SOURCE_DIR)/patch-kernel.sh $(MROUTED_DIR) $(SOURCE_DIR) mrouted-*.patch
28 touch $(MROUTED_DIR)/.unpacked
29
30 $(MROUTED_DIR)/$(MROUTED_BINARY): $(MROUTED_DIR)/.unpacked
31 $(TARGET_CONFIGURE_OPTS) \
32 $(MAKE) CC=$(TARGET_CC) -C $(MROUTED_DIR)
33
34 $(TARGET_DIR)/$(MROUTED_TARGET_BINARY): $(MROUTED_DIR)/$(MROUTED_BINARY)
35 cp -a $(MROUTED_DIR)/$(MROUTED_BINARY) $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
36
37 mrouted: uclibc $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
38
39 mrouted-clean:
40 rm -f $(TARGET_DIR)/$(MROUTED_TARGET_BINARY)
41 -$(MAKE) -C $(MROUTED_DIR) clean
42
43 mrouted-dirclean:
44 rm -rf $(MROUTED_DIR)
45
This page took 0.044334 seconds and 5 git commands to generate.