gst1-plugins-base: bump to version 1.10.4
[buildroot-gz.git] / package / qt5 / qt5webchannel / qt5webchannel.mk
blob9522a745acc459cc891f3eb59117825479c00743
1 ################################################################################
3 # qt5webchannel
5 ################################################################################
7 QT5WEBCHANNEL_VERSION = $(QT5_VERSION)
8 QT5WEBCHANNEL_SITE = $(QT5_SITE)
9 QT5WEBCHANNEL_SOURCE = qtwebchannel-opensource-src-$(QT5WEBCHANNEL_VERSION).tar.xz
10 QT5WEBCHANNEL_DEPENDENCIES = qt5base qt5websockets
11 QT5WEBCHANNEL_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
15 QT5WEBCHANNEL_LICENSE = GPLv2+ or LGPLv3, GPLv3 with exception(tools), GFDLv1.3 (docs)
16 QT5WEBCHANNEL_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
17 else
18 QT5WEBCHANNEL_LICENSE = GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
19 QT5WEBCHANNEL_LICENSE_FILES = LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
20 endif
21 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
22 QT5WEBCHANNEL_LICENSE := $(QT5WEBCHANNEL_LICENSE), BSD-3c (examples)
23 endif
24 else
25 QT5WEBCHANNEL_LICENSE = Commercial license
26 QT5WEBCHANNEL_REDISTRIBUTE = NO
27 endif
29 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
30 QT5WEBCHANNEL_DEPENDENCIES += qt5declarative
31 endif
33 define QT5WEBCHANNEL_CONFIGURE_CMDS
34 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
35 endef
37 define QT5WEBCHANNEL_BUILD_CMDS
38 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
39 endef
41 define QT5WEBCHANNEL_INSTALL_STAGING_CMDS
42 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
43 $(QT5_LA_PRL_FILES_FIXUP)
44 endef
46 define QT5WEBCHANNEL_INSTALL_TARGET_JAVASCRIPT
47 $(INSTALL) -m 0644 -D $(@D)/src/webchannel/qwebchannel.js \
48 $(TARGET_DIR)/var/www/qwebchannel.js
49 endef
51 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
52 define QT5WEBCHANNEL_INSTALL_TARGET_QMLS
53 cp -dpfr $(STAGING_DIR)/usr/qml/QtWebChannel $(TARGET_DIR)/usr/qml/
54 endef
55 endif
57 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
58 define QT5WEBCHANNEL_INSTALL_TARGET_EXAMPLES
59 cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/webchannel $(TARGET_DIR)/usr/lib/qt/examples/
60 endef
61 endif
63 ifneq ($(BR2_STATIC_LIBS),y)
64 define QT5WEBCHANNEL_INSTALL_TARGET_LIBS
65 cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebChannel.so.* $(TARGET_DIR)/usr/lib
66 endef
67 endif
69 define QT5WEBCHANNEL_INSTALL_TARGET_CMDS
70 $(QT5WEBCHANNEL_INSTALL_TARGET_LIBS)
71 $(QT5WEBCHANNEL_INSTALL_TARGET_QMLS)
72 $(QT5WEBCHANNEL_INSTALL_TARGET_JAVASCRIPT)
73 $(QT5WEBCHANNEL_INSTALL_TARGET_EXAMPLES)
74 endef
76 $(eval $(generic-package))