allow to disable kernel module autoloading mechanism, useful when a big defconfig...
[openadk.git] / package / bluez / Makefile
blobbf12c51879f612d0a25fdc78bff4e42c21682077
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
6 PKG_NAME:= bluez
7 PKG_VERSION:= 5.43
8 PKG_RELEASE:= 1
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"
26 endif
28 ifeq ($(ADK_TARGET_USE_PIE),y)
29 CONFIGURE_ARGS+= --enable-pie
30 else
31 CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
32 CONFIGURE_ARGS+= --disable-pie
33 endif
35 CONFIGURE_ARGS+= --enable-tools \
36 --enable-udev \
37 --with-udevdir=/usr/bin \
38 --disable-test \
39 --disable-systemd \
40 --disable-obex \
41 --disable-cups
43 bluez-install:
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