2003-02-19 08:07:53 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
2005-06-09 14:23:36 +02:00
|
|
|
# bridgeutils - User Space Program For Controlling Bridging
|
2003-02-19 08:07:53 +01:00
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
#
|
2005-06-09 14:23:36 +02:00
|
|
|
BRIDGE_VERSION=1.0.6
|
2005-06-09 14:15:00 +02:00
|
|
|
BRIDGE_SOURCE_URL=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/bridge/
|
2005-06-09 14:23:36 +02:00
|
|
|
BRIDGE_SOURCE=bridge-utils-$(BRIDGE_VERSION).tar.gz
|
|
|
|
BRIDGE_BUILD_DIR=$(BUILD_DIR)/bridge-utils-$(BRIDGE_VERSION)
|
2004-03-05 19:59:41 +01:00
|
|
|
BRIDGE_TARGET_BINARY:=usr/sbin/brctl
|
2003-02-19 08:07:53 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(BRIDGE_SOURCE):
|
2004-10-09 04:49:33 +02:00
|
|
|
$(WGET) -P $(DL_DIR) $(BRIDGE_SOURCE_URL)/$(BRIDGE_SOURCE)
|
2003-02-19 08:07:53 +01:00
|
|
|
|
|
|
|
$(BRIDGE_BUILD_DIR)/.unpacked: $(DL_DIR)/$(BRIDGE_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
zcat $(DL_DIR)/$(BRIDGE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2004-10-09 04:49:33 +02:00
|
|
|
patch -p1 -d $(BRIDGE_BUILD_DIR) < package/bridge/bridge.patch
|
2003-02-19 08:07:53 +01:00
|
|
|
touch $(BRIDGE_BUILD_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(BRIDGE_BUILD_DIR)/.configured: $(BRIDGE_BUILD_DIR)/.unpacked
|
|
|
|
(cd $(BRIDGE_BUILD_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2003-11-01 06:34:41 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2003-09-05 01:48:03 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
$(DISABLE_NLS) \
|
2005-06-09 14:23:36 +02:00
|
|
|
--with-linux-headers=$(LINUX_HEADERS_DIR) \
|
2003-02-19 08:07:53 +01:00
|
|
|
);
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(BRIDGE_BUILD_DIR)/.configured
|
2003-02-19 08:07:53 +01:00
|
|
|
|
|
|
|
$(BRIDGE_BUILD_DIR)/brctl/brctl: $(BRIDGE_BUILD_DIR)/.configured
|
2003-09-05 01:48:03 +02:00
|
|
|
$(MAKE) -C $(BRIDGE_BUILD_DIR)
|
2003-02-19 08:07:53 +01:00
|
|
|
|
2004-03-05 19:59:41 +01:00
|
|
|
$(TARGET_DIR)/$(BRIDGE_TARGET_BINARY): $(BRIDGE_BUILD_DIR)/brctl/brctl
|
|
|
|
cp -af $(BRIDGE_BUILD_DIR)/brctl/brctl $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
|
|
|
$(STRIP) $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
|
|
|
#cp -af $(BRIDGE_BUILD_DIR)/brctl/brctld $(TARGET_DIR)/usr/sbin/
|
|
|
|
#$(STRIP) $(TARGET_DIR)/usr/sbin/brctld
|
2003-02-19 08:07:53 +01:00
|
|
|
|
2005-06-09 14:23:36 +02:00
|
|
|
bridge: $(TARGET_DIR)/$(BRIDGE_TARGET_BINARY)
|
2003-02-19 08:07:53 +01:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
bridge-source: $(DL_DIR)/$(BRIDGE_SOURCE)
|
|
|
|
|
2003-02-19 08:07:53 +01:00
|
|
|
bridge-clean:
|
2004-03-05 19:59:41 +01:00
|
|
|
#$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BRIDGE_BUILD_DIR) uninstall
|
2003-02-19 08:07:53 +01:00
|
|
|
-$(MAKE) -C $(BRIDGE_BUILD_DIR) clean
|
|
|
|
|
|
|
|
bridge-dirclean:
|
|
|
|
rm -rf $(BRIDGE_BUILD_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_BRIDGE)),y)
|
|
|
|
TARGETS+=bridge
|
|
|
|
endif
|