Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.101
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= fb42cb7038c380eb0e2fa208987c96ad
  8. PKG_DESCR:= bluetooth applications
  9. PKG_SECTION:= bluetooth
  10. PKG_DEPENDS:= kmod-bt libbluetooth
  11. PKG_URL:= http://www.bluez.org/
  12. PKG_SITES:= http://mirror.anl.gov/pub/linux/bluetooth/
  13. PKG_LIBNAME:= libbluetooth
  14. PKG_OPTS:= dev
  15. PKG_SUBPKGS:= BLUEZ LIBBLUETOOTH
  16. PKGSC_LIBBLUETOOTH:= libs
  17. PKGSD_LIBBLUETOOTH:= bluetooth libraries
  18. PKGSS_LIBBLUETOOTH:= glib libusb dbus libusb-compat
  19. PKGSB_LIBBLUETOOTH:= glib libusb dbus libusb-compat
  20. PKG_ARCH_DEPENDS:= !avr32
  21. ifeq ($(ADK_STATIC),y)
  22. PKG_OPTS+= libmix
  23. endif
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,BLUEZ,bluez,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,LIBBLUETOOTH,libbluetooth,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBBLUETOOTH},${PKGSD_LIBBLUETOOTH},${PKGSC_LIBBLUETOOTH},${PKG_OPTS}))
  27. ifeq ($(ADK_STATIC),y)
  28. XAKE_FLAGS+= CCLD="$(TARGET_CC) -all-static -pthread"
  29. endif
  30. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  31. CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
  32. CONFIGURE_ARGS+= --enable-tools \
  33. --enable-alsa \
  34. --enable-usb \
  35. --enable-bccmd \
  36. --enable-hidd \
  37. --enable-pand \
  38. --enable-dund \
  39. --enable-netlink \
  40. --disable-pie \
  41. --disable-cups
  42. bluez-install:
  43. ${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
  44. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
  45. ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin
  46. ${INSTALL_DIR} ${IDIR_BLUEZ}/usr/sbin
  47. ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ}/usr/sbin
  48. ${INSTALL_DIR} ${IDIR_BLUEZ}/etc/bluetooth
  49. $(INSTALL_DATA) ./files/main.conf \
  50. ${IDIR_BLUEZ}/etc/bluetooth
  51. $(INSTALL_DATA) ./files/bluetooth.conf \
  52. $(IDIR_BLUEZ)/etc/dbus-1/system.d
  53. libbluetooth-install:
  54. ${INSTALL_DIR} ${IDIR_LIBBLUETOOTH}/usr/lib
  55. ${CP} ${WRKINST}/usr/lib/libbluetooth.so* ${IDIR_LIBBLUETOOTH}/usr/lib
  56. include ${TOPDIR}/mk/pkg-bottom.mk