DEVELOPERS: add Romain Naour for linux-syscall-support
[buildroot-gz.git] / package / qt5 / qt5xmlpatterns / qt5xmlpatterns.mk
blob0b518b05295ed778d092cb8d422ac51ef16c4295
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 QT5XMLPATTERNS_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
15 QT5XMLPATTERNS_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
16 else
17 QT5XMLPATTERNS_LICENSE = Commercial license
18 QT5XMLPATTERNS_REDISTRIBUTE = NO
19 endif
21 define QT5XMLPATTERNS_CONFIGURE_CMDS
22 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
23 endef
25 define QT5XMLPATTERNS_BUILD_CMDS
26 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
27 endef
29 define QT5XMLPATTERNS_INSTALL_STAGING_CMDS
30 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
31 $(QT5_LA_PRL_FILES_FIXUP)
32 endef
34 ifeq ($(BR2_STATIC_LIBS),)
35 define QT5XMLPATTERNS_INSTALL_TARGET_LIBS
36 cp -dpf $(STAGING_DIR)/usr/lib/libQt5XmlPatterns*.so.* $(TARGET_DIR)/usr/lib
37 endef
38 endif
40 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
41 define QT5XMLPATTERNS_INSTALL_TARGET_EXAMPLES
42 cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/xmlpatterns $(TARGET_DIR)/usr/lib/qt/examples/
43 endef
44 endif
46 define QT5XMLPATTERNS_INSTALL_TARGET_CMDS
47 $(QT5XMLPATTERNS_INSTALL_TARGET_LIBS)
48 $(QT5XMLPATTERNS_INSTALL_TARGET_EXAMPLES)
49 endef
51 $(eval $(generic-package))