| 1 | # $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
|
|---|
| 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 |
|
|---|
| 13 | include $(TOPDIR)/package/rules.mk
|
|---|
| 14 |
|
|---|
| 15 | $(eval $(call PKG_template,BLUEZ_UTILS,bluez-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 16 |
|
|---|
| 17 | $(WRKBUILD)/.configured:
|
|---|
| 18 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 19 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 20 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 21 | CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|---|
| 22 | LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|---|
| 23 | ./configure \
|
|---|
| 24 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 25 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 26 | --build=$(GNU_HOST_NAME) \
|
|---|
| 27 | --program-prefix="" \
|
|---|
| 28 | --program-suffix="" \
|
|---|
| 29 | --prefix=/usr \
|
|---|
| 30 | --exec-prefix=/usr \
|
|---|
| 31 | --bindir=/usr/bin \
|
|---|
| 32 | --datadir=/usr/share \
|
|---|
| 33 | --includedir=/usr/include \
|
|---|
| 34 | --infodir=/usr/share/info \
|
|---|
| 35 | --libdir=/usr/lib \
|
|---|
| 36 | --libexecdir=/usr/lib \
|
|---|
| 37 | --localstatedir=/var \
|
|---|
| 38 | --mandir=/usr/share/man \
|
|---|
| 39 | --sbindir=/usr/sbin \
|
|---|
| 40 | --sysconfdir=/etc \
|
|---|
| 41 | --enable-largefile \
|
|---|
| 42 | --disable-nls \
|
|---|
| 43 | --enable-shared \
|
|---|
| 44 | --enable-static \
|
|---|
| 45 | --disable-rpath \
|
|---|
| 46 | --disable-dbus \
|
|---|
| 47 | --disable-fuse \
|
|---|
| 48 | --disable-obex \
|
|---|
| 49 | --disable-alsa \
|
|---|
| 50 | --disable-cups \
|
|---|
| 51 | --disable-pcmcia \
|
|---|
| 52 | --disable-initscripts \
|
|---|
| 53 | --disable-bccmd \
|
|---|
| 54 | --disable-avctrl \
|
|---|
| 55 | --disable-hid2hci \
|
|---|
| 56 | --disable-dfutool \
|
|---|
| 57 | --disable-bcm203x \
|
|---|
| 58 | --disable-bluepin \
|
|---|
| 59 | --with-bluez=$(STAGING_DIR)/usr/include \
|
|---|
| 60 | --with-usb=$(STAGING_DIR)/usr/include \
|
|---|
| 61 | )
|
|---|
| 62 | touch $@
|
|---|
| 63 |
|
|---|
| 64 | $(WRKBUILD)/.built:
|
|---|
| 65 | rm -rf $(WRKINST)
|
|---|
| 66 | mkdir -p $(WRKINST)
|
|---|
| 67 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 68 | DESTDIR="$(WRKINST)" \
|
|---|
| 69 | all install
|
|---|
| 70 | touch $@
|
|---|
| 71 |
|
|---|
| 72 | $(IPKG_BLUEZ_UTILS):
|
|---|
| 73 | install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/bin
|
|---|
| 74 | $(CP) $(WRKINST)/usr/bin/* $(IDIR_BLUEZ_UTILS)/usr/bin/
|
|---|
| 75 | install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/sbin
|
|---|
| 76 | $(CP) $(WRKINST)/usr/sbin/* $(IDIR_BLUEZ_UTILS)/usr/sbin/
|
|---|
| 77 | install -d -m0755 $(IDIR_BLUEZ_UTILS)/etc/bluetooth
|
|---|
| 78 | $(CP) $(WRKBUILD)/hcid/hcid.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
|
|---|
| 79 | $(CP) $(WRKBUILD)/rfcomm/rfcomm.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
|
|---|
| 80 | install -m0700 ./files/givepin $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
|
|---|
| 81 | $(RSTRIP) $(IDIR_BLUEZ_UTILS)
|
|---|
| 82 | $(IPKG_BUILD) $(IDIR_BLUEZ_UTILS) $(PACKAGE_DIR)
|
|---|
| 83 |
|
|---|