ports/sysutils/consolekit2/files/patch-configure.ac
Adriaan de Groot dd54f12532 sysutils/consolekit2: update to 1.2.2, latest upstream
This commit picks up several ideas:
- update to the 1.2.2 release from upstream (PR 252783)
- make the X11 option useful again; it **was** useless, so
  PR 255847 proposed removing the option -- X11 is mandatory --
  but there was patches also to remove X11 entirely, for a
  Wayland-only experience. I've massaged it all until the
  option is useful and meaningfully selects for X11 (or not).

The original patch for optionalize-X11 came from amdmi3@,
and the "competing" one was -- via DankBSD, from unrelentingtech,
who also has other patches (obtained from GitHub) for CK2.

PR:		252783 255847
Reported by:	Olivier Duchateau
2021-05-16 23:46:47 +02:00

23 lines
678 B
Text

--- configure.ac.orig 2020-12-07 11:27:30 UTC
+++ configure.ac
@@ -96,7 +96,11 @@ AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_40,
# Check for X11 installed
-XDT_CHECK_LIBX11_REQUIRE()
+XDT_CHECK_LIBX11()
+if test "x$with_x" = "xyes" ; then
+ XDT_CHECK_LIBX11_REQUIRE()
+fi
+AM_CONDITIONAL([USE_LIBX11], [test "x$with_x" = xyes])
# Check for Polkit/PolicyKit
XDT_CHECK_OPTIONAL_PACKAGE([POLKIT], [polkit-gobject-1], [polkit_minimum_version],
@@ -553,7 +557,6 @@ doc/Makefile
doc/console-kit-daemon.1m
doc/dbus/ConsoleKit.xml
doc/dbus/Makefile
-doc/libconsolekit/Makefile
libconsolekit/Makefile
libconsolekit/libconsolekit.pc
libck-connector/Makefile