1
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.19
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 12778f3b66e71eec50eeb2e652de94a2578f33b8c8bd57c981fa00adab524c8a
  8. PKG_DESCR:= bluetooth applications
  9. PKG_SECTION:= net/wifi
  10. PKG_DEPENDS:= glib dbus libreadline
  11. PKG_BUILDDEP:= glib dbus readline
  12. PKG_URL:= http://www.bluez.org/
  13. PKG_SITES:= http://mirror.anl.gov/pub/linux/bluetooth/
  14. include ${ADK_TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. TARGET_LDFLAGS+= -lncurses
  17. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
  18. XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
  19. endif
  20. ifeq ($(ADK_TARGET_USE_PIE),y)
  21. CONFIGURE_ARGS+= --enable-pie
  22. else
  23. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  24. CONFIGURE_ARGS+= --disable-pie
  25. endif
  26. CONFIGURE_ARGS+= --enable-tools \
  27. --disable-udev \
  28. --disable-test \
  29. --disable-systemd \
  30. --disable-obex \
  31. --disable-cups
  32. bluez-install:
  33. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  34. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  35. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
  36. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  37. $(INSTALL_DATA) ./files/main.conf \
  38. ${IDIR_BLUEZ}/etc/bluetooth
  39. $(INSTALL_DATA) ./files/bluetooth.conf \
  40. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  41. include ${ADK_TOPDIR}/mk/pkg-bottom.mk