svn commit: r380229 - head/x11/slim

John Marino marino at FreeBSD.org
Sun Mar 1 22:06:51 UTC 2015


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' \


More information about the svn-ports-head mailing list