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
:= 12778f3b66e71eec50eeb2e652de94a2578f33b8c8bd57c981fa00adab524c8a
10 PKG_DESCR
:= bluetooth applications
11 PKG_SECTION
:= net
/wifi
12 PKG_DEPENDS
:= glib dbus libreadline
13 PKG_BUILDDEP
:= glib dbus readline
14 PKG_URL
:= http
://www.bluez.org
/
15 PKG_SITES
:= http
://mirror.anl.gov
/pub
/linux
/bluetooth
/
17 include ${ADK_TOPDIR}/mk
/package.mk
19 $(eval
$(call PKG_template
,BLUEZ
,bluez
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
21 TARGET_LDFLAGS
+= -lncurses
23 ifeq ($(ADK_TARGET_USE_STATIC_LIBS
),y
)
24 XAKE_FLAGS
+= CCLD
="$(TARGET_CC) -all-static -pthread"
27 ifeq ($(ADK_TARGET_USE_PIE
),y
)
28 CONFIGURE_ARGS
+= --enable-pie
30 CONFIGURE_ENV
+= ac_cv_prog_cc_pie
=no
31 CONFIGURE_ARGS
+= --disable-pie
34 CONFIGURE_ARGS
+= --enable-tools \
42 ${INSTALL_DIR} $(IDIR_BLUEZ
)/etc
/dbus-1
/system.d
43 ${INSTALL_DIR} ${IDIR_BLUEZ}/usr
/bin
44 ${CP} ${WRKINST}/usr
/bin
/* ${IDIR_BLUEZ}/usr
/bin
45 ${INSTALL_DIR} ${IDIR_BLUEZ}/etc
/bluetooth
46 $(INSTALL_DATA
) .
/files
/main.conf \
47 ${IDIR_BLUEZ}/etc
/bluetooth
48 $(INSTALL_DATA
) .
/files
/bluetooth.conf \
49 $(IDIR_BLUEZ
)/etc
/dbus-1
/system.d
51 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk