python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / qt5 / qt5multimedia / qt5multimedia.mk
blobfccdd5d64bb674927284187f0b66180bf38a8b6c
1 ################################################################################
3 # qt5multimedia
5 ################################################################################
7 QT5MULTIMEDIA_VERSION = $(QT5_VERSION)
8 QT5MULTIMEDIA_SITE = $(QT5_SITE)
9 QT5MULTIMEDIA_SOURCE = qtmultimedia-opensource-src-$(QT5MULTIMEDIA_VERSION).tar.xz
10 QT5MULTIMEDIA_DEPENDENCIES = qt5base
11 QT5MULTIMEDIA_INSTALL_STAGING = YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
14 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
15 QT5MULTIMEDIA_LICENSE = GPLv2+ or LGPLv3, GPLv3 with exception(tools), GFDLv1.3 (docs)
16 QT5MULTIMEDIA_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
17 else
18 QT5MULTIMEDIA_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
19 QT5MULTIMEDIA_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
20 endif
21 else
22 QT5MULTIMEDIA_LICENSE = Commercial license
23 QT5MULTIMEDIA_REDISTRIBUTE = NO
24 endif
26 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
27 QT5MULTIMEDIA_DEPENDENCIES += gst1-plugins-base
28 endif
30 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
31 QT5MULTIMEDIA_DEPENDENCIES += qt5declarative
32 endif
34 define QT5MULTIMEDIA_CONFIGURE_CMDS
35 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
36 endef
38 define QT5MULTIMEDIA_BUILD_CMDS
39 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
40 endef
42 define QT5MULTIMEDIA_INSTALL_STAGING_CMDS
43 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
44 $(QT5_LA_PRL_FILES_FIXUP)
45 endef
47 ifeq ($(BR2_STATIC_LIBS),)
48 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
49 define QT5MULTIMEDIA_INSTALL_TARGET_QGSTTOOLS_LIB
50 cp -dpf $(STAGING_DIR)/usr/lib/libqgsttools*.so.* $(TARGET_DIR)/usr/lib
51 endef
52 endif
54 define QT5MULTIMEDIA_INSTALL_TARGET_LIBS
55 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Multimedia*.so.* $(TARGET_DIR)/usr/lib
56 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/* $(TARGET_DIR)/usr/lib/qt/plugins
57 $(QT5MULTIMEDIA_INSTALL_TARGET_QGSTTOOLS_LIB)
58 endef
59 endif
61 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
62 define QT5MULTIMEDIA_INSTALL_TARGET_QMLS
63 cp -dpfr $(STAGING_DIR)/usr/qml/QtMultimedia $(TARGET_DIR)/usr/qml/
64 endef
65 endif
67 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
68 define QT5MULTIMEDIA_INSTALL_TARGET_EXAMPLES
69 cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/multimedia* $(TARGET_DIR)/usr/lib/qt/examples/
70 endef
71 endif
73 define QT5MULTIMEDIA_INSTALL_TARGET_CMDS
74 $(QT5MULTIMEDIA_INSTALL_TARGET_LIBS)
75 $(QT5MULTIMEDIA_INSTALL_TARGET_QMLS)
76 $(QT5MULTIMEDIA_INSTALL_TARGET_EXAMPLES)
77 endef
79 $(eval $(generic-package))