]> Git Repo - buildroot-mgba.git/blame - package/bridge/bridge.mk
Make the sourceforge mirror site a config option, as sourceforge
[buildroot-mgba.git] / package / bridge / bridge.mk
CommitLineData
c8eea31d
EA
1#############################################################
2#
3# bridgeutils - User Space Program For Controling Bridging
4#
5#############################################################
6#
1d63e8a8 7BRIDGE_SOURCE_URL=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/bridge/
64f5435c
EA
8BRIDGE_SOURCE=bridge-utils-1.0.4.tar.gz
9BRIDGE_BUILD_DIR=$(BUILD_DIR)/bridge-utils-1.0.4
6cf315cd 10BRIDGE_TARGET_BINARY:=usr/sbin/brctl
c8eea31d
EA
11
12$(DL_DIR)/$(BRIDGE_SOURCE):
44eedc5c 13 $(WGET) -P $(DL_DIR) $(BRIDGE_SOURCE_URL)/$(BRIDGE_SOURCE)
c8eea31d
EA
14
15$(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE)
bb05a9ad 16 zcat $(DL_DIR)/$(BRIDGE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
44eedc5c 17 patch -p1 -d $(BRIDGE_BUILD_DIR) < package/bridge/bridge.patch
c8eea31d
EA
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; \
1fc3f2f3 22 $(TARGET_CONFIGURE_OPTS) \
d632d42b 23 CFLAGS="$(TARGET_CFLAGS)" \
2279207e
EA
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) \
c2180b41 39 --with-linux-headers=$(LINUX_DIR) \
c8eea31d 40 );
c8eea31d
EA
41 touch $(BRIDGE_BUILD_DIR)/.configured
42
43$(BRIDGE_BUILD_DIR)/brctl/brctl: $(BRIDGE_BUILD_DIR)/.configured
2279207e 44 $(MAKE) -C $(BRIDGE_BUILD_DIR)
c8eea31d 45
6cf315cd
MNI
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
c8eea31d 51
ee654b59 52bridge: linux $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
c8eea31d 53
0fee9e90
EA
54bridge-source: $(DL_DIR)/$(BRIDGE_SOURCE)
55
c8eea31d 56bridge-clean:
6cf315cd 57 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
c8eea31d
EA
58 -$(MAKE) -C $(BRIDGE_BUILD_DIR) clean
59
60bridge-dirclean:
61 rm -rf $(BRIDGE_BUILD_DIR)
d06645d8
EA
62#############################################################
63#
64# Toplevel Makefile options
65#
66#############################################################
67ifeq ($(strip $(BR2_PACKAGE_BRIDGE)),y)
68TARGETS+=bridge
69endif
This page took 0.068336 seconds and 4 git commands to generate.