Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_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. post-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