summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorLionel Le Folgoc <mrpouit@ubuntu.com>2010-03-06 00:21:47 +0100
committerJannis Pohlmann <jannis@xfce.org>2010-07-16 12:32:38 +0200
commit2621ee8d1db623ef28f8b4aabd7fb246f9e8991e (patch)
treedd8abe6f2a8da3688e2c527347c3959d4323a750 /acinclude.m4
parent50b035316092be7c22f652bc65fb8c133453b7d1 (diff)
downloadtumbler-2621ee8d1db623ef28f8b4aabd7fb246f9e8991e.tar.gz
Add a video thumbnailer (using libffmpegthumbnailer).
Signed-off-by: Jannis Pohlmann <jannis@xfce.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 568b4d7..ca93400 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -121,6 +121,29 @@ AC_MSG_RESULT([$ac_tumbler_jpeg_thumbnailer])
])
+dnl TUMBLER_FFMPEG_THUMBNAILER()
+dnl
+dnl Check whether to build and install the ffmpeg video thumbnailer plugin.
+dnl
+AC_DEFUN([TUMBLER_FFMPEG_THUMBNAILER],
+[
+AC_ARG_ENABLE([ffmpeg-thumbnailer], [AC_HELP_STRING([--disable-ffmpeg-thumbnailer], [Don't build the ffmpeg video thumbnailer plugin])],
+ [ac_tumbler_ffmpeg_thumbnailer=$enableval], [ac_tumbler_ffmpeg_thumbnailer=yes])
+if test x"$ac_tumbler_ffmpeg_thumbnailer" = x"yes"; then
+ dnl Check for gdk-pixbuf
+ PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.14],
+ [
+ dnl Check for libffmpegthumbnailer
+ PKG_CHECK_MODULES([FFMPEGTHUMBNAILER], [libffmpegthumbnailer >= 2.0.0], [], [ac_tumbler_ffmpeg_thumbnailer=no])
+ ], [ac_tumbler_ffmpeg_thumbnailer=no])
+fi
+
+AC_MSG_CHECKING([whether to build the ffmpeg video thumbnailer plugin])
+AM_CONDITIONAL([TUMBLER_FFMPEG_THUMBNAILER], [test x"$ac_tumbler_ffmpeg_thumbnailer" = x"yes"])
+AC_MSG_RESULT([$ac_tumbler_ffmpeg_thumbnailer])
+])
+
+
dnl TUMBLER_XDG_CACHE()
dnl