From 2621ee8d1db623ef28f8b4aabd7fb246f9e8991e Mon Sep 17 00:00:00 2001 From: Lionel Le Folgoc Date: Sat, 6 Mar 2010 00:21:47 +0100 Subject: Add a video thumbnailer (using libffmpegthumbnailer). Signed-off-by: Jannis Pohlmann --- acinclude.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'acinclude.m4') 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 -- cgit v1.2.1