2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-07 11:57:25 +02:00
|
|
|
#
|
|
|
|
# qt5multimedia
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-07 11:57:25 +02:00
|
|
|
|
|
|
|
QT5MULTIMEDIA_VERSION = $(QT5_VERSION)
|
2013-04-15 05:11:19 +02:00
|
|
|
QT5MULTIMEDIA_SITE = $(QT5_SITE)
|
2013-04-07 11:57:25 +02:00
|
|
|
QT5MULTIMEDIA_SOURCE = qtmultimedia-opensource-src-$(QT5MULTIMEDIA_VERSION).tar.xz
|
2014-07-19 19:33:23 +02:00
|
|
|
QT5MULTIMEDIA_DEPENDENCIES = qt5base
|
2013-04-07 11:57:25 +02:00
|
|
|
QT5MULTIMEDIA_INSTALL_STAGING = YES
|
|
|
|
|
2017-02-11 12:05:29 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
2017-03-30 15:43:43 +02:00
|
|
|
QT5MULTIMEDIA_LICENSE = GPL-2.0+ or LGPL-3.0, GPL-3.0 with exception(tools), GFDL-1.3 (docs)
|
2017-01-31 08:59:03 +01:00
|
|
|
QT5MULTIMEDIA_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPLv3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
|
|
|
|
else
|
2017-03-30 15:43:43 +02:00
|
|
|
QT5MULTIMEDIA_LICENSE = GPL-3.0 or LGPL-2.1 with exception or LGPL-3.0, GFDL-1.3 (docs)
|
2016-03-21 12:00:12 +01:00
|
|
|
QT5MULTIMEDIA_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
|
2017-01-31 08:59:03 +01:00
|
|
|
endif
|
2013-04-07 11:57:25 +02:00
|
|
|
|
2015-08-27 18:34:14 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
|
|
|
|
QT5MULTIMEDIA_DEPENDENCIES += gst1-plugins-base
|
|
|
|
endif
|
2014-01-24 15:06:20 +01:00
|
|
|
|
2014-07-19 19:33:23 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
|
|
|
|
QT5MULTIMEDIA_DEPENDENCIES += qt5declarative
|
|
|
|
endif
|
|
|
|
|
2013-04-07 11:57:25 +02:00
|
|
|
define QT5MULTIMEDIA_CONFIGURE_CMDS
|
2014-03-19 20:30:06 +01:00
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
|
2013-04-07 11:57:25 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define QT5MULTIMEDIA_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define QT5MULTIMEDIA_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
|
|
|
|
$(QT5_LA_PRL_FILES_FIXUP)
|
|
|
|
endef
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),)
|
2015-10-21 10:06:30 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
|
2014-01-24 15:06:20 +01:00
|
|
|
define QT5MULTIMEDIA_INSTALL_TARGET_QGSTTOOLS_LIB
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libqgsttools*.so.* $(TARGET_DIR)/usr/lib
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2013-04-07 11:57:25 +02:00
|
|
|
define QT5MULTIMEDIA_INSTALL_TARGET_LIBS
|
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libQt5Multimedia*.so.* $(TARGET_DIR)/usr/lib
|
|
|
|
cp -dpfr $(STAGING_DIR)/usr/lib/qt/plugins/* $(TARGET_DIR)/usr/lib/qt/plugins
|
2014-01-24 15:06:20 +01:00
|
|
|
$(QT5MULTIMEDIA_INSTALL_TARGET_QGSTTOOLS_LIB)
|
2013-04-07 11:57:25 +02:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2014-07-21 13:16:50 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
|
|
|
|
define QT5MULTIMEDIA_INSTALL_TARGET_QMLS
|
|
|
|
cp -dpfr $(STAGING_DIR)/usr/qml/QtMultimedia $(TARGET_DIR)/usr/qml/
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2017-01-20 17:46:22 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
|
|
|
|
define QT5MULTIMEDIA_INSTALL_TARGET_EXAMPLES
|
2017-03-19 10:59:50 +01:00
|
|
|
cp -dpfr $(STAGING_DIR)/usr/lib/qt/examples/multimedia* $(TARGET_DIR)/usr/lib/qt/examples/
|
2017-01-20 17:46:22 +01:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2013-04-07 11:57:25 +02:00
|
|
|
define QT5MULTIMEDIA_INSTALL_TARGET_CMDS
|
|
|
|
$(QT5MULTIMEDIA_INSTALL_TARGET_LIBS)
|
2014-07-21 13:16:50 +02:00
|
|
|
$(QT5MULTIMEDIA_INSTALL_TARGET_QMLS)
|
2017-01-20 17:46:22 +01:00
|
|
|
$(QT5MULTIMEDIA_INSTALL_TARGET_EXAMPLES)
|
2013-04-07 11:57:25 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|