Makefile 1.3 KB

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