1 #############################################################
3 # bridgeutils - User Space Program For Controling Bridging
5 #############################################################
7 ifeq ($(strip $(USE_BRIDGE_VERSION
)),)
8 USE_BRIDGE_VERSION
=0.9.7
10 BRIDGE_SOURCE_URL
=http
://dl.sourceforge.net
/sourceforge
/bridge
/
11 BRIDGE_SOURCE
=bridge-utils-
$(USE_BRIDGE_VERSION
).
tar.gz
12 BRIDGE_BUILD_DIR
=$(BUILD_DIR
)/bridge-utils-
$(USE_BRIDGE_VERSION
)
13 BRIDGE_TARGET_BINARY
:=usr
/sbin
/brctl
15 $(DL_DIR
)/$(BRIDGE_SOURCE
):
16 $(WGET
) -P
$(DL_DIR
) $(BRIDGE_SOURCE_URL
)/$(BRIDGE_SOURCE
)
18 $(BRIDGE_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(BRIDGE_SOURCE
)
19 # ack! it's a .tgz which is really a bzip
20 zcat
$(DL_DIR
)/$(BRIDGE_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
21 patch
-p1
-d
$(BRIDGE_BUILD_DIR
) < $(SOURCE_DIR
)/bridge.patch
22 touch
$(BRIDGE_BUILD_DIR
)/.unpacked
24 $(BRIDGE_BUILD_DIR
)/.configured
: $(BRIDGE_BUILD_DIR
)/.unpacked
25 (cd
$(BRIDGE_BUILD_DIR
); rm -rf config.cache
; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
36 --libexecdir
=/usr
/lib \
38 --datadir=/usr
/share \
39 --localstatedir
=/var \
43 --with-linux-headers
=$(LINUX_DIR
) \
45 touch
$(BRIDGE_BUILD_DIR
)/.configured
47 $(BRIDGE_BUILD_DIR
)/brctl
/brctl
: $(BRIDGE_BUILD_DIR
)/.configured
48 $(MAKE
) -C
$(BRIDGE_BUILD_DIR
)
50 $(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
): $(BRIDGE_BUILD_DIR
)/brctl
/brctl
51 cp
-af
$(BRIDGE_BUILD_DIR
)/brctl
/brctl
$(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
52 $(STRIP
) $(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
53 #cp -af $(BRIDGE_BUILD_DIR)/brctl/brctld $(TARGET_DIR)/usr/sbin/
54 #$(STRIP) $(TARGET_DIR)/usr/sbin/brctld
56 bridge
: $(TARGET_DIR
)/$(BRIDGE_TARGET_BINARY
)
58 bridge-source
: $(DL_DIR
)/$(BRIDGE_SOURCE
)
61 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
62 -$(MAKE
) -C
$(BRIDGE_BUILD_DIR
) clean
65 rm -rf
$(BRIDGE_BUILD_DIR
)
This page took 0.042331 seconds and 5 git commands to generate.