1
0

Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= misc
  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_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  22. TARGET_LDFLAGS+= -lncurses
  23. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  24. CONFIGURE_ARGS+= --enable-tools \
  25. --disable-udev \
  26. --disable-systemd \
  27. --disable-obex \
  28. --disable-pie \
  29. --disable-cups
  30. bluez-install:
  31. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  32. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  33. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
  34. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  35. $(INSTALL_DATA) ./files/main.conf \
  36. ${IDIR_BLUEZ}/etc/bluetooth
  37. $(INSTALL_DATA) ./files/bluetooth.conf \
  38. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  39. include ${TOPDIR}/mk/pkg-bottom.mk