This file includes a patch to support switching between native and generic
application information interfaces.
The native interface is used for Quartz-based builds of GTK+ and uses
application bundle information, while the generic interface is the freedesktop
implementation working with standard .desktop files.
Both options are mutually exclusive, as glib (so far) only supports one
specific implementation that must be compiled and linked statically into the
shared library at build time.
For X11 builds of glib (our default), we want to support .desktop files.
See: https://trac.macports.org/ticket/53911
See: https://gitlab.gnome.org/GNOME/glib/issues/1263
--- configure.ac.orig 2018-05-22 16:21:16.000000000 -0500
+++ configure.ac 2018-05-25 22:12:08.000000000 -0500
+dnl ***********************************************
+dnl *** Check for gappinfo implementation (GIO) ***
+dnl ***********************************************
+AC_ARG_WITH(appinfo-impl,
+ [AS_HELP_STRING([--appinfo-impl=@<:@native/generic@:>@],
+ [use appinfo implementation [native]])],
+ [with_appinfo_impl='native'])
+if test "$with_appinfo_impl" != "native" && test "$with_appinfo_impl" != "generic"; then
+ with_appinfo_impl="native"
+AM_CONDITIONAL(APPINFO_IMPL_NATIVE, [test "$with_appinfo_impl" = "native"])
+AM_CONDITIONAL(APPINFO_IMPL_GENERIC, [test "$with_appinfo_impl" = "generic"])
+case $with_appinfo_impl in
+ AC_DEFINE(USE_APPINFO_NATIVE, 1, [Prefer the native application information implementation])
+ AC_DEFINE(USE_APPINFO_GENERIC, 1, [Prefer the generic (freedesktop-based) application information implementation])
dnl ************************
dnl *** check for libelf ***
dnl ************************
--- gio/Makefile.am.orig 2018-05-22 16:21:16.000000000 -0500
+++ gio/Makefile.am 2018-05-25 22:07:09.000000000 -0500
platform_libadd += xdgmime/libxdgmime.la
platform_deps += xdgmime/libxdgmime.la
+appinfo_headers += gosxappinfo.h
appinfo_headers += gdesktopappinfo.h