Patchwork qt5multimedia: install gsttools library to target

login
register
mail settings
Submitter Fatih Aşıcı
Date Jan. 24, 2014, 2:06 p.m.
Message ID <1390572380-28031-1-git-send-email-fatih.asici@gmail.com>
Download mbox | patch
Permalink /patch/313907/
State Accepted
Headers show

Comments

Fatih Aşıcı - Jan. 24, 2014, 2:06 p.m.
It is built when gst-plugins-base is selected.

Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>
Noticed-by: Paweł Gibaszek <gibol666@gmail.com>
---
 package/qt5/qt5multimedia/qt5multimedia.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)
Thomas Petazzoni - March 1, 2014, 11:29 p.m.
Dear Fatih Aşıcı,

On Fri, 24 Jan 2014 16:06:20 +0200, Fatih Aşıcı wrote:
> It is built when gst-plugins-base is selected.
> 
> Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>
> Noticed-by: Paweł Gibaszek <gibol666@gmail.com>
> ---
>  package/qt5/qt5multimedia/qt5multimedia.mk | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Applied, thanks.

Thomas

Patch

diff --git a/package/qt5/qt5multimedia/qt5multimedia.mk b/package/qt5/qt5multimedia/qt5multimedia.mk
index 1a3ca6b..5256920 100644
--- a/package/qt5/qt5multimedia/qt5multimedia.mk
+++ b/package/qt5/qt5multimedia/qt5multimedia.mk
@@ -20,6 +20,10 @@  QT5MULTIMEDIA_LICENSE = Commercial license
 QT5MULTIMEDIA_REDISTRIBUTE = NO
 endif
 
+ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE),y)
+QT5MULTIMEDIA_DEPENDENCIES += gst-plugins-base
+endif
+
 define QT5MULTIMEDIA_CONFIGURE_CMDS
 	(cd $(@D); $(HOST_DIR)/usr/bin/qmake)
 endef
@@ -34,9 +38,16 @@  define QT5MULTIMEDIA_INSTALL_STAGING_CMDS
 endef
 
 ifeq ($(BR2_PREFER_STATIC_LIB),)
+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
+
 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
+	$(QT5MULTIMEDIA_INSTALL_TARGET_QGSTTOOLS_LIB)
 endef
 endif