Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.57
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= dc29e54f1204ac4215caeeee062b26f6
  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. --enable-netlink \
  30. --disable-pie \
  31. --disable-cups
  32. BUILD_STYLE:= auto
  33. INSTALL_STYLE:= auto
  34. post-install:
  35. ifneq ($(ADK_STATIC),y)
  36. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libbluetooth.so.* ${IDIR_BLUEZ}/usr/lib/
  38. endif
  39. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  40. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  41. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin/
  42. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
  43. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin/
  44. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  45. $(INSTALL_DATA) ./files/main.conf \
  46. ${IDIR_BLUEZ}/etc/bluetooth/
  47. $(INSTALL_DATA) ./files/bluetooth.conf \
  48. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  49. include ${TOPDIR}/mk/pkg-bottom.mk