[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32283 - in Extractor: . src/plugins
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32283 - in Extractor: . src/plugins |
Date: |
Mon, 10 Feb 2014 23:00:23 +0100 |
Author: LRN
Date: 2014-02-10 23:00:23 +0100 (Mon, 10 Feb 2014)
New Revision: 32283
Modified:
Extractor/configure.ac
Extractor/src/plugins/Makefile.am
Extractor/src/plugins/thumbnailgtk_extractor.c
Log:
Remove gtk dependency from gtkthumbnailer, depend on gdk-pixbuf
Modified: Extractor/configure.ac
===================================================================
--- Extractor/configure.ac 2014-02-10 21:52:14 UTC (rev 32282)
+++ Extractor/configure.ac 2014-02-10 22:00:23 UTC (rev 32283)
@@ -581,51 +581,23 @@
CFLAGS="$CFLAGS_OLD"
CPPFLAGS="$CPPFLAGS_OLD"
-# check for gtk >= 2.6.0
-AC_MSG_CHECKING(for gtk)
-check_for_3=3.0.0
-check_for_2=2.6.0
-AC_ARG_WITH(gtk_version,
- [ --with-gtk-version=VERSION version number of gtk to use (>=3.0.0 by
default)],
- [AC_MSG_RESULT([$with_gtk_version])
- case $with_gtk_version in
- *)
- if test "x${with_gtk_version:0:1}" == "x2"
- then
- check_for_3=false
- check_for_2=$with_gtk_version
- elif test "x${with_gtk_version:0:1}" == "x3"
- then
- check_for_3=$with_gtk_version
- check_for_2=false
- fi
- ;;
- esac
- ],
- [AC_MSG_RESULT([--with-gtk-version not specified])])
+# check for gdk-pixbuf >= 2.4
+AC_MSG_CHECKING(for gdk-pixbuf)
+PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.4],
[have_gdk_pixbuf=yes], [have_gdk_pixbuf=no])
-without_gtk=true
-if test "x$check_for_3" != "xfalse"
+AM_CONDITIONAL(HAVE_GDK_PIXBUF, test x$have_gdk_pixbuf != xno)
+if test $have_gdk_pixbuf != no
then
- AM_PATH_GTK_3_0([$check_for_3],without_gtk=false,without_gtk=true)
-fi
-
-if test "x$without_gtk" == "xtrue" -a "x$check_for_2" != "xfalse"
-then
- AM_PATH_GTK_2_0([$check_for_2],without_gtk=false,without_gtk=true)
-fi
-
-AM_CONDITIONAL(HAVE_GTK, test x$without_gtk != xtrue)
-if test $without_gtk != true
-then
- AC_DEFINE_UNQUOTED([HAVE_GTK], 1, [We have GTK])
+ have_gdk_pixbuf=1
else
- AC_MSG_NOTICE([Cannot find GTK: Is pkg-config in path?])
+ have_gdk_pixbuf=0
+ AC_MSG_NOTICE([Cannot find Gdk-pixbuf: Is pkg-config in path?])
fi
+AC_DEFINE_UNQUOTED([HAVE_GDK_PIXBUF], [$have_gdk_pixbuf], [We have Gdk-pixbuf])
-CFLAGS="$CFLAGS $GTK_CFLAGS"
-CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
-LIBS="$LIBS $GTK_LIBS"
+CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
+CPPFLAGS="$CPPFLAGS $GDK_PIXBUF_CFLAGS"
+LIBS="$LIBS $GDK_PIXBUF_LIBS"
AC_ARG_WITH([gstreamer], AS_HELP_STRING([--with-gstreamer], [Build with the
GStreamer plugin]), [], [with_gstreamer=yes])
@@ -813,9 +785,9 @@
AC_MSG_NOTICE([NOTICE: FFmpeg/opus audio preview plugin disabled, It needs
libav >= 10, or a FFmpeg with --enable-libavresample])
fi
-if test "x$without_gtk" = "xtrue"
+if test "x$have_gdk_pixbuf" = "x0"
then
- AC_MSG_NOTICE([NOTICE: libgtk3+ not found, gtk thumbnail support disabled])
+ AC_MSG_NOTICE([NOTICE: libgdk-pixbuf not found, gtk thumbnail support
disabled])
fi
if test "x$HAVE_VORBISFILE_TRUE" = "x#"
Modified: Extractor/src/plugins/Makefile.am
===================================================================
--- Extractor/src/plugins/Makefile.am 2014-02-10 21:52:14 UTC (rev 32282)
+++ Extractor/src/plugins/Makefile.am 2014-02-10 22:00:23 UTC (rev 32283)
@@ -77,8 +77,8 @@
TEST_PREVIEWOPUS=test_previewopus
endif
-if HAVE_GTK
-# Gtk-thumbnailer requires MAGIC and GTK
+if HAVE_GDK_PIXBUF
+# Gtk-thumbnailer requires MAGIC and GDK_PIXBUF
PLUGIN_GTK=libextractor_thumbnailgtk.la
TEST_GTK=test_thumbnailgtk
endif
@@ -619,9 +619,9 @@
libextractor_thumbnailgtk_la_LDFLAGS = \
$(PLUGINFLAGS)
libextractor_thumbnailgtk_la_CFLAGS = \
- $(GTK_CFLAGS)
+ $(GDK_PIXBUF_CFLAGS)
libextractor_thumbnailgtk_la_LIBADD = \
- -lmagic $(GTK_LIBS) $(XLIB)
+ -lmagic $(GDK_PIXBUF_LIBS) $(XLIB)
test_thumbnailgtk_SOURCES = \
test_thumbnailgtk.c
Modified: Extractor/src/plugins/thumbnailgtk_extractor.c
===================================================================
--- Extractor/src/plugins/thumbnailgtk_extractor.c 2014-02-10 21:52:14 UTC
(rev 32282)
+++ Extractor/src/plugins/thumbnailgtk_extractor.c 2014-02-10 22:00:23 UTC
(rev 32283)
@@ -25,7 +25,7 @@
* of the file includes a decoder method that can be used
* to reproduce the 128x128 PNG thumbnails. We use
* libmagic to test if the input data is actually an
- * image before trying to give it to gtk.
+ * image before trying to give it to gdk-pixbuf.
*/
#include "platform.h"
#include "extractor.h"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32283 - in Extractor: . src/plugins,
gnunet <=