set ALLMULTI on bridged interfaces (should improve multicast bridging)
[openwrt.git] / package / bluez-utils / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=bluez-utils
6 PKG_VERSION:=2.24
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=
9
10 PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,BLUEZ_UTILS,bluez-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.source: $(DL_DIR)/$(PKG_SOURCE)
22 zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
23 touch $(BLUEZLIBS_DIR)/.source
24
25 $(PKG_BUILD_DIR)/.configured:
26 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
27 $(TARGET_CONFIGURE_OPTS) \
28 CFLAGS="$(TARGET_CFLAGS)" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
30 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 $(DISABLE_LARGEFILE) \
50 $(DISABLE_NLS) \
51 --enable-shared \
52 --enable-static \
53 --disable-rpath \
54 --disable-dbus \
55 --disable-fuse \
56 --disable-obex \
57 --disable-alsa \
58 --disable-cups \
59 --disable-pcmcia \
60 --disable-initscripts \
61 --disable-bccmd \
62 --disable-avctrl \
63 --disable-hid2hci \
64 --disable-dfutool \
65 --disable-bcm203x \
66 --disable-bluepin \
67 --with-bluez=$(STAGING_DIR)/usr/include \
68 --with-usb=$(STAGING_DIR)/usr/include \
69 )
70 touch $@
71
72 $(PKG_BUILD_DIR)/.built:
73 rm -rf $(PKG_INSTALL_DIR)
74 mkdir -p $(PKG_INSTALL_DIR)
75 $(MAKE) -C $(PKG_BUILD_DIR) \
76 DESTDIR="$(PKG_INSTALL_DIR)" \
77 all install
78 touch $@
79
80 $(IPKG_BLUEZ_UTILS):
81 install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/bin
82 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_BLUEZ_UTILS)/usr/bin/
83 install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/sbin
84 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_BLUEZ_UTILS)/usr/sbin/
85 install -d -m0755 $(IDIR_BLUEZ_UTILS)/etc/bluetooth
86 cp -fp $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
87 cp -fp $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
88 install -m0700 ./files/givepin $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
89 $(RSTRIP) $(IDIR_BLUEZ_UTILS)
90 $(IPKG_BUILD) $(IDIR_BLUEZ_UTILS) $(PACKAGE_DIR)
91
This page took 0.052469 seconds and 5 git commands to generate.