Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2015 22:06:51 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380229 - head/x11/slim
Message-ID:  <201503012206.t21M6p07005353@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Mar  1 22:06:50 2015
New Revision: 380229
URL: https://svnweb.freebsd.org/changeset/ports/380229
QAT: https://qat.redports.org/buildarchive/r380229/

Log:
  x11/slim: make consolekit support optional
  
  PR:		197585
  Submitted by:	Stefan (ott.net)
  Approved by:	maintainer (Henry Hu)

Modified:
  head/x11/slim/Makefile

Modified: head/x11/slim/Makefile
==============================================================================
--- head/x11/slim/Makefile	Sun Mar  1 21:24:40 2015	(r380228)
+++ head/x11/slim/Makefile	Sun Mar  1 22:06:50 2015	(r380229)
@@ -3,7 +3,7 @@
 
 PORTNAME=	slim
 PORTVERSION=	1.3.6
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	x11
 MASTER_SITES=	ftp://ftp.berlios.de/pub/slim/ \
 		SF/slim.berlios
@@ -18,7 +18,6 @@ LIB_DEPENDS=	libdbus-1.so:${PORTSDIR}/de
 		libjpeg.so:${PORTSDIR}/graphics/jpeg \
 		libpng.so:${PORTSDIR}/graphics/png \
 		libfreetype.so:${PORTSDIR}/print/freetype2 \
-		libck-connector.so:${PORTSDIR}/sysutils/consolekit \
 		libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
 
 USES=		cmake pkgconfig
@@ -32,10 +31,11 @@ CMAKE_ARGS=	-DUSE_CONSOLEKIT=yes \
 	-DBUILD_SLIMLOCK=no \
 	-DBUILD_SHARED_LIBS=yes
 
-OPTIONS_DEFINE=		PAM UTF8
-OPTIONS_DEFAULT=	PAM
+OPTIONS_DEFINE=		PAM UTF8 CONSOLEKIT
+OPTIONS_DEFAULT=	PAM CONSOLEKIT
 
 UTF8_DESC=	Support UTF-8 characters
+CONSOLEKIT_DESC=Enable support for consolekit
 
 PLIST_SUB+=	VERSION="${PORTVERSION}"
 
@@ -54,6 +54,13 @@ PLIST_SUB+=	PAM="@comment "
 EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-utf8
 .endif
 
+.if ${PORT_OPTIONS:MCONSOLEKIT}
+CMAKE_ARGS+=	-DUSE_CONSOLEKIT=yes
+LIB_DEPENDS+=	libck-connector.so:${PORTSDIR}/sysutils/consolekit
+.else
+CMAKE_ARGS+=	-DUSE_CONSOLEKIT=no
+.endif
+
 post-patch:
 	@${CP} ${WRKSRC}/slim.conf ${WRKSRC}/slim.conf.sample
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503012206.t21M6p07005353>