gst1-plugins-base: bump to version 1.10.4
[buildroot-gz.git] / package / qt5 / qt5declarative / qt5declarative.mk
blobfb546bd73bd0800810958c7f12958e612d07017f
1 ################################################################################
3 # qt5declarative
5 ################################################################################
7 QT5DECLARATIVE_VERSION = $(QT5_VERSION)
8 QT5DECLARATIVE_SITE = $(QT5_SITE)
9 QT5DECLARATIVE_SOURCE = qtdeclarative-opensource-src-$(QT5DECLARATIVE_VERSION).tar.xz
10 QT5DECLARATIVE_DEPENDENCIES = qt5base qt5xmlpatterns
11 QT5DECLARATIVE_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
15 QT5DECLARATIVE_LICENSE = GPLv2+ or LGPLv3, GPLv3 with exception(tools), GFDLv1.3 (docs)
16 QT5DECLARATIVE_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
17 else
18 QT5DECLARATIVE_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
19 QT5DECLARATIVE_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
20 endif
21 else
22 QT5DECLARATIVE_LICENSE = Commercial license
23 QT5DECLARATIVE_REDISTRIBUTE = NO
24 endif
26 define QT5DECLARATIVE_CONFIGURE_CMDS
27 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
28 endef
30 define QT5DECLARATIVE_BUILD_CMDS
31 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
32 sub-src-all sub-tools-all
33 endef
35 define QT5DECLARATIVE_INSTALL_STAGING_CMDS
36 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
37 sub-src-install_subtargets \
38 sub-tools-install_subtargets
39 $(QT5_LA_PRL_FILES_FIXUP)
40 endef
42 ifeq ($(BR2_STATIC_LIBS),)
44 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
45 define QT5DECLARATIVE_INSTALL_TARGET_QUICK_LIBS
46 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Quick*.so.* $(TARGET_DIR)/usr/lib
47 endef
48 endif
50 define QT5DECLARATIVE_INSTALL_TARGET_LIBS
51 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Qml*.so.* $(TARGET_DIR)/usr/lib
52 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/qml* $(TARGET_DIR)/usr/lib/qt/plugins
53 $(QT5DECLARATIVE_INSTALL_TARGET_QUICK_LIBS)
54 endef
56 endif
58 define QT5DECLARATIVE_INSTALL_TARGET_CMDS
59 cp -dpf $(STAGING_DIR)/usr/bin/qml* $(TARGET_DIR)/usr/bin
60 cp -dpfr $(STAGING_DIR)/usr/qml $(TARGET_DIR)/usr
61 $(QT5DECLARATIVE_INSTALL_TARGET_LIBS)
62 endef
64 $(eval $(generic-package))