logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/

librsvg-2.40.12-gtk-optional.patch (2193B)


  1. From 18917f7fd3160afe06019f4b6234aeb78a3fdb4e Mon Sep 17 00:00:00 2001
  2. From: Ross Burton <ross.burton@intel.com>
  3. Date: Tue, 19 Nov 2013 16:00:29 +0000
  4. Subject: [PATCH] configure: add option to enable/disable use of GTK+
  5. Distro packagers like predictability and automatically detected optional
  6. dependencies are not predicable. Add a --with-gtk3 option (default to "auto")
  7. for forcibly controlling whether GTK+ will be used or not.
  8. Signed-off-by: Ross Burton <ross.burton@intel.com>
  9. https://bugzilla.gnome.org/show_bug.cgi?id=712693
  10. ---
  11. configure.in | 17 +++++++++++------
  12. 1 file changed, 11 insertions(+), 6 deletions(-)
  13. diff --git a/configure.in b/configure.in
  14. index f7a89dc..1498f72 100644
  15. --- a/configure.ac
  16. +++ b/configure.ac
  17. @@ -119,17 +119,22 @@ AC_CHECK_FUNCS(strtok_r)
  18. # GTK
  19. # ===========================================================================
  20. -PKG_CHECK_MODULES([GTK3],[gtk+-3.0 >= $GTK3_REQUIRED],[have_gtk_3=yes],[have_gtk_3=no])
  21. -
  22. GTK3_BINARY_VERSION=
  23. -if test "$have_gtk_3" = "yes"; then
  24. - GTK3_BINARY_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`"
  25. +AC_MSG_CHECKING([whether to use GTK+ 3])
  26. +AC_ARG_WITH([gtk3],
  27. + [AS_HELP_STRING([--without-gtk3],[Don't build GTK+3 tools (default=auto)])],
  28. + [],[PKG_CHECK_EXISTS([gtk+-3.0 >= $GTK3_REQUIRED],[with_gtk3=yes],[with_gtk3=no])])
  29. +AC_MSG_RESULT([$with_gtk3])
  30. +
  31. +if test "$with_gtk3" = "yes"; then
  32. + PKG_CHECK_MODULES(GTK3, [gtk+-3.0 >= $GTK3_REQUIRED])
  33. + GTK3_BINARY_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`"
  34. fi
  35. AC_SUBST([GTK3_BINARY_VERSION])
  36. -AM_CONDITIONAL([HAVE_GTK_3],[test "$have_gtk_3" = "yes"])
  37. +AM_CONDITIONAL([HAVE_GTK_3],[test "$with_gtk3" = "yes"])
  38. dnl ===========================================================================
  39. dnl GDK-Pixbuf SVG loader
  40. @@ -305,6 +310,6 @@ librsvg-$VERSION
  41. Build introspectable bindings: ${found_introspection}
  42. Build Vala bindings: ${enable_vala}
  43. Build GdkPixbuf loader: ${enable_pixbuf_loader}
  44. - GTK+ $GTK3_REQUIRED or later: ${have_gtk_3}
  45. + GTK 3.0: ${with_gtk3}
  46. Build miscellaneous tools: ${build_misc_tools}
  47. "
  48. --
  49. 1.7.10.4