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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= bluez
  5. PKG_VERSION:= 4.101
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= fb42cb7038c380eb0e2fa208987c96ad
  8. PKG_DESCR:= bluetooth libraries and applications
  9. PKG_SECTION:= bluetooth
  10. PKG_DEPENDS:= kmod-bt libusb glib dbus
  11. PKG_BUILDDEP:= libusb dbus glib libusb-compat
  12. PKG_URL:= http://www.bluez.org/
  13. PKG_SITES:= http://mirror.anl.gov/pub/linux/bluetooth/
  14. PKG_ARCH_DEPENDS:= !avr32
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. ifeq ($(ADK_STATIC),y)
  18. XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
  19. endif
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  22. CONFIGURE_ARGS+= --enable-tools \
  23. --enable-alsa \
  24. --enable-usb \
  25. --enable-bccmd \
  26. --enable-hidd \
  27. --enable-pand \
  28. --enable-dund \
  29. --enable-netlink \
  30. --disable-pie \
  31. --disable-cups
  32. bluez-install:
  33. ifneq ($(ADK_STATIC),y)
  34. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libbluetooth.so* ${IDIR_BLUEZ}/usr/lib
  36. endif
  37. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  38. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  39. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
  40. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
  41. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin
  42. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  43. $(INSTALL_DATA) ./files/main.conf \
  44. ${IDIR_BLUEZ}/etc/bluetooth
  45. $(INSTALL_DATA) ./files/bluetooth.conf \
  46. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  47. include ${TOPDIR}/mk/pkg-bottom.mk