python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / qt5 / qt5serialbus / qt5serialbus.mk
blobb188f5d85d68e3500b853db3ca70aa8a32b0ec8f
1 ################################################################################
3 # qt5serialbus
5 ################################################################################
7 QT5SERIALBUS_VERSION = $(QT5_VERSION)
8 QT5SERIALBUS_SITE = $(QT5_SITE)
9 QT5SERIALBUS_SOURCE = qtserialbus-opensource-src-$(QT5SERIALBUS_VERSION).tar.xz
10 QT5SERIALBUS_DEPENDENCIES = qt5base qt5serialport
11 QT5SERIALBUS_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 QT5SERIALBUS_LICENSE = GPLv2 or GPLv3 or LGPLv3, GFDLv1.3 (docs)
15 QT5SERIALBUS_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv3 LICENSE.FDL
16 else
17 QT5SERIALBUS_LICENSE = Commercial license
18 QT5SERIALBUS_REDISTRIBUTE = NO
19 endif
21 define QT5SERIALBUS_CONFIGURE_CMDS
22 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
23 endef
25 define QT5SERIALBUS_BUILD_CMDS
26 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
27 endef
29 define QT5SERIALBUS_INSTALL_STAGING_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
31 $(QT5_LA_PRL_FILES_FIXUP)
32 endef
34 ifeq ($(BR2_STATIC_LIBS),)
35 define QT5SERIALBUS_INSTALL_TARGET_LIBS
36 cp -dpf $(STAGING_DIR)/usr/lib/libQt5SerialBus.so.* \
37 $(TARGET_DIR)/usr/lib
38 mkdir -p $(TARGET_DIR)/usr/lib/qt/plugins/canbus
39 cp -dpf $(STAGING_DIR)/usr/lib/qt/plugins/canbus/*.so \
40 $(TARGET_DIR)/usr/lib/qt/plugins/canbus
41 endef
42 endif
44 define QT5SERIALBUS_INSTALL_TARGET_CMDS
45 $(QT5SERIALBUS_INSTALL_TARGET_LIBS)
46 $(INSTALL) -m 0755 -D $(@D)/bin/canbusutil \
47 $(TARGET_DIR)/usr/bin/canbusutil
48 endef
50 $(eval $(generic-package))