diff options
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad.inc | 4 | ||||
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/configure-allow-to-disable-libssh2.patch | 64 |
2 files changed, 68 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad.inc index d8aa6eedcb..dab0bf54a6 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad.inc +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad.inc | |||
| @@ -6,6 +6,9 @@ DEPENDS += "gstreamer1.0-plugins-base bzip2 libpng jpeg" | |||
| 6 | 6 | ||
| 7 | S = "${WORKDIR}/gst-plugins-bad-${PV}" | 7 | S = "${WORKDIR}/gst-plugins-bad-${PV}" |
| 8 | 8 | ||
| 9 | SRC_URI += "file://configure-allow-to-disable-libssh2.patch \ | ||
| 10 | " | ||
| 11 | |||
| 9 | inherit gettext | 12 | inherit gettext |
| 10 | 13 | ||
| 11 | # opengl packageconfig factored out to make it easy for distros | 14 | # opengl packageconfig factored out to make it easy for distros |
| @@ -51,6 +54,7 @@ PACKAGECONFIG[rsvg] = "--enable-rsvg,--disable-rsvg,librsvg" | |||
| 51 | PACKAGECONFIG[sndfile] = "--enable-sndfile,--disable-sndfile,libsndfile1" | 54 | PACKAGECONFIG[sndfile] = "--enable-sndfile,--disable-sndfile,libsndfile1" |
| 52 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" | 55 | PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp" |
| 53 | PACKAGECONFIG[rtmp] = "--enable-rtmp,--disable-rtmp,rtmpdump" | 56 | PACKAGECONFIG[rtmp] = "--enable-rtmp,--disable-rtmp,rtmpdump" |
| 57 | PACKAGECONFIG[libssh2] = "--enable-libssh2,--disable-libssh2,libssh2" | ||
| 54 | 58 | ||
| 55 | # these plugins have not been ported to 1.0 (yet): | 59 | # these plugins have not been ported to 1.0 (yet): |
| 56 | # directdraw vcd apexsink dc1394 lv2 linsys musepack mythtv | 60 | # directdraw vcd apexsink dc1394 lv2 linsys musepack mythtv |
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/configure-allow-to-disable-libssh2.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/configure-allow-to-disable-libssh2.patch new file mode 100644 index 0000000000..d52afd5d57 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/configure-allow-to-disable-libssh2.patch | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | From f59c5269f92d59a5296cbfeeb682d42095cd88ad Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
| 3 | Date: Thu, 18 Sep 2014 02:24:07 -0400 | ||
| 4 | Subject: [PATCH] gstreamer1.0-plugins-bad: allow to disable libssh2 | ||
| 5 | |||
| 6 | libssh2 is automatically linked to if present, this undetermined | ||
| 7 | dependency may cause build errors like: | ||
| 8 | |||
| 9 | .../x86_64-poky-linux/4.9.0/ld: cannot find -lssh2 | ||
| 10 | |||
| 11 | libssh2 isn't an oe-core recipe, so allow to disable it from | ||
| 12 | configure. | ||
| 13 | |||
| 14 | Upstream-Status: Pending | ||
| 15 | |||
| 16 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
| 17 | --- | ||
| 18 | configure.ac | 23 +++++++++++++++++------ | ||
| 19 | 1 file changed, 17 insertions(+), 6 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/configure.ac b/configure.ac | ||
| 22 | index 0e95c5c..12153b4 100644 | ||
| 23 | --- a/configure.ac | ||
| 24 | +++ b/configure.ac | ||
| 25 | @@ -1901,6 +1901,15 @@ AG_GST_CHECK_FEATURE(CHROMAPRINT, [chromaprint], chromaprint, [ | ||
| 26 | ]) | ||
| 27 | |||
| 28 | dnl *** Curl *** | ||
| 29 | +AC_ARG_ENABLE([libssh2], | ||
| 30 | + [ --enable-libssh2 enable LIBSSH2 support @<:@default=auto@:>@], | ||
| 31 | + [case "${enableval}" in | ||
| 32 | + yes) NEED_SSH2=yes ;; | ||
| 33 | + no) NEED_SSH2=no ;; | ||
| 34 | + auto) NEED_SSH2=auto ;; | ||
| 35 | + *) AC_MSG_ERROR([bad value ${enableval} for --enable-libssh2]) ;; | ||
| 36 | + esac],[NEED_SSH2=auto]) | ||
| 37 | + | ||
| 38 | translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true) | ||
| 39 | AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [ | ||
| 40 | PKG_CHECK_MODULES(CURL, libcurl >= 7.21.0, [ | ||
| 41 | @@ -1915,12 +1924,14 @@ AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [ | ||
| 42 | ]) | ||
| 43 | AC_SUBST(CURL_CFLAGS) | ||
| 44 | AC_SUBST(CURL_LIBS) | ||
| 45 | - PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [ | ||
| 46 | - HAVE_SSH2="yes" | ||
| 47 | - AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available]) | ||
| 48 | - ], [ | ||
| 49 | - HAVE_SSH2="no" | ||
| 50 | - ]) | ||
| 51 | + if test "x$NEED_SSH2" != "xno"; then | ||
| 52 | + PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [ | ||
| 53 | + HAVE_SSH2="yes" | ||
| 54 | + AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available]) | ||
| 55 | + ], [ | ||
| 56 | + HAVE_SSH2="no" | ||
| 57 | + ]) | ||
| 58 | + fi | ||
| 59 | AM_CONDITIONAL(USE_SSH2, test "x$HAVE_SSH2" = "xyes") | ||
| 60 | AC_SUBST(SSH2_CFLAGS) | ||
| 61 | AC_SUBST(SSH2_LIBS) | ||
| 62 | -- | ||
| 63 | 1.7.9.5 | ||
| 64 | |||
