source: freewrt/package/bluez-utils/Makefile@ 089fcf2

Last change on this file since 089fcf2 was 089fcf2, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

sync with stable branch

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1135 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.5 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= bluez-utils
10PKG_VERSION:= 2.24
11PKG_RELEASE:= 3
12PKG_MD5SUM:= 5f5488ff3d31bdb9cd36b7991fe68408
13
14PKG_SOURCE_URL:= http://bluez.sourceforge.net/download
15
16include $(TOPDIR)/mk/package.mk
17
18$(eval $(call PKG_template,BLUEZ_UTILS,bluez-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20$(WRKBUILD)/.configured:
21 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 --disable-nls \
45 --enable-shared \
46 --enable-static \
47 --disable-rpath \
48 --disable-dbus \
49 --disable-fuse \
50 --disable-obex \
51 --disable-alsa \
52 --disable-cups \
53 --disable-pcmcia \
54 --disable-initscripts \
55 --disable-bccmd \
56 --disable-avctrl \
57 --disable-hid2hci \
58 --disable-dfutool \
59 --enable-bcm203x \
60 --disable-bluepin \
61 --with-bluez=$(STAGING_DIR)/usr/include \
62 --with-usb=$(STAGING_DIR)/usr/include \
63 )
64 touch $@
65
66$(WRKBUILD)/.built:
67 rm -rf $(WRKINST)
68 mkdir -p $(WRKINST)
69 $(MAKE) -C $(WRKBUILD) \
70 DESTDIR="$(WRKINST)" \
71 all install
72 touch $@
73
74$(IPKG_BLUEZ_UTILS):
75 install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/bin
76 $(CP) $(WRKINST)/usr/bin/* $(IDIR_BLUEZ_UTILS)/usr/bin/
77 install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/sbin
78 $(CP) $(WRKINST)/usr/sbin/* $(IDIR_BLUEZ_UTILS)/usr/sbin/
79 install -d -m0755 $(IDIR_BLUEZ_UTILS)/etc/bluetooth
80 $(CP) $(WRKINST)/etc/bluetooth/{hcid,rfcomm}.conf \
81 $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
82 install -m0700 ./files/givepin $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
83 install -d -m0755 $(IDIR_BLUEZ_UTILS)/etc/hotplug.d/usb
84 install -m0755 ./files/bcm203x \
85 $(IDIR_BLUEZ_UTILS)/etc/hotplug.d/usb/02-bcm203x
86 $(CP) $(WRKINST)/etc/hotplug/usb/bcm203x \
87 $(IDIR_BLUEZ_UTILS)/usr/sbin
88 $(RSTRIP) $(IDIR_BLUEZ_UTILS)
89 $(IPKG_BUILD) $(IDIR_BLUEZ_UTILS) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.