qt5: add GPLv3 and GFDLv1.3 licensing informations
[buildroot-gz.git] / package / qt5 / qt5websockets / qt5websockets.mk
blobf1200c283a343dbefda5d44fdb14e09b861c0d8e
1 ################################################################################
3 # qt5websockets
5 ################################################################################
7 QT5WEBSOCKETS_VERSION = $(QT5_VERSION)
8 QT5WEBSOCKETS_SITE = $(QT5_SITE)
9 QT5WEBSOCKETS_SOURCE = qtwebsockets-opensource-src-$(QT5WEBSOCKETS_VERSION).tar.xz
10 QT5WEBSOCKETS_DEPENDENCIES = qt5base
11 QT5WEBSOCKETS_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 QT5WEBSOCKETS_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3
15 QT5WEBSOCKETS_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3
16 else
17 QT5WEBSOCKETS_LICENSE = Commercial license
18 QT5WEBSOCKETS_REDISTRIBUTE = NO
19 endif
21 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
22 QT5WEBSOCKETS_DEPENDENCIES += qt5declarative
23 endif
25 define QT5WEBSOCKETS_CONFIGURE_CMDS
26 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
27 endef
29 define QT5WEBSOCKETS_BUILD_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
31 endef
33 define QT5WEBSOCKETS_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
35 $(QT5_LA_PRL_FILES_FIXUP)
36 endef
38 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
39 define QT5WEBSOCKETS_INSTALL_TARGET_QMLS
40 cp -dpfr $(STAGING_DIR)/usr/qml/Qt/WebSockets $(TARGET_DIR)/usr/qml/Qt/
41 endef
42 endif
44 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
45 define QT5WEBSOCKETS_INSTALL_TARGET_EXAMPLES
46 cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/websockets $(TARGET_DIR)/usr/lib/qt/examples/
47 endef
48 endif
50 ifneq ($(BR2_STATIC_LIBS),y)
51 define QT5WEBSOCKETS_INSTALL_TARGET_LIBS
52 cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebSockets.so.* $(TARGET_DIR)/usr/lib
53 endef
54 endif
56 define QT5WEBSOCKETS_INSTALL_TARGET_CMDS
57 $(QT5WEBSOCKETS_INSTALL_TARGET_LIBS)
58 $(QT5WEBSOCKETS_INSTALL_TARGET_QMLS)
59 endef
61 $(eval $(generic-package))