Add dosfstools package
[openwrt.git] / package / bridge / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=bridge
6 PKG_VERSION:=1.0.6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=9b7dc52656f5cbec846a7ba3299f73bd
9
10 PKG_SOURCE_URL:=@SF/bridge
11 PKG_SOURCE:=bridge-utils-$(PKG_VERSION).tar.gz
12 PKG_BUILD_DIR:=$(BUILD_DIR)/bridge-utils-$(PKG_VERSION)
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16 $(eval $(call PKG_template,BRIDGE,bridge,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured:
19 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS)" \
22 ./configure \
23 --target=$(GNU_TARGET_NAME) \
24 --host=$(GNU_TARGET_NAME) \
25 --build=$(GNU_HOST_NAME) \
26 --prefix=/usr \
27 --exec-prefix=/usr \
28 --bindir=/usr/bin \
29 --sbindir=/usr/sbin \
30 --libexecdir=/usr/lib \
31 --sysconfdir=/etc \
32 --datadir=/usr/share \
33 --localstatedir=/var \
34 --mandir=/usr/man \
35 --infodir=/usr/info \
36 $(DISABLE_NLS) \
37 --with-linux-headers=$(LINUX_DIR) \
38 );
39 touch $@
40
41 $(PKG_BUILD_DIR)/.built:
42 $(MAKE) -C $(PKG_BUILD_DIR)
43 touch $@
44
45 $(IPKG_BRIDGE):
46 mkdir -p $(IDIR_BRIDGE)/usr/sbin
47 cp $(PKG_BUILD_DIR)/brctl/brctl $(IDIR_BRIDGE)/usr/sbin/
48 $(STRIP) $(IDIR_BRIDGE)/usr/sbin/brctl
49 $(IPKG_BUILD) $(IDIR_BRIDGE) $(PACKAGE_DIR)
This page took 0.042972 seconds and 5 git commands to generate.