aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2007-08-28 03:54:27 +0800
committerflz <flz@FreeBSD.org>2007-08-28 03:54:27 +0800
commit11030a210c9d58aa24cec2b6b54219ace2244d02 (patch)
treefc473df9c17e99210aba021fb5ce917620dc3abf /x11
parent838747b8d22d38366029b5a8ea6d3de65e0a69ef (diff)
downloadfreebsd-ports-gnome-11030a210c9d58aa24cec2b6b54219ace2244d02.tar.gz
freebsd-ports-gnome-11030a210c9d58aa24cec2b6b54219ace2244d02.tar.zst
freebsd-ports-gnome-11030a210c9d58aa24cec2b6b54219ace2244d02.zip
Add optional support for consolekit.
Discussed with: marcus
Diffstat (limited to 'x11')
-rw-r--r--x11/gdm/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index efc2a7577d3f..95918df59f18 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -33,7 +33,6 @@ USE_GMAKE= yes
USE_GNOME= gnomehack intlhack gnomehier libgnomeui librsvg2 gnomedocutils \
gnomeprefix
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-console-kit=no
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
GTKDOC="false"
@@ -46,7 +45,8 @@ GNOME_LOCALSTATEDIR= /var
MAN1= gdm.1
OPTIONS= IPV6 "Enable IPv6 support" on \
- LOG_LIMIT "Limit ~/.xsession-errors size" on
+ LOG_LIMIT "Limit ~/.xsession-errors size" on \
+ CONSOLEKIT "Enable ConsoleKit support" off
.include <bsd.port.pre.mk>
@@ -66,6 +66,13 @@ CONFIGURE_ARGS+= --disable-ipv6
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-daemon_slave.c
.endif
+.if defined(WITH_CONSOLEKIT)
+CONFIGURE_ARGS= --with-console-kit=yes
+LIB_DEPENDS= ck-connector.0:${PORTSDIR}/sysutils/consolekit
+.else
+CONFIGURE_ARGS= --with-console-kit=no
+.endif
+
post-patch:
.if ( ${OSVERSION} > 600000 && ${OSVERSION} < 600006 ) || \
( ${OSVERSION} < 503101 )