remove my testing var
[openwrt.git] / package / bluez-utils / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=bluez-utils
6 PKG_VERSION:=2.17
7 PKG_RELEASE:=2
8 PKG_MD5SUM:=42be19b0029a83824358baa0106da947
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
22 $(PKG_BUILD_DIR)/.source: $(DL_DIR)/$(PKG_SOURCE)
23 zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24 touch $(BLUEZLIBS_DIR)/.source
25
26 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
27 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
31 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
32 sys_lib_dlsearch_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
33 sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
34 ./configure \
35 --target=$(GNU_TARGET_NAME) \
36 --host=$(GNU_TARGET_NAME) \
37 --build=$(GNU_HOST_NAME) \
38 --program-prefix="" \
39 --program-suffix="" \
40 --prefix=/usr \
41 --exec-prefix=/usr \
42 --bindir=/usr/bin \
43 --datadir=/usr/share \
44 --includedir=/usr/include \
45 --infodir=/usr/share/info \
46 --libdir=/usr/lib \
47 --libexecdir=/usr/lib \
48 --localstatedir=/var \
49 --mandir=/usr/share/man \
50 --sbindir=/usr/sbin \
51 --sysconfdir=/etc \
52 $(DISABLE_LARGEFILE) \
53 $(DISABLE_NLS) \
54 --enable-shared \
55 --enable-static \
56 --disable-rpath \
57 --without-x \
58 --with-bluez=$(STAGING_DIR)/usr/include \
59 --with-usb=$(STAGING_DIR)/usr/include \
60 --without-glib \
61 )
62 touch $@
63
64 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
65 rm -rf $(PKG_INSTALL_DIR)
66 mkdir -p $(PKG_INSTALL_DIR)
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 DESTDIR="$(PKG_INSTALL_DIR)" \
69 all install
70 rm -f $(PKG_INSTALL_DIR)/usr/bin/bluepin
71 touch $@
72
73 $(IPKG_BLUEZ_UTILS):
74 install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/bin
75 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_BLUEZ_UTILS)/usr/bin/
76 install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/sbin
77 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_BLUEZ_UTILS)/usr/sbin/
78 install -d -m0755 $(IDIR_BLUEZ_UTILS)/etc/bluetooth
79 cp -fp $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
80 cp -fp $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
81 install -m0700 ./files/givepin $(IDIR_BLUEZ_UTILS)/etc/bluetooth/
82
83 $(RSTRIP) $(IDIR_BLUEZ_UTILS)
84 $(IPKG_BUILD) $(IDIR_BLUEZ_UTILS) $(PACKAGE_DIR)
85
This page took 0.054029 seconds and 5 git commands to generate.