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.56
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 92ea2e86a5489f0d16567920f2ec9b36
  8. PKG_DESCR:= bluetooth libraries and applications
  9. PKG_SECTION:= bluetooth
  10. PKG_DEPENDS:= kmod-bluetooth
  11. PKG_URL:= http://www.bluez.org
  12. PKG_SITES:= ${MASTER_SITE_KERNEL:=bluetooth/}
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,BLUEZ,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. ifeq ($(ADK_STATIC),y)
  16. XAKE_FLAGS+= V=1 CCLD="$(TARGET_CC) -all-static -pthread"
  17. else
  18. XAKE_FLAGS+= V=1
  19. endif
  20. CONFIGURE_STYLE:= gnu
  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. --disable-cups
  30. BUILD_STYLE:= auto
  31. INSTALL_STYLE:= auto
  32. post-install:
  33. ifeq ($(ADK_STATIC),n)
  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. ${CP} ${WRKINST}/etc/bluetooth/rfcomm.conf \
  44. ${IDIR_BLUEZ}/etc/bluetooth/
  45. $(INSTALL_DATA) $(WRKINST)/etc/dbus-1/system.d/bluetooth.conf \
  46. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  47. include ${TOPDIR}/mk/pkg-bottom.mk