toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / qt5 / qt5multimedia / qt5multimedia.mk
blob67e79686cbac579e539f729083cbdb5ccf1ff220
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 QT5MULTIMEDIA_LICENSE = GPLv3 or LGPLv2.1 with exception or LGPLv3, GFDLv1.3 (docs)
15 QT5MULTIMEDIA_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
16 else
17 QT5MULTIMEDIA_LICENSE = Commercial license
18 QT5MULTIMEDIA_REDISTRIBUTE = NO
19 endif
21 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
22 QT5MULTIMEDIA_DEPENDENCIES += gst1-plugins-base
23 endif
25 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
26 QT5MULTIMEDIA_DEPENDENCIES += qt5declarative
27 endif
29 define QT5MULTIMEDIA_CONFIGURE_CMDS
30 (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
31 endef
33 define QT5MULTIMEDIA_BUILD_CMDS
34 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
35 endef
37 define QT5MULTIMEDIA_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 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
44 define QT5MULTIMEDIA_INSTALL_TARGET_QGSTTOOLS_LIB
45 cp -dpf $(STAGING_DIR)/usr/lib/libqgsttools*.so.* $(TARGET_DIR)/usr/lib
46 endef
47 endif
49 define QT5MULTIMEDIA_INSTALL_TARGET_LIBS
50 cp -dpf $(STAGING_DIR)/usr/lib/libQt5Multimedia*.so.* $(TARGET_DIR)/usr/lib
51 cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/* $(TARGET_DIR)/usr/lib/qt/plugins
52 $(QT5MULTIMEDIA_INSTALL_TARGET_QGSTTOOLS_LIB)
53 endef
54 endif
56 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
57 define QT5MULTIMEDIA_INSTALL_TARGET_QMLS
58 cp -dpfr $(STAGING_DIR)/usr/qml/QtMultimedia $(TARGET_DIR)/usr/qml/
59 endef
60 endif
62 define QT5MULTIMEDIA_INSTALL_TARGET_CMDS
63 $(QT5MULTIMEDIA_INSTALL_TARGET_LIBS)
64 $(QT5MULTIMEDIA_INSTALL_TARGET_QMLS)
65 endef
67 $(eval $(generic-package))