2012-11-28 00:11:32 +01:00
|
|
|
# Created by: Tobias Roth <ports@fsck.ch>
|
2006-01-08 22:48:57 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= slim
|
2014-03-14 16:31:42 +01:00
|
|
|
PORTVERSION= 1.3.6
|
2015-03-13 15:26:17 +01:00
|
|
|
PORTREVISION= 9
|
2006-01-08 22:48:57 +01:00
|
|
|
CATEGORIES= x11
|
2013-05-14 23:34:12 +02:00
|
|
|
MASTER_SITES= ftp://ftp.berlios.de/pub/slim/ \
|
|
|
|
SF/slim.berlios
|
2006-01-08 22:48:57 +01:00
|
|
|
|
2009-10-29 23:26:14 +01:00
|
|
|
MAINTAINER= henry.hu.sh@gmail.com
|
2006-01-08 22:48:57 +01:00
|
|
|
COMMENT= Graphical login manager for X11, derived from Login.app
|
|
|
|
|
2012-07-04 23:53:36 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-10-06 11:09:21 +02:00
|
|
|
LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus \
|
|
|
|
libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
|
2014-12-25 20:04:25 +01:00
|
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
2013-10-06 11:09:21 +02:00
|
|
|
libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
|
|
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
|
2006-01-08 22:48:57 +01:00
|
|
|
|
2015-06-22 20:33:20 +02:00
|
|
|
USES= cmake jpeg pkgconfig
|
2014-03-14 16:31:42 +01:00
|
|
|
USE_XORG= ice sm x11 xau xcb xdmcp xext xft xmu xorg-server xrandr \
|
2014-11-02 10:44:01 +01:00
|
|
|
xrender xt
|
2012-08-05 02:31:46 +02:00
|
|
|
USE_RC_SUBR= slim
|
2014-11-02 10:44:01 +01:00
|
|
|
USE_LDCONFIG= yes
|
2007-07-19 18:09:00 +02:00
|
|
|
SUB_FILES= pkg-message
|
2006-01-08 22:48:57 +01:00
|
|
|
|
2014-03-14 16:31:42 +01:00
|
|
|
CMAKE_ARGS= -DUSE_CONSOLEKIT=yes \
|
|
|
|
-DBUILD_SLIMLOCK=no \
|
|
|
|
-DBUILD_SHARED_LIBS=yes
|
2006-01-08 22:48:57 +01:00
|
|
|
|
2015-03-01 23:06:50 +01:00
|
|
|
OPTIONS_DEFINE= PAM UTF8 CONSOLEKIT
|
|
|
|
OPTIONS_DEFAULT= PAM CONSOLEKIT
|
2006-01-08 22:48:57 +01:00
|
|
|
|
2014-09-20 21:07:37 +02:00
|
|
|
UTF8_DESC= Support UTF-8 characters
|
2015-03-01 23:06:50 +01:00
|
|
|
CONSOLEKIT_DESC=Enable support for consolekit
|
2014-09-20 21:07:37 +02:00
|
|
|
|
2014-03-14 16:31:42 +01:00
|
|
|
PLIST_SUB+= VERSION="${PORTVERSION}"
|
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2007-01-17 03:58:19 +01:00
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
.if ${PORT_OPTIONS:MPAM}
|
2012-07-04 23:53:36 +02:00
|
|
|
CMAKE_ARGS+= -DUSE_PAM=yes
|
|
|
|
PLIST_SUB+= PAM=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_PAM=no
|
|
|
|
PLIST_SUB+= PAM="@comment "
|
|
|
|
.endif
|
|
|
|
|
2014-09-20 21:07:37 +02:00
|
|
|
.if ${PORT_OPTIONS:MUTF8}
|
|
|
|
# patch taken from slim-unicode in Arch User Repository
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-utf8
|
|
|
|
.endif
|
|
|
|
|
2015-03-01 23:06:50 +01:00
|
|
|
.if ${PORT_OPTIONS:MCONSOLEKIT}
|
|
|
|
CMAKE_ARGS+= -DUSE_CONSOLEKIT=yes
|
|
|
|
LIB_DEPENDS+= libck-connector.so:${PORTSDIR}/sysutils/consolekit
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_CONSOLEKIT=no
|
|
|
|
.endif
|
|
|
|
|
2012-06-03 08:55:46 +02:00
|
|
|
post-patch:
|
2013-05-14 23:34:12 +02:00
|
|
|
@${CP} ${WRKSRC}/slim.conf ${WRKSRC}/slim.conf.sample
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/slim.conf.sample
|
2014-11-02 10:44:01 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
|
2014-03-26 22:18:57 +01:00
|
|
|
${WRKSRC}/slim.1
|
2012-06-11 00:02:00 +02:00
|
|
|
|
2006-01-08 22:48:57 +01:00
|
|
|
post-install:
|
2013-03-22 09:16:07 +01:00
|
|
|
. if ${PORT_OPTIONS:MPAM}
|
2013-10-06 11:09:21 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/pam.conf ${STAGEDIR}${PREFIX}/etc/pam.d/slim.default
|
2012-07-04 23:53:36 +02:00
|
|
|
. endif
|
2006-01-08 22:48:57 +01:00
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
.include <bsd.port.mk>
|