pkgsrc/x11/gtk3/patches/patch-configure.ac
2014-09-08 12:06:48 +00:00

21 lines
747 B
Text

$NetBSD: patch-configure.ac,v 1.2 2014/09/08 12:06:48 wiz Exp $
Make gtk3-atk-bridge an option to avoid unwanted dbus dependency.
--- configure.ac.orig 2013-01-07 10:50:02.000000000 +0000
+++ configure.ac
@@ -1295,8 +1295,13 @@ AC_SUBST(GDK_DEP_CFLAGS)
# Check for Accessibility Toolkit flags
########################################
-if test x$enable_x11_backend = xyes; then
+AC_ARG_WITH(atk-bridge,
+ AS_HELP_STRING([--without-atk-bridge], [Do not use atk-bridge-2.0]),
+ :, with_atk_bridge=yes)
+
+if test x$enable_x11_backend = xyes -a x$with_atk_bridge = xyes; then
ATK_PACKAGES="atk atk-bridge-2.0"
+ AC_DEFINE([HAVE_ATK_BRIDGE], [1], [Define if we're using atk-bridge-2.0])
else
ATK_PACKAGES="atk"
fi