Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.40
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= dada8b812055afcad4546d9966f9a763e4723169e89706e2b240c7b7e998dc27
  8. PKG_DESCR:= bluetooth applications
  9. PKG_SECTION:= net/wifi
  10. PKG_DEPENDS:= glib dbus libreadline
  11. PKG_KDEPENDS:= bt bt-l2cap bt-sco bt-rfcomm bt-hidp bt-bnep
  12. PKG_BUILDDEP:= glib dbus readline
  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. --disable-udev \
  29. --disable-test \
  30. --disable-systemd \
  31. --disable-obex \
  32. --disable-cups
  33. bluez-install:
  34. $(INSTALL_DIR) $(IDIR_BLUEZ)/etc/bluetooth
  35. $(INSTALL_DIR) $(IDIR_BLUEZ)/etc/dbus-1/system.d
  36. $(INSTALL_DIR) $(IDIR_BLUEZ)/usr/bin
  37. $(INSTALL_DIR) $(IDIR_BLUEZ)/usr/libexec/bluetooth
  38. $(INSTALL_BIN) $(WRKINST)/usr/libexec/bluetooth/bluetoothd \
  39. $(IDIR_BLUEZ)/usr/libexec/bluetooth
  40. $(CP) $(WRKINST)/usr/bin/* $(IDIR_BLUEZ)/usr/bin
  41. $(INSTALL_DATA) $(WRKBUILD)/src/main.conf \
  42. $(IDIR_BLUEZ)/etc/bluetooth
  43. $(INSTALL_DATA) ./files/bluetooth.conf \
  44. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  45. include $(ADK_TOPDIR)/mk/pkg-bottom.mk