1 #############################################################
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
)
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
)
40 rm -f
$(TARGET_DIR
)/$(MROUTED_TARGET_BINARY
)
41 -$(MAKE
) -C
$(MROUTED_DIR
) clean
46 #############################################################
48 # Toplevel Makefile options
50 #############################################################
51 ifeq ($(BR2_PACKAGE_MROUTED
),y
)