View | Details | Raw Unified | Return to bug 194460 | Differences between
and this patch

Collapse All | Expand All

(-)x11-toolkits/gtk30/Makefile (-5 / +10 lines)
Lines 24-32 PORTSCOUT= ignore:1 Link Here
24
.else
24
.else
25
PORTSCOUT=	limit:1,even
25
PORTSCOUT=	limit:1,even
26
26
27
BUILD_DEPENDS+=	${LOCALBASE}/libdata/pkgconfig/atk-bridge-2.0.pc:${PORTSDIR}/accessibility/at-spi2-atk
27
RUN_DEPENDS+=	${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme
28
RUN_DEPENDS+=	${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme \
29
		${LOCALBASE}/libdata/pkgconfig/atk-bridge-2.0.pc:${PORTSDIR}/accessibility/at-spi2-atk
30
28
31
USE_PERL5=	build
29
USE_PERL5=	build
32
USE_LDCONFIG=	yes
30
USE_LDCONFIG=	yes
Lines 49-60 GLIB_SCHEMAS= org.gtk.Demo.gschema.xml \ Link Here
49
		org.gtk.Settings.ColorChooser.gschema.xml \
47
		org.gtk.Settings.ColorChooser.gschema.xml \
50
		org.gtk.Settings.FileChooser.gschema.xml
48
		org.gtk.Settings.FileChooser.gschema.xml
51
49
52
OPTIONS_DEFINE=	CUPS COLORD DEBUG
50
OPTIONS_DEFINE=	ATK_BRIDGE CUPS COLORD DEBUG
53
OPTIONS_DEFAULT=CUPS COLORD
51
OPTIONS_DEFAULT=ATK_BRIDGE CUPS COLORD
52
ATK_BRIDGE_DESC=AT-SPI ATK bridge support (depends on devel/dbus)
54
COLORD_DESC=	Color profile support
53
COLORD_DESC=	Color profile support
55
54
56
.include <bsd.port.options.mk>
55
.include <bsd.port.options.mk>
57
56
57
.if ${PORT_OPTIONS:MATK_BRIDGE}
58
LIB_DEPENDS+=	libatk-bridge-2.0.so:${PORTSDIR}/accessibility/at-spi2-atk
59
.else
60
CONFIGURE_ARGS+=--without-atk-bridge
61
.endif
62
58
.if ${PORT_OPTIONS:MCUPS}
63
.if ${PORT_OPTIONS:MCUPS}
59
LIB_DEPENDS+=	libcups.so:${PORTSDIR}/print/cups-client
64
LIB_DEPENDS+=	libcups.so:${PORTSDIR}/print/cups-client
60
CONFIGURE_ARGS+=--enable-cups=auto
65
CONFIGURE_ARGS+=--enable-cups=auto
(-)x11-toolkits/gtk30/files/patch-atk-bridge-option (+89 lines)
Line 0 Link Here
1
# Revert bug 677491 comment 45
2
3
diff --git configure configure.ac
4
index d4c2262..37b6349 100644
5
--- configure
6
+++ configure
7
@@ -1039,6 +1039,7 @@ enable_glibtest
8
 enable_modules
9
 with_included_immodules
10
 with_x
11
+with_atk_bridge
12
 enable_cups
13
 enable_papi
14
 enable_cloudprint
15
@@ -1790,6 +1791,7 @@ Optional Packages:
16
   --with-included-immodules=MODULE1,MODULE2,...
17
                           build the specified input methods into gtk
18
   --with-x                use the X Window System
19
+  --without-atk-bridge    Do not use atk-bridge-2.0
20
   --with-html-dir=PATH    path to installed docs
21
   --with-xml-catalog=CATALOG
22
                           path to xml catalog to use
23
@@ -24609,8 +24611,20 @@ fi
24
 # Check for Accessibility Toolkit flags
25
 ########################################
26
 
27
-if test x$enable_x11_backend = xyes; then
28
+
29
+# Check whether --with-atk-bridge was given.
30
+if test "${with_atk_bridge+set}" = set; then :
31
+  withval=$with_atk_bridge; :
32
+else
33
+  with_atk_bridge=$enable_x11_backend
34
+fi
35
+
36
+
37
+if test x$with_atk_bridge != xno; then
38
    ATK_PACKAGES="atk atk-bridge-2.0"
39
+
40
+$as_echo "#define HAVE_ATK_BRIDGE 1" >>confdefs.h
41
+
42
 else
43
    ATK_PACKAGES="atk"
44
 fi
45
diff --git config.h.in config.h.in
46
index d4c2262..37b6349 100644
47
--- config.h.in
48
+++ config.h.in
49
@@ -15,6 +15,9 @@
50
 /* Define the location where the catalogs will be installed */
51
 #undef GTK_LOCALEDIR
52
 
53
+/* Define if we're using atk-bridge-2.0 */
54
+#undef HAVE_ATK_BRIDGE
55
+
56
 /* Define to 1 if you have the `bind_textdomain_codeset' function. */
57
 #undef HAVE_BIND_TEXTDOMAIN_CODESET
58
 
59
diff --git gtk/a11y/gtkaccessibility.c gtk/a11y/gtkaccessibility.c
60
index 4f5028b..ff8450a 100644
61
--- gtk/a11y/gtkaccessibility.c
62
+++ gtk/a11y/gtkaccessibility.c
63
@@ -37,7 +37,7 @@
64
 #include <gtk/gtkcombobox.h>
65
 #include <gtk/gtkaccessible.h>
66
 
67
-#ifdef GDK_WINDOWING_X11
68
+#ifdef HAVE_ATK_BRIDGE
69
 #include <atk-bridge.h>
70
 #endif
71
 
72
@@ -989,7 +989,7 @@ _gtk_accessibility_shutdown (void)
73
 
74
   g_clear_object (&atk_misc_instance);
75
 
76
-#ifdef GDK_WINDOWING_X11
77
+#ifdef HAVE_ATK_BRIDGE
78
   atk_bridge_adaptor_cleanup ();
79
 #endif
80
 
81
@@ -1011,7 +1011,7 @@ _gtk_accessibility_init (void)
82
   _gtk_accessibility_override_atk_util ();
83
   do_window_event_initialization ();
84
 
85
-#ifdef GDK_WINDOWING_X11
86
+#ifdef HAVE_ATK_BRIDGE
87
   atk_bridge_adaptor_init (NULL, NULL);
88
 #endif
89
 

Return to bug 194460