diff options
author | Carlos Rafael Giani <dv@pseudoterminal.org> | 2018-07-24 12:52:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-26 13:16:41 +0100 |
commit | e484aee1b9bd58e89e966be211e789de01735bcc (patch) | |
tree | cf6edf242256fee9c77f48c47a6968eaee157316 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base | |
parent | fe258fb84a15850546f60db474050288c24d95d8 (diff) | |
download | poky-e484aee1b9bd58e89e966be211e789de01735bcc.tar.gz |
gstreamer1.0-plugin-base: Update packageconfigs
* Add patches for gbm, libpng, libjpeg to conditionally enable/disable
them in the configure script
* Reorder the packageconfigs alphabetically
(From OE-Core rev: 6e915c47b9626e706e6d0e96399d46ea28f318c6)
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base')
2 files changed, 179 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0010-gl-Add-switch-for-explicitely-enabling-disabling-GBM.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0010-gl-Add-switch-for-explicitely-enabling-disabling-GBM.patch new file mode 100644 index 0000000000..45ba50750d --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0010-gl-Add-switch-for-explicitely-enabling-disabling-GBM.patch | |||
@@ -0,0 +1,70 @@ | |||
1 | From a1b59ca6b1781442f37ffc1b697635db126b3a22 Mon Sep 17 00:00:00 2001 | ||
2 | From: Carlos Rafael Giani <dv@pseudoterminal.org> | ||
3 | Date: Thu, 19 Jul 2018 10:30:54 +0200 | ||
4 | Subject: [PATCH] gl: Add switch for explicitely enabling/disabling GBM support | ||
5 | |||
6 | Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=796833] | ||
7 | |||
8 | Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org> | ||
9 | --- | ||
10 | m4/gst-gl.m4 | 30 ++++++++++++++++++++++++++++-- | ||
11 | 1 file changed, 28 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/m4/gst-gl.m4 b/m4/gst-gl.m4 | ||
14 | index 1e9724094..aca5295cc 100644 | ||
15 | --- a/m4/gst-gl.m4 | ||
16 | +++ b/m4/gst-gl.m4 | ||
17 | @@ -117,6 +117,15 @@ AC_ARG_ENABLE([dispmanx], | ||
18 | *) AC_MSG_ERROR([bad value ${enableval} for --enable-dispmanx]) ;; | ||
19 | esac],[NEED_DISPMANX=auto]) | ||
20 | |||
21 | +AC_ARG_ENABLE([gbm], | ||
22 | + [ --enable-gbm Enable Mesa3D GBM support (requires EGL) @<:@default=auto@:>@], | ||
23 | + [case "${enableval}" in | ||
24 | + yes) NEED_GBM=yes ;; | ||
25 | + no) NEED_GBM=no ;; | ||
26 | + auto) NEED_GBM=auto ;; | ||
27 | + *) AC_MSG_ERROR([bad value ${enableval} for --enable-gbm]) ;; | ||
28 | + esac],[NEED_GBM=auto]) | ||
29 | + | ||
30 | AG_GST_PKG_CHECK_MODULES(X11_XCB, x11-xcb) | ||
31 | save_CPPFLAGS="$CPPFLAGS" | ||
32 | save_LIBS="$LIBS" | ||
33 | @@ -172,15 +181,32 @@ case $host in | ||
34 | AC_CHECK_LIB([EGL], [fbGetDisplay], [HAVE_VIV_FB_EGL=yes]) | ||
35 | fi | ||
36 | |||
37 | - if test "x$HAVE_EGL" = "xyes"; then | ||
38 | + if test "x$NEED_GBM" != "xno"; then | ||
39 | + if test "x$HAVE_EGL" = "xyes"; then | ||
40 | PKG_CHECK_MODULES(DRM, libdrm >= 2.4.55, HAVE_DRM=yes, HAVE_DRM=no) | ||
41 | AC_SUBST(DRM_CFLAGS) | ||
42 | AC_SUBST(DRM_LIBS) | ||
43 | + if test "x$NEED_GBM" = "xyes"; then | ||
44 | + if test "x$HAVE_DRM" = "xno"; then | ||
45 | + AC_MSG_ERROR([GBM support requested but libdrm is not available]) | ||
46 | + fi | ||
47 | + if test "x$HAVE_GUDEV" = "xno"; then | ||
48 | + AC_MSG_ERROR([GBM support requested but gudev is not available]) | ||
49 | + fi | ||
50 | + fi | ||
51 | if test "x$HAVE_DRM" = "xyes" -a "x$HAVE_GUDEV" = "xyes"; then | ||
52 | PKG_CHECK_MODULES(GBM, gbm, HAVE_GBM_EGL=yes, HAVE_GBM_EGL=no) | ||
53 | + if test "x$HAVE_GBM_EGL" = "xno" -a "x$NEED_GBM" = "xyes"; then | ||
54 | + AC_MSG_ERROR([GBM support requested but gbm library is not available]) | ||
55 | + fi | ||
56 | AC_SUBST(GBM_CFLAGS) | ||
57 | AC_SUBST(GBM_LIBS) | ||
58 | - fi | ||
59 | + fi | ||
60 | + elif test "x$NEED_GBM" = "xyes"; then | ||
61 | + AC_MSG_ERROR([GBM support requested but EGL is not available]) | ||
62 | + else | ||
63 | + AC_MSG_NOTICE([GBM support requested but EGL is not available; not enabling GBM support]) | ||
64 | + fi | ||
65 | fi | ||
66 | |||
67 | dnl FIXME: Mali EGL depends on GLESv1 or GLESv2 | ||
68 | -- | ||
69 | 2.17.1 | ||
70 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0011-gl-Add-switches-for-explicitely-enabling-disabling-P.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0011-gl-Add-switches-for-explicitely-enabling-disabling-P.patch new file mode 100644 index 0000000000..65d191a396 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0011-gl-Add-switches-for-explicitely-enabling-disabling-P.patch | |||
@@ -0,0 +1,109 @@ | |||
1 | From 092aadfc1df69c46d920b0cd39f98d363d6988b3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Carlos Rafael Giani <dv@pseudoterminal.org> | ||
3 | Date: Thu, 19 Jul 2018 11:16:05 +0200 | ||
4 | Subject: [PATCH] gl: Add switches for explicitely enabling/disabling PNG and | ||
5 | JPEG support | ||
6 | |||
7 | Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=796833] | ||
8 | |||
9 | Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org> | ||
10 | --- | ||
11 | m4/gst-gl.m4 | 66 ++++++++++++++++++++++++++++++++++++---------------- | ||
12 | 1 file changed, 46 insertions(+), 20 deletions(-) | ||
13 | |||
14 | diff --git a/m4/gst-gl.m4 b/m4/gst-gl.m4 | ||
15 | index 20b2233de..f8809981c 100644 | ||
16 | --- a/m4/gst-gl.m4 | ||
17 | +++ b/m4/gst-gl.m4 | ||
18 | @@ -126,6 +126,24 @@ AC_ARG_ENABLE([gbm], | ||
19 | *) AC_MSG_ERROR([bad value ${enableval} for --enable-gbm]) ;; | ||
20 | esac],[NEED_GBM=auto]) | ||
21 | |||
22 | +AC_ARG_ENABLE([png], | ||
23 | + [ --enable-png Enable libpng support @<:@default=auto@:>@], | ||
24 | + [case "${enableval}" in | ||
25 | + yes) NEED_PNG=yes ;; | ||
26 | + no) NEED_PNG=no ;; | ||
27 | + auto) NEED_PNG=auto ;; | ||
28 | + *) AC_MSG_ERROR([bad value ${enableval} for --enable-png]) ;; | ||
29 | + esac],[NEED_PNG=auto]) | ||
30 | + | ||
31 | +AC_ARG_ENABLE([jpeg], | ||
32 | + [ --enable-jpeg Enable libjpeg support @<:@default=auto@:>@], | ||
33 | + [case "${enableval}" in | ||
34 | + yes) NEED_JPEG=yes ;; | ||
35 | + no) NEED_JPEG=no ;; | ||
36 | + auto) NEED_JPEG=auto ;; | ||
37 | + *) AC_MSG_ERROR([bad value ${enableval} for --enable-jpeg]) ;; | ||
38 | + esac],[NEED_JPEG=auto]) | ||
39 | + | ||
40 | AG_GST_PKG_CHECK_MODULES(X11_XCB, x11-xcb) | ||
41 | save_CPPFLAGS="$CPPFLAGS" | ||
42 | save_LIBS="$LIBS" | ||
43 | @@ -1043,9 +1061,13 @@ dnl Needed by plugins that use g_module_*() API | ||
44 | PKG_CHECK_MODULES(GMODULE_NO_EXPORT, gmodule-no-export-2.0) | ||
45 | |||
46 | dnl libpng is optional | ||
47 | -PKG_CHECK_MODULES(LIBPNG, libpng >= 1.0, HAVE_PNG=yes, HAVE_PNG=no) | ||
48 | -if test "x$HAVE_PNG" = "xyes"; then | ||
49 | - AC_DEFINE(HAVE_PNG, [1] , [Use libpng]) | ||
50 | +if test "x$NEED_PNG" != "xno"; then | ||
51 | + PKG_CHECK_MODULES(LIBPNG, libpng >= 1.0, HAVE_PNG=yes, HAVE_PNG=no) | ||
52 | + if test "x$HAVE_PNG" = "xyes"; then | ||
53 | + AC_DEFINE(HAVE_PNG, [1] , [Use libpng]) | ||
54 | + elif test "x$NEED_PNG" = "xyes"; then | ||
55 | + AC_MSG_ERROR([libpng support requested but libpng is not available]) | ||
56 | + fi | ||
57 | fi | ||
58 | AC_SUBST(HAVE_PNG) | ||
59 | AC_SUBST(LIBPNG_LIBS) | ||
60 | @@ -1053,25 +1075,29 @@ AC_SUBST(LIBPNG_CFLAGS) | ||
61 | |||
62 | dnl libjpeg is optional | ||
63 | AC_ARG_WITH(jpeg-mmx, [ --with-jpeg-mmx, path to MMX'ified JPEG library]) | ||
64 | -OLD_LIBS="$LIBS" | ||
65 | -if test x$with_jpeg_mmx != x; then | ||
66 | - LIBS="$LIBS -L$with_jpeg_mmx" | ||
67 | -fi | ||
68 | -AC_CHECK_LIB(jpeg-mmx, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no") | ||
69 | -JPEG_LIBS="$LIBS -ljpeg-mmx" | ||
70 | -LIBS="$OLD_LIBS" | ||
71 | -if test x$HAVE_JPEG != xyes; then | ||
72 | - JPEG_LIBS="-ljpeg" | ||
73 | - AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no") | ||
74 | -fi | ||
75 | +if test "x$NEED_JPEG" != "xno"; then | ||
76 | + OLD_LIBS="$LIBS" | ||
77 | + if test x$with_jpeg_mmx != x; then | ||
78 | + LIBS="$LIBS -L$with_jpeg_mmx" | ||
79 | + fi | ||
80 | + AC_CHECK_LIB(jpeg-mmx, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no") | ||
81 | + JPEG_LIBS="$LIBS -ljpeg-mmx" | ||
82 | + LIBS="$OLD_LIBS" | ||
83 | + if test x$HAVE_JPEG != xyes; then | ||
84 | + JPEG_LIBS="-ljpeg" | ||
85 | + AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no") | ||
86 | + fi | ||
87 | |||
88 | -if test x$HAVE_JPEG = xyes; then | ||
89 | - AC_DEFINE(HAVE_JPEG, [1], [Use libjpeg]) | ||
90 | -else | ||
91 | - JPEG_LIBS= | ||
92 | + if test x$HAVE_JPEG = xyes; then | ||
93 | + AC_DEFINE(HAVE_JPEG, [1], [Use libjpeg]) | ||
94 | + elif test "x$NEED_JPEG" = "xyes"; then | ||
95 | + AC_MSG_ERROR([libjpeg support requested but libjpeg is not available]) | ||
96 | + else | ||
97 | + JPEG_LIBS= | ||
98 | + fi | ||
99 | + AC_SUBST(JPEG_LIBS) | ||
100 | + AC_SUBST(HAVE_JPEG) | ||
101 | fi | ||
102 | -AC_SUBST(JPEG_LIBS) | ||
103 | -AC_SUBST(HAVE_JPEG) | ||
104 | ]) | ||
105 | |||
106 | dnl -------------------------------------------------------------------------- | ||
107 | -- | ||
108 | 2.17.1 | ||
109 | |||