qt5: add GPLv3 and GFDLv1.3 licensing informations
[buildroot-gz.git] / package / qt5 / qt5tools / qt5tools.mk
blob6befb8b2ce0b14a6957ef6e34e52150a29b034ef
1 ################################################################################
3 # qt5tools
5 ################################################################################
7 QT5TOOLS_VERSION = $(QT5_VERSION)
8 QT5TOOLS_SITE = $(QT5_SITE)
9 QT5TOOLS_SOURCE = qttools-opensource-src-$(QT5BASE_VERSION).tar.xz
11 QT5TOOLS_DEPENDENCIES = qt5base
12 QT5TOOLS_INSTALL_STAGING = YES
14 # linguist tools compile conditionally on qtHaveModule(qmldevtools-private),
15 # but the condition is used only used to decide if lupdate will support
16 # parsing qml files (via setting QT_NO_QML define), no linking against
17 # target qt5 will happen
18 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
19 QT5TOOLS_DEPENDENCIES += qt5declarative
20 endif
22 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
23 QT5TOOLS_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
24 QT5TOOLS_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
25 else
26 QT5TOOLS_LICENSE = Commercial license
27 QT5TOOLS_REDISTRIBUTE = NO
28 endif
30 QT5TOOLS_BUILD_DIRS_$(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS) += \
31 linguist/lconvert linguist/lrelease linguist/lupdate
32 ifeq ($(BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS),y)
33 # use install target to copy cmake module files
34 define QT5TOOLS_INSTALL_STAGING_CMDS
35 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src/linguist install
36 endef
37 endif
39 QT5TOOLS_BUILD_DIRS_$(BR2_PACKAGE_QT5TOOLS_PIXELTOOL) += pixeltool
40 QT5TOOLS_INSTALL_TARGET_$(BR2_PACKAGE_QT5TOOLS_PIXELTOOL) += pixeltool
42 QT5TOOLS_BUILD_DIRS_$(BR2_PACKAGE_QT5TOOLS_QTDIAG) += qtdiag
43 QT5TOOLS_INSTALL_TARGET_$(BR2_PACKAGE_QT5TOOLS_QTDIAG) += qtdiag
45 QT5TOOLS_BUILD_DIRS_$(BR2_PACKAGE_QT5TOOLS_QTPATHS) += qtpaths
46 QT5TOOLS_INSTALL_TARGET_$(BR2_PACKAGE_QT5TOOLS_QTPATHS) += qtpaths
48 QT5TOOLS_BUILD_DIRS_$(BR2_PACKAGE_QT5TOOLS_QTPLUGININFO) += qtplugininfo
49 QT5TOOLS_INSTALL_TARGET_$(BR2_PACKAGE_QT5TOOLS_QTPLUGININFO) += qtplugininfo
51 define QT5TOOLS_CONFIGURE_CMDS
52 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
53 endef
55 define QT5TOOLS_BUILD_CMDS
56 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) sub-src-qmake_all
57 $(foreach p,$(QT5TOOLS_BUILD_DIRS_y), \
58 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src/$(p)$(sep))
59 endef
61 define QT5TOOLS_INSTALL_TARGET_CMDS
62 $(foreach p,$(QT5TOOLS_INSTALL_TARGET_y), \
63 $(INSTALL) -D -m0755 $(@D)/bin/$(p) $(TARGET_DIR)/usr/bin/$(p)$(sep))
64 endef
66 $(eval $(generic-package))