From: Hans Bulfone Date: Tue, 6 Aug 2013 22:18:43 +0200 Subject: [Buildroot] [PATCHv2 1/1] qt5multimedia: depend on gst-plugins-base if selected, install libqgsttools Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net qt5multimedia can use gstreamer, so make sure they are compiled in the right order. If gstreamer is used libqgsttools is required at run time. Signed-off-by: Hans Bulfone --- v2: Conditionally perform installation of libqgsttools instead of ignoring errors (suggested by Thomas Petazzoni) package/qt5/qt5multimedia/qt5multimedia.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/qt5/qt5multimedia/qt5multimedia.mk b/package/qt5/qt5multimedia/qt5multimedia.mk index 8f62274..a999831 100644 --- a/package/qt5/qt5multimedia/qt5multimedia.mk +++ b/package/qt5/qt5multimedia/qt5multimedia.mk @@ -21,6 +21,13 @@ QT5MULTIMEDIA_LICENSE = Commercial license QT5MULTIMEDIA_REDISTRIBUTE = NO endif +ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE),y) +QT5MULTIMEDIA_DEPENDENCIES += gst-plugins-base +define QT5MULTIMEDIA_INSTALL_GSTLIB + cp -dpf $(STAGING_DIR)/usr/lib/libqgsttools*.so.* $(TARGET_DIR)/usr/lib +endef +endif + define QT5MULTIMEDIA_CONFIGURE_CMDS (cd $(@D); $(HOST_DIR)/usr/bin/qmake) endef @@ -38,6 +45,7 @@ ifeq ($(BR2_PREFER_STATIC_LIB),) 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_GSTLIB) endef endif -- 1.7.10.4