nfs swap patch; bzip loader
[openwrt.git] / obsolete-buildroot / make / bridge.mk
1 #############################################################
2 #
3 # bridgeutils - User Space Program For Controling Bridging
4 #
5 #############################################################
6
7 ifeq ($(strip $(USE_BRIDGE_VERSION)),)
8 USE_BRIDGE_VERSION=0.9.7
9 endif
10 BRIDGE_SOURCE_URL=http://dl.sourceforge.net/sourceforge/bridge/
11 BRIDGE_SOURCE=bridge-utils-$(USE_BRIDGE_VERSION).tgz
12 BRIDGE_BUILD_DIR=$(BUILD_DIR)/bridge-utils-$(USE_BRIDGE_VERSION)
13 BRIDGE_TARGET_BINARY:=usr/sbin/brctl
14
15 $(DL_DIR)/$(BRIDGE_SOURCE):
16 $(WGET) -P $(DL_DIR) $(BRIDGE_SOURCE_URL)/$(BRIDGE_SOURCE)
17
18 $(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE)
19 # ack! it's a .tgz which is really a bzip
20 bzcat $(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
23
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)" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --sbindir=/usr/sbin \
36 --libexecdir=/usr/lib \
37 --sysconfdir=/etc \
38 --datadir=/usr/share \
39 --localstatedir=/var \
40 --mandir=/usr/man \
41 --infodir=/usr/info \
42 $(DISABLE_NLS) \
43 --with-linux=$(LINUX_DIR) \
44 );
45 touch $(BRIDGE_BUILD_DIR)/.configured
46
47 $(BRIDGE_BUILD_DIR)/brctl/brctl: $(BRIDGE_BUILD_DIR)/.configured
48 $(MAKE) -C $(BRIDGE_BUILD_DIR)
49
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
55
56 bridge: $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
57
58 bridge-source: $(DL_DIR)/$(BRIDGE_SOURCE)
59
60 bridge-clean:
61 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
62 -$(MAKE) -C $(BRIDGE_BUILD_DIR) clean
63
64 bridge-dirclean:
65 rm -rf $(BRIDGE_BUILD_DIR)
This page took 0.063972 seconds and 5 git commands to generate.