1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${TOPDIR}/rules.mk
9 PKG_MD5SUM
:= 296111afac49e3f9035085ac14daf518
10 PKG_DESCR
:= bluetooth libraries and applications
11 PKG_SECTION
:= bluetooth
12 PKG_DEPENDS
:= kmod-bt libusb glib dbus
13 PKG_BUILDDEP
:= libusb dbus glib libusb-compat
14 PKG_URL
:= http
://www.bluez.org
/
15 PKG_SITES
:= http
://mirror.anl.gov
/pub
/linux
/bluetooth
/
17 PKG_ARCH_DEPENDS
:= !avr32
19 include ${TOPDIR}/mk
/package.mk
21 $(eval
$(call PKG_template
,BLUEZ
,bluez
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 ifeq ($(ADK_STATIC
),y
)
24 XAKE_FLAGS
+= CCLD
="$(TARGET_CC) -all-static -pthread"
26 TARGET_CFLAGS
:= $(filter-out -flto
,$(TARGET_CFLAGS
))
27 CONFIGURE_ENV
+= ac_cv_prog_cc_pie
=no
28 CONFIGURE_ARGS
+= --enable-tools \
40 ifneq ($(ADK_STATIC
),y
)
41 ${INSTALL_DIR} ${IDIR_BLUEZ}/usr
/lib
42 ${CP} ${WRKINST}/usr
/lib
/libbluetooth.so
* ${IDIR_BLUEZ}/usr
/lib
44 ${INSTALL_DIR} $(IDIR_BLUEZ
)/etc
/dbus-1
/system.d
45 ${INSTALL_DIR} ${IDIR_BLUEZ}/usr
/bin
46 ${CP} ${WRKINST}/usr
/bin
/* ${IDIR_BLUEZ}/usr
/bin
47 ${INSTALL_DIR} ${IDIR_BLUEZ}/usr
/sbin
48 ${CP} ${WRKINST}/usr
/sbin
/* ${IDIR_BLUEZ}/usr
/sbin
49 ${INSTALL_DIR} ${IDIR_BLUEZ}/etc
/bluetooth
50 $(INSTALL_DATA
) .
/files
/main.conf \
51 ${IDIR_BLUEZ}/etc
/bluetooth
52 $(INSTALL_DATA
) .
/files
/bluetooth.conf \
53 $(IDIR_BLUEZ
)/etc
/dbus-1
/system.d
55 include ${TOPDIR}/mk
/pkg-bottom.mk