python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / qt5 / qt5quickcontrols2 / qt5quickcontrols2.mk
blobf6aca2cd46a25dc627f825bb47f449222c444f86
1 ################################################################################
3 # qt5quickcontrols2
5 ################################################################################
7 QT5QUICKCONTROLS2_VERSION = $(QT5_VERSION)
8 QT5QUICKCONTROLS2_SITE = $(QT5_SITE)
9 QT5QUICKCONTROLS2_SOURCE = qtquickcontrols2-opensource-src-$(QT5QUICKCONTROLS2_VERSION).tar.xz
10 QT5QUICKCONTROLS2_DEPENDENCIES = qt5base qt5declarative
11 QT5QUICKCONTROLS2_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 QT5QUICKCONTROLS2_LICENSE = GPLv3 or LGPLv3, GFDLv1.3 (docs)
15 QT5QUICKCONTROLS2_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv3 LICENSE.FDL
16 else
17 QT5QUICKCONTROLS2_LICENSE = Commercial license
18 QT5QUICKCONTROLS2_REDISTRIBUTE = NO
19 endif
21 define QT5QUICKCONTROLS2_CONFIGURE_CMDS
22 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
23 endef
25 define QT5QUICKCONTROLS2_BUILD_CMDS
26 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
27 endef
29 define QT5QUICKCONTROLS2_INSTALL_STAGING_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
31 endef
33 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
34 define QT5QUICKCONTROLS2_INSTALL_TARGET_EXAMPLES
35 cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/quickcontrols2 $(TARGET_DIR)/usr/lib/qt/examples/
36 endef
37 endif
39 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
40 define QT5QUICKCONTROLS2_INSTALL_TARGET_CMDS
41 cp -dpf $(STAGING_DIR)/usr/lib/libQt5QuickTemplates2.so.* $(TARGET_DIR)/usr/lib
42 cp -dpf $(STAGING_DIR)/usr/lib/libQt5QuickControls2.so.* $(TARGET_DIR)/usr/lib
43 cp -dpfr $(STAGING_DIR)/usr/qml/Qt/labs/calendar $(TARGET_DIR)/usr/qml/Qt/labs
44 cp -dpfr $(STAGING_DIR)/usr/qml/Qt/labs/platform $(TARGET_DIR)/usr/qml/Qt/labs
45 cp -dpfr $(STAGING_DIR)/usr/qml/QtQuick/Controls.2 $(TARGET_DIR)/usr/qml/QtQuick
46 cp -dpfr $(STAGING_DIR)/usr/qml/QtQuick/Templates.2 $(TARGET_DIR)/usr/qml/QtQuick
47 $(QT5QUICKCONTROLS2_INSTALL_TARGET_EXAMPLES)
48 endef
49 else
50 define QT5QUICKCONTROLS2_INSTALL_TARGET_CMDS
51 cp -dpf $(STAGING_DIR)/usr/lib/libQt5LabsTemplates.so.* $(TARGET_DIR)/usr/lib
52 cp -dpfr $(STAGING_DIR)/usr/qml/Qt/labs/controls $(TARGET_DIR)/usr/qml/Qt/labs
53 cp -dpfr $(STAGING_DIR)/usr/qml/Qt/labs/calendar $(TARGET_DIR)/usr/qml/Qt/labs
54 cp -dpfr $(STAGING_DIR)/usr/qml/Qt/labs/templates $(TARGET_DIR)/usr/qml/Qt/labs
55 $(QT5QUICKCONTROLS2_INSTALL_TARGET_EXAMPLES)
56 endef
57 endif
59 $(eval $(generic-package))