3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=42be19b0029a83824358baa0106da947
10 PKG_SOURCE_URL
:=http
://bluez.sourceforge.net
/download
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,BLUEZ_UTILS
,bluez-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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
26 $(PKG_BUILD_DIR
)/.configured
:
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" \
35 --target
=$(GNU_TARGET_NAME
) \
36 --host
=$(GNU_TARGET_NAME
) \
37 --build
=$(GNU_HOST_NAME
) \
43 --datadir=/usr
/share \
44 --includedir=/usr
/include \
45 --infodir=/usr
/share
/info \
47 --libexecdir
=/usr
/lib \
48 --localstatedir
=/var \
49 --mandir=/usr
/share
/man \
52 $(DISABLE_LARGEFILE
) \
58 --with-bluez
=$(STAGING_DIR
)/usr
/include \
59 --with-usb
=$(STAGING_DIR
)/usr
/include \
64 $(PKG_BUILD_DIR
)/.built
:
65 rm -rf
$(PKG_INSTALL_DIR
)
66 mkdir
-p
$(PKG_INSTALL_DIR
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 DESTDIR
="$(PKG_INSTALL_DIR)" \
70 rm -f
$(PKG_INSTALL_DIR
)/usr
/bin
/bluepin
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
/
83 $(RSTRIP
) $(IDIR_BLUEZ_UTILS
)
84 $(IPKG_BUILD
) $(IDIR_BLUEZ_UTILS
) $(PACKAGE_DIR
)