libfm-enable-gtk3-support.patch 904 B

1234567891011121314151617181920212223242526
  1. diff -ur libfm-0.1.15.git.1310495032.orig/configure.ac libfm-0.1.15.git.1310495032/configure.ac
  2. --- libfm-0.1.15.git.1310495032.orig/configure.ac 2011-07-15 17:36:28.000000000 +0200
  3. +++ libfm-0.1.15.git.1310495032/configure.ac 2011-07-15 17:40:26.000000000 +0200
  4. @@ -38,7 +38,20 @@
  5. # intltool
  6. IT_PROG_INTLTOOL([0.40.0])
  7. -pkg_modules="$gio_modules gtk+-2.0 >= 2.18.0 cairo >= 1.8.0"
  8. +AC_ARG_ENABLE(gtk3,
  9. +AC_HELP_STRING([--enable-gtk3],[enable to use gtk-3.0 instead of gtk-2.0]),
  10. +[case "${enableval}" in
  11. + yes) enable_gtk3=yes ;;
  12. + no) enable_gtk3=no ;;
  13. + *) AC_MSG_ERROR([bad value "${enableval}" for --enable-gtk3, use "yes" (default) or "no".]) ;;
  14. +esac],[])
  15. +
  16. +if test "x$enable_gtk3" = "xyes" ; then
  17. + CFLAGS="$CFLAGS -DENABLE_GTK3"
  18. + pkg_modules="gtk+-3.0"
  19. +else
  20. + pkg_modules="gtk+-2.0 >= 2.16.0"
  21. +fi
  22. PKG_CHECK_MODULES(GTK, [$pkg_modules])
  23. AC_SUBST(GTK_CFLAGS)
  24. AC_SUBST(GTK_LIBS)