7deb71960552c788927f953d136d15ea59e6477b
[openwrt.git] / obsolete-buildroot / make / bridge.mk
1 #############################################################
2 #
3 # bridgeutils - User Space Program For Controling Bridging
4 #
5 #############################################################
6 #
7 BRIDGE_SOURCE_URL=http://bridge.sourceforge.net/bridge-utils
8 BRIDGE_SOURCE=bridge-utils-0.9.6.tar.gz
9 BRIDGE_BUILD_DIR=$(BUILD_DIR)/bridge-utils-0.9.6
10 BRIDGE_TARGET_BINARY:=usr/sbin/brctl
11
12 $(DL_DIR)/$(BRIDGE_SOURCE):
13 $(WGET) -P $(DL_DIR) $(BRIDGE_SOURCE_URL)/$(BRIDGE_SOURCE)
14
15 $(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE)
16 zcat $(DL_DIR)/$(BRIDGE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
17 mv -f $(BUILD_DIR)/bridge-utils $(BRIDGE_BUILD_DIR)
18 patch -p1 -d $(BRIDGE_BUILD_DIR) < $(SOURCE_DIR)/bridge.patch
19 touch $(BRIDGE_BUILD_DIR)/.unpacked
20
21 $(BRIDGE_BUILD_DIR)/.configured: $(BRIDGE_BUILD_DIR)/.unpacked
22 (cd $(BRIDGE_BUILD_DIR); rm -rf config.cache; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --prefix=/usr \
30 --exec-prefix=/usr \
31 --bindir=/usr/bin \
32 --sbindir=/usr/sbin \
33 --libexecdir=/usr/lib \
34 --sysconfdir=/etc \
35 --datadir=/usr/share \
36 --localstatedir=/var \
37 --mandir=/usr/man \
38 --infodir=/usr/info \
39 $(DISABLE_NLS) \
40 --with-linux=$(LINUX_DIR) \
41 );
42 touch $(BRIDGE_BUILD_DIR)/.configured
43
44 $(BRIDGE_BUILD_DIR)/brctl/brctl: $(BRIDGE_BUILD_DIR)/.configured
45 $(MAKE) -C $(BRIDGE_BUILD_DIR)
46
47 $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY): $(BRIDGE_BUILD_DIR)/brctl/brctl
48 cp -af $(BRIDGE_BUILD_DIR)/brctl/brctl $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
49 $(STRIP) $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
50 #cp -af $(BRIDGE_BUILD_DIR)/brctl/brctld $(TARGET_DIR)/usr/sbin/
51 #$(STRIP) $(TARGET_DIR)/usr/sbin/brctld
52
53 bridge: $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
54
55 bridge-source: $(DL_DIR)/$(BRIDGE_SOURCE)
56
57 bridge-clean:
58 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
59 -$(MAKE) -C $(BRIDGE_BUILD_DIR) clean
60
61 bridge-dirclean:
62 rm -rf $(BRIDGE_BUILD_DIR)
This page took 0.054412 seconds and 3 git commands to generate.