board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / qt5 / qt5xmlpatterns / qt5xmlpatterns.mk
blobe5981af532b6ee002b8c6e412f5de5c4cba5c6bd
1 ################################################################################
3 # qt5xmlpatterns
5 ################################################################################
7 QT5XMLPATTERNS_VERSION = $(QT5_VERSION)
8 QT5XMLPATTERNS_SITE = $(QT5_SITE)
9 QT5XMLPATTERNS_SOURCE = qtxmlpatterns-opensource-src-$(QT5XMLPATTERNS_VERSION).tar.xz
10 QT5XMLPATTERNS_DEPENDENCIES = qt5base
11 QT5XMLPATTERNS_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
15 QT5XMLPATTERNS_LICENSE = GPLv2+ or LGPLv3, GPLv3 with exception(tools), GFDLv1.3 (docs)
16 QT5XMLPATTERNS_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
17 else
18 QT5XMLPATTERNS_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
19 QT5XMLPATTERNS_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
20 endif
21 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
22 QT5XMLPATTERNS_LICENSE := $(QT5XMLPATTERNS_LICENSE), BSD-3c (examples)
23 endif
24 else
25 QT5XMLPATTERNS_LICENSE = Commercial license
26 QT5XMLPATTERNS_REDISTRIBUTE = NO
27 endif
29 define QT5XMLPATTERNS_CONFIGURE_CMDS
30 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
31 endef
33 define QT5XMLPATTERNS_BUILD_CMDS
34 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
35 endef
37 define QT5XMLPATTERNS_INSTALL_STAGING_CMDS
38 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
39 $(QT5_LA_PRL_FILES_FIXUP)
40 endef
42 ifeq ($(BR2_STATIC_LIBS),)
43 define QT5XMLPATTERNS_INSTALL_TARGET_LIBS
44 cp -dpf $(STAGING_DIR)/usr/lib/libQt5XmlPatterns*.so.* $(TARGET_DIR)/usr/lib
45 endef
46 endif
48 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
49 define QT5XMLPATTERNS_INSTALL_TARGET_EXAMPLES
50 cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/xmlpatterns $(TARGET_DIR)/usr/lib/qt/examples/
51 endef
52 endif
54 define QT5XMLPATTERNS_INSTALL_TARGET_CMDS
55 $(QT5XMLPATTERNS_INSTALL_TARGET_LIBS)
56 $(QT5XMLPATTERNS_INSTALL_TARGET_EXAMPLES)
57 endef
59 $(eval $(generic-package))