summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorRoss Burton <ross@linux.intel.com>2011-01-31 15:48:34 +0000
committerJannis Pohlmann <jannis@xfce.org>2011-05-20 01:19:04 +0200
commit88a5e9692fcc2f2b64c152f25a98721d631b2ad7 (patch)
treeb64d4a2a497d67ea37e446a018045bcc7c17401f /acinclude.m4
parent57a3b9f3042d7d1e8f781dca5eb333d50cb1bb53 (diff)
downloadtumbler-88a5e9692fcc2f2b64c152f25a98721d631b2ad7.tar.gz
Add GStreamer-based thumbnailer for video thumbnails
Signed-off-by: Jannis Pohlmann <jannis@xfce.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m424
1 files changed, 24 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e2d374b..2271773 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -145,6 +145,30 @@ AC_MSG_RESULT([$ac_tumbler_ffmpeg_thumbnailer])
+dnl TUMBLER_GSTREAMER_THUMBNAILER()
+dnl
+dnl Check whether to build and install the gstreamer video thumbnailer plugin.
+dnl
+AC_DEFUN([TUMBLER_GSTREAMER_THUMBNAILER],
+[
+AC_ARG_ENABLE([gstreamer-thumbnailer], [AC_HELP_STRING([--disable-gstreamer-thumbnailer], [Don't build the GStreamer video thumbnailer plugin])],
+ [ac_tumbler_gstreamer_thumbnailer=$enableval], [ac_tumbler_gstreamer_thumbnailer=yes])
+if test x"$ac_tumbler_gstreamer_thumbnailer" = x"yes"; then
+ dnl Check for gdk-pixbuf
+ PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.14],
+ [
+ dnl Check for libgstreamerthumbnailer
+ PKG_CHECK_MODULES([GSTREAMER], [gstreamer-0.10], [], [ac_tumbler_gstreamer_thumbnailer=no])
+ ], [ac_tumbler_gstreamer_thumbnailer=no])
+fi
+
+AC_MSG_CHECKING([whether to build the gstreamer video thumbnailer plugin])
+AM_CONDITIONAL([TUMBLER_GSTREAMER_THUMBNAILER], [test x"$ac_tumbler_gstreamer_thumbnailer" = x"yes"])
+AC_MSG_RESULT([$ac_tumbler_gstreamer_thumbnailer])
+])
+
+
+
dnl TUMBLER_POPPLER_THUMBNAILER()
dnl
dnl Check whether to build and install the poppler PDF/PS thumbnailer plugin.