summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2007-08-27 19:54:27 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2007-08-27 19:54:27 +0000
commitf479254ced7467b790beb2a2c1a894b93e59ad83 (patch)
tree7509854953992af9f9433773f2b5e4482f3bc124
parent- Fix a typo. (diff)
Add optional support for consolekit.
Discussed with: marcus
Notes
Notes: svn path=/head/; revision=198402
-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 )