Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= bluez
  5. PKG_VERSION:= 5.43
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 16c9c05d2a1da644ce3570d975ada3643d2e60c007a955bac09c0a0efeb58d15
  8. PKG_DESCR:= bluetooth applications
  9. PKG_SECTION:= net/wifi
  10. PKG_DEPENDS:= glib dbus libreadline libudev
  11. PKG_BUILDDEP:= glib dbus readline eudev
  12. PKG_KDEPENDS:= bt bt-l2cap bt-sco bt-rfcomm bt-hidp bt-bnep
  13. PKG_URL:= http://www.bluez.org/
  14. PKG_SITES:= http://www.kernel.org/pub/linux/bluetooth/
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,BLUEZ,bluez,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  17. TARGET_LDFLAGS+= -lncurses
  18. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  19. XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
  20. endif
  21. ifeq ($(ADK_TARGET_USE_PIE),y)
  22. CONFIGURE_ARGS+= --enable-pie
  23. else
  24. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  25. CONFIGURE_ARGS+= --disable-pie
  26. endif
  27. CONFIGURE_ARGS+= --enable-tools \
  28. --enable-udev \
  29. --with-udevdir=/usr/bin \
  30. --disable-test \
  31. --disable-systemd \
  32. --disable-obex \
  33. --disable-cups
  34. bluez-install:
  35. $(INSTALL_DIR) $(IDIR_BLUEZ)/etc/bluetooth
  36. $(INSTALL_DIR) $(IDIR_BLUEZ)/etc/dbus-1/system.d
  37. $(INSTALL_DIR) $(IDIR_BLUEZ)/usr/bin
  38. $(INSTALL_DIR) $(IDIR_BLUEZ)/usr/libexec/bluetooth
  39. $(INSTALL_BIN) $(WRKINST)/usr/libexec/bluetooth/bluetoothd \
  40. $(IDIR_BLUEZ)/usr/libexec/bluetooth
  41. $(CP) $(WRKINST)/usr/bin/* $(IDIR_BLUEZ)/usr/bin
  42. $(INSTALL_DATA) $(WRKBUILD)/src/main.conf \
  43. $(IDIR_BLUEZ)/etc/bluetooth
  44. $(INSTALL_DATA) ./files/bluetooth.conf \
  45. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  46. include $(ADK_TOPDIR)/mk/pkg-bottom.mk