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 $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 16c9c05d2a1da644ce3570d975ada3643d2e60c007a955bac09c0a0efeb58d15
10 PKG_DESCR
:= bluetooth applications
11 PKG_SECTION
:= net
/wifi
12 PKG_DEPENDS
:= glib dbus libreadline libudev
13 PKG_BUILDDEP
:= glib dbus readline eudev
14 PKG_KDEPENDS
:= bt bt-l2cap bt-sco bt-rfcomm bt-hidp bt-bnep
15 PKG_URL
:= http
://www.bluez.org
/
16 PKG_SITES
:= http
://www.kernel.org
/pub
/linux
/bluetooth
/
18 include $(ADK_TOPDIR
)/mk
/package.mk
20 $(eval
$(call PKG_template
,BLUEZ
,bluez
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
)))
22 TARGET_LDFLAGS
+= -lncurses
24 ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY
),y
)
25 XAKE_FLAGS
+= CCLD
="$(TARGET_CC) -all-static -pthread"
28 ifeq ($(ADK_TARGET_USE_PIE
),y
)
29 CONFIGURE_ARGS
+= --enable-pie
31 CONFIGURE_ENV
+= ac_cv_prog_cc_pie
=no
32 CONFIGURE_ARGS
+= --disable-pie
35 CONFIGURE_ARGS
+= --enable-tools \
37 --with-udevdir
=/usr
/bin \
44 $(INSTALL_DIR
) $(IDIR_BLUEZ
)/etc
/bluetooth
45 $(INSTALL_DIR
) $(IDIR_BLUEZ
)/etc
/dbus-1
/system.d
46 $(INSTALL_DIR
) $(IDIR_BLUEZ
)/usr
/bin
47 $(INSTALL_DIR
) $(IDIR_BLUEZ
)/usr
/libexec
/bluetooth
48 $(INSTALL_BIN
) $(WRKINST
)/usr
/libexec
/bluetooth
/bluetoothd \
49 $(IDIR_BLUEZ
)/usr
/libexec
/bluetooth
50 $(CP
) $(WRKINST
)/usr
/bin
/* $(IDIR_BLUEZ
)/usr
/bin
51 $(INSTALL_DATA
) $(WRKBUILD
)/src
/main.conf \
52 $(IDIR_BLUEZ
)/etc
/bluetooth
53 $(INSTALL_DATA
) .
/files
/bluetooth.conf \
54 $(IDIR_BLUEZ
)/etc
/dbus-1
/system.d
56 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk