Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.59
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1c7cee215bc84656b1edee019cee78f5
  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,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. ifeq ($(ADK_STATIC),y)
  17. XAKE_FLAGS+= V=1 CCLD="$(TARGET_CC) -all-static -pthread"
  18. else
  19. XAKE_FLAGS+= V=1
  20. endif
  21. CONFIGURE_STYLE:= gnu
  22. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  23. CONFIGURE_ARGS+= --enable-tools \
  24. --enable-alsa \
  25. --enable-usb \
  26. --enable-bccmd \
  27. --enable-hidd \
  28. --enable-pand \
  29. --enable-dund \
  30. --enable-netlink \
  31. --disable-pie \
  32. --disable-cups
  33. BUILD_STYLE:= auto
  34. INSTALL_STYLE:= auto
  35. post-install:
  36. ifneq ($(ADK_STATIC),y)
  37. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/lib
  38. ${CP} ${WRKINST}/usr/lib/libbluetooth.so.* ${IDIR_BLUEZ}/usr/lib/
  39. endif
  40. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  41. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  42. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin/
  43. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
  44. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin/
  45. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  46. $(INSTALL_DATA) ./files/main.conf \
  47. ${IDIR_BLUEZ}/etc/bluetooth/
  48. $(INSTALL_DATA) ./files/bluetooth.conf \
  49. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  50. include ${TOPDIR}/mk/pkg-bottom.mk