summaryrefslogtreecommitdiff
path: root/meta-tizen
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-07-21 19:37:01 +0000
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-07-22 12:05:18 +0000
commit5405a81a2022326cd406f0fb5849dfe436af2bab (patch)
tree9b737bd992ce760b1a9c065e6a44e56c4c77b655 /meta-tizen
parent773a18847132b0ab1108edd7854d5e0b62a95328 (diff)
downloadtizen-distro-5405a81a2022326cd406f0fb5849dfe436af2bab.tar.gz
tizen-distro-5405a81a2022326cd406f0fb5849dfe436af2bab.tar.bz2
tizen-distro-5405a81a2022326cd406f0fb5849dfe436af2bab.zip
meta-tizen: gstreamer: don't require target wayland-scanner
Only native wayland-scanner will run when cross-compiling. Requiring it for the target host won't work. Patch co-authored with Thiago Santos <thiagoss@osg.samsung.com> (From meta-tizen rev: 610e24309f247356fc34100679450bfc8efe5365) Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'meta-tizen')
-rw-r--r--meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/files/0001-dont-require-target-wayland-scanner.patch56
-rw-r--r--meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend4
2 files changed, 60 insertions, 0 deletions
diff --git a/meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/files/0001-dont-require-target-wayland-scanner.patch b/meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/files/0001-dont-require-target-wayland-scanner.patch
new file mode 100644
index 0000000000..216f6addcc
--- /dev/null
+++ b/meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/files/0001-dont-require-target-wayland-scanner.patch
@@ -0,0 +1,56 @@
+From e349048de96ee99c40992a28eec587675f950b0d Mon Sep 17 00:00:00 2001
+From: Thiago Santos <thiagoss@osg.samsung.com>
+Date: Tue, 21 Jul 2015 18:02:38 -0300
+Subject: [PATCH] configure: improve check for wayland-scanner binary
+
+The plugin doesn't need the wayland-scanner package to be built
+or run, it only needs the wayland-scanner program during compile time.
+
+When cross-compiling, build systems might not have the wayland-scanner
+package for the target system as it is a developer's tool, while it should
+still be possible to use wayland-scanner from the host system.
+
+This patch fixes it by not requiring the wayland-scanner package but
+just the binary itself.
+
+Note that the check is done outside of the PKG_CHECK_MODULES
+as it doesn't work inside of it.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=752688
+---
+ configure.ac | 15 ++++++++++++---
+ 1 file changed, 12 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 2cb967b..27dd37e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1906,14 +1906,23 @@ AG_GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
+ ])
+
+ dnl **** Wayland ****
++# AC_CHECK_PROG inside the PKG_CHECK_MODULES fails, so use it here
++AC_CHECK_PROG(HAVE_WAYLAND_SCANNER, [wayland-scanner], yes, no)
+ translit(dnm, m, l) AM_CONDITIONAL(USE_WAYLAND, true)
+ AG_GST_CHECK_FEATURE(WAYLAND, [wayland sink], wayland , [
+- PKG_CHECK_MODULES(WAYLAND, wayland-client >= 1.4.0 wayland-scanner, [
+- HAVE_WAYLAND="yes" ], [ HAVE_WAYLAND="no"
++ PKG_CHECK_MODULES(WAYLAND, wayland-client >= 1.4.0, [
++ if test "x$HAVE_WAYLAND_SCANNER" = "xyes"; then
++ HAVE_WAYLAND="yes"
++ else
++ AC_MSG_RESULT([wayland-scanner is required to build the wayland plugin])
++ HAVE_WAYLAND="no"
++ fi
++ ],
++ [ HAVE_WAYLAND="no"
+ ])
+ ])
+
+-AC_PATH_PROG([wayland_scanner], [wayland-scanner])
++AC_PATH_PROG([wayland_scanner], [wayland-scanner])],
+
+ dnl **** WebP ****
+ translit(dnm, m, l) AM_CONDITIONAL(USE_WEBP, true)
+--
+2.1.4 \ No newline at end of file
diff --git a/meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
index 5d9fa64077..fd15deba19 100644
--- a/meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
+++ b/meta-tizen/meta-tizen-adaptation/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
@@ -3,3 +3,7 @@ SECTION = "Multimedia/Service"
# Use bluez5 instead of bluez4
DEPENDS_remove = "bluez4"
PACKAGECONFIG[bluez] = "--enable-bluez,--disable-bluez,bluez5"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://0001-dont-require-target-wayland-scanner.patch"