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
:= 39fea64b590c9492984a0c27a89fc203e1cdc74866086efb8f4698677ab2b574
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 \
45 $(INSTALL_DIR
) $(IDIR_BLUEZ
)/etc
/bluetooth
46 $(INSTALL_DIR
) $(IDIR_BLUEZ
)/etc
/dbus-1
/system.d
47 $(INSTALL_DIR
) $(IDIR_BLUEZ
)/usr
/bin
48 $(INSTALL_DIR
) $(IDIR_BLUEZ
)/usr
/libexec
/bluetooth
49 $(INSTALL_BIN
) $(WRKINST
)/usr
/libexec
/bluetooth
/bluetoothd \
50 $(IDIR_BLUEZ
)/usr
/libexec
/bluetooth
51 $(CP
) $(WRKINST
)/usr
/bin
/* $(IDIR_BLUEZ
)/usr
/bin
52 $(INSTALL_DATA
) $(WRKBUILD
)/src
/main.conf \
53 $(IDIR_BLUEZ
)/etc
/bluetooth
54 $(INSTALL_DATA
) .
/files
/bluetooth.conf \
55 $(IDIR_BLUEZ
)/etc
/dbus-1
/system.d
57 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk