diff -u consolekit2.orig/Makefile consolekit2/Makefile --- consolekit2.orig/Makefile 2018-09-26 12:34:16.727753000 +0200 +++ consolekit2/Makefile 2018-09-26 12:34:01.066266000 +0200 @@ -14,8 +14,7 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libdbus-1.so:devel/dbus \ - libpolkit-gobject-1.so:sysutils/polkit +LIB_DEPENDS= libdbus-1.so:devel/dbus WRKSRC= ${WRKDIR}/ConsoleKit2-${PORTVERSION} USES= gettext gmake libtool localbase pathfix pkgconfig tar:bzip2 @@ -28,7 +27,7 @@ --enable-pam-module \ --with-pam-module-dir=${PREFIX}/lib \ --localstatedir=/var \ - --enable-polkit \ + --disable-polkit \ --enable-introspection \ --without-html-dir \ --disable-udev-acl \ @@ -38,5 +37,13 @@ --disable-libudev \ --without-systemdsystemunitdir INSTALL_TARGET= install-strip + +OPTIONS_DEFINE= POLKIT +OPTIONS_DEFAULT= POLKIT + +POLKIT_LIB_DEPENDS= libpolkit-gobject-1.so:sysutils/polkit +POLKIT_DESC= Build with PolicyKit support +POLKIT_CONFIGURE_ENABLE=polkit + .include