pkgsrc/x11/xfce4-session/options.mk
gutteridge e58ef209b2 xfce4-session: handle a Polkit disabling edge case
Allow Polkit support to be disabled even if Polkit is found in the
build environment (an atypical use case, indeed, but one I just tripped
over).
2020-05-03 20:48:57 +00:00

18 lines
502 B
Makefile

# $NetBSD: options.mk,v 1.4 2020/05/03 20:48:57 gutteridge Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.xfce4-session
PKG_SUPPORTED_OPTIONS= polkit
PKG_SUGGESTED_OPTIONS= polkit
.include "../../mk/bsd.options.mk"
PLIST_VARS= polkit
.if !empty(PKG_OPTIONS:Mpolkit)
.include "../../security/mate-polkit/buildlink3.mk"
PLIST.polkit= yes
.else
# For the edge case when Polkit is installed on the system, but isn't
# intended to be enabled, we must explicitly disable it.
CONFIGURE_ARGS+= --disable-polkit
.endif