2
1

qt5serialbus.mk 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ################################################################################
  2. #
  3. # qt5serialbus
  4. #
  5. ################################################################################
  6. QT5SERIALBUS_VERSION = $(QT5_VERSION)
  7. QT5SERIALBUS_SITE = $(QT5_SITE)
  8. QT5SERIALBUS_SOURCE = qtserialbus-$(QT5_SOURCE_TARBALL_PREFIX)-$(QT5SERIALBUS_VERSION).tar.xz
  9. QT5SERIALBUS_DEPENDENCIES = qt5base qt5serialport
  10. QT5SERIALBUS_INSTALL_STAGING = YES
  11. QT5SERIALBUS_LICENSE = GPL-2.0 or GPL-3.0 or LGPL-3.0, GFDL-1.3 (docs)
  12. QT5SERIALBUS_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv3 LICENSE.FDL
  13. define QT5SERIALBUS_CONFIGURE_CMDS
  14. (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/bin/qmake)
  15. endef
  16. define QT5SERIALBUS_BUILD_CMDS
  17. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
  18. endef
  19. define QT5SERIALBUS_INSTALL_STAGING_CMDS
  20. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
  21. $(QT5_LA_PRL_FILES_FIXUP)
  22. endef
  23. ifeq ($(BR2_STATIC_LIBS),)
  24. define QT5SERIALBUS_INSTALL_TARGET_LIBS
  25. cp -dpf $(STAGING_DIR)/usr/lib/libQt5SerialBus.so.* \
  26. $(TARGET_DIR)/usr/lib
  27. mkdir -p $(TARGET_DIR)/usr/lib/qt/plugins/canbus
  28. cp -dpf $(STAGING_DIR)/usr/lib/qt/plugins/canbus/*.so \
  29. $(TARGET_DIR)/usr/lib/qt/plugins/canbus
  30. endef
  31. endif
  32. ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES)$(BR2_PACKAGE_QT5BASE_WIDGETS),yy)
  33. define QT5SERIALBUS_INSTALL_TARGET_EXAMPLES
  34. cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/serialbus $(TARGET_DIR)/usr/lib/qt/examples/
  35. endef
  36. endif
  37. define QT5SERIALBUS_INSTALL_TARGET_CMDS
  38. $(QT5SERIALBUS_INSTALL_TARGET_LIBS)
  39. $(QT5SERIALBUS_INSTALL_TARGET_EXAMPLES)
  40. $(INSTALL) -m 0755 -D $(@D)/bin/canbusutil \
  41. $(TARGET_DIR)/usr/bin/canbusutil
  42. endef
  43. $(eval $(generic-package))