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