Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= 981b34c2ae7e2ed2e25a167d8a902a25
  8. PKG_DESCR:= bluetooth applications
  9. PKG_SECTION:= bluetooth
  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. PKG_ARCH_DEPENDS:= !avr32
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. AUTOTOOL_STYLE:= autoreconf
  19. ifeq ($(ADK_STATIC),y)
  20. XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
  21. endif
  22. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  23. TARGET_LDFLAGS+= -lncurses
  24. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  25. CONFIGURE_ARGS+= --enable-tools \
  26. --disable-udev \
  27. --disable-systemd \
  28. --disable-obex \
  29. --disable-pie \
  30. --disable-cups
  31. bluez-install:
  32. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  33. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  34. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
  35. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  36. $(INSTALL_DATA) ./files/main.conf \
  37. ${IDIR_BLUEZ}/etc/bluetooth
  38. $(INSTALL_DATA) ./files/bluetooth.conf \
  39. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  40. include ${TOPDIR}/mk/pkg-bottom.mk