Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.92
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= abe5b76df95939f4eb6fa493f4764a95
  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:= ${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. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  20. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  21. CONFIGURE_ARGS+= --enable-tools \
  22. --enable-alsa \
  23. --enable-usb \
  24. --enable-bccmd \
  25. --enable-hidd \
  26. --enable-pand \
  27. --enable-dund \
  28. --enable-netlink \
  29. --disable-pie \
  30. --disable-cups
  31. bluez-install:
  32. ifneq ($(ADK_STATIC),y)
  33. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libbluetooth.so* ${IDIR_BLUEZ}/usr/lib
  35. endif
  36. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  37. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  38. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
  39. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
  40. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin
  41. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  42. $(INSTALL_DATA) ./files/main.conf \
  43. ${IDIR_BLUEZ}/etc/bluetooth
  44. $(INSTALL_DATA) ./files/bluetooth.conf \
  45. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  46. include ${TOPDIR}/mk/pkg-bottom.mk