1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.89
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 67fd9ad2852ce01f01b16ddd2336d1ea
  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
  12. PKG_URL:= http://www.bluez.org/
  13. PKG_SITES:= ${MASTER_SITE_KERNEL:=bluetooth/}
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. ifeq ($(ADK_STATIC),y)
  17. XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
  18. endif
  19. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  20. CONFIGURE_ARGS+= --enable-tools \
  21. --enable-alsa \
  22. --enable-usb \
  23. --enable-bccmd \
  24. --enable-hidd \
  25. --enable-pand \
  26. --enable-dund \
  27. --enable-netlink \
  28. --disable-pie \
  29. --disable-cups
  30. bluez-install:
  31. ifneq ($(ADK_STATIC),y)
  32. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/lib
  33. ${CP} ${WRKINST}/usr/lib/libbluetooth.so* ${IDIR_BLUEZ}/usr/lib
  34. endif
  35. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  36. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  37. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
  38. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
  39. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin
  40. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  41. $(INSTALL_DATA) ./files/main.conf \
  42. ${IDIR_BLUEZ}/etc/bluetooth
  43. $(INSTALL_DATA) ./files/bluetooth.conf \
  44. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  45. include ${TOPDIR}/mk/pkg-bottom.mk