board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / qt5 / qt5svg / qt5svg.mk
blob08821e486e004bd7f607295dc32f2f3ed8ad7a93
1 ################################################################################
3 # qt5svg
5 ################################################################################
7 QT5SVG_VERSION = $(QT5_VERSION)
8 QT5SVG_SITE = $(QT5_SITE)
9 QT5SVG_SOURCE = qtsvg-opensource-src-$(QT5SVG_VERSION).tar.xz
10 QT5SVG_DEPENDENCIES = qt5base
11 QT5SVG_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
15 QT5SVG_LICENSE = GPLv2+ or LGPLv3, GPLv3 with exception(tools), GFDLv1.3 (docs)
16 QT5SVG_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPLv3 LICENSE.LGPLv3 LICENSE.FDL
17 else
18 QT5SVG_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
19 QT5SVG_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
20 endif
21 else
22 QT5SVG_LICENSE = Commercial license
23 QT5SVG_REDISTRIBUTE = NO
24 endif
26 define QT5SVG_CONFIGURE_CMDS
27 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
28 endef
30 define QT5SVG_BUILD_CMDS
31 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
32 endef
34 define QT5SVG_INSTALL_STAGING_CMDS
35 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
36 $(QT5_LA_PRL_FILES_FIXUP)
37 endef
39 ifeq ($(BR2_PACKAGE_QT5BASE_WIDGETS),y)
40 define QT5SVG_INSTALL_ICONENGINES
41 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/iconengines $(TARGET_DIR)/usr/lib/qt/plugins
42 endef
43 endif
45 ifeq ($(BR2_STATIC_LIBS),)
46 define QT5SVG_INSTALL_TARGET_CMDS
47 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Svg*.so.* $(TARGET_DIR)/usr/lib
48 cp -dpf $(STAGING_DIR)/usr/lib/qt/plugins/imageformats/libqsvg.so $(TARGET_DIR)/usr/lib/qt/plugins/imageformats/
49 $(QT5SVG_INSTALL_ICONENGINES)
50 endef
51 endif
53 $(eval $(generic-package))