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
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
|
|
|
|
QT5MULTIMEDIA_LICENSE = LGPLv2.1 or GPLv3.0
|
2014-06-13 15:38:12 +02:00
|
|
|
QT5MULTIMEDIA_LICENSE_FILES = LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt
|
2013-04-07 11:57:25 +02:00
|
|
|
else
|
|
|
|
QT5MULTIMEDIA_LICENSE = Commercial license
|
|
|
|
QT5MULTIMEDIA_REDISTRIBUTE = NO
|
|
|
|
endif
|
|
|
|
|
2014-01-24 15:06:20 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE),y)
|
|
|
|
QT5MULTIMEDIA_DEPENDENCIES += gst-plugins-base
|
|
|
|
endif
|
|
|
|
|
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),)
|
2014-01-24 15:06:20 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE),y)
|
|
|
|
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
|
|
|
|
|
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)
|
2013-04-07 11:57:25 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|