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
|
2018-08-27 18:42:30 +02:00
|
|
|
PORTREVISION= 16
|
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
|
|
|
|
|
2017-03-29 08:50:28 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
2016-04-01 16:33:55 +02:00
|
|
|
libfreetype.so:print/freetype2 \
|
|
|
|
libfontconfig.so: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 \
|
2017-03-29 08:50:28 +02:00
|
|
|
-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
|
2018-08-27 18:42:30 +02:00
|
|
|
OPTIONS_DEFAULT= PAM UTF8 CONSOLEKIT
|
2015-09-26 10:54:27 +02:00
|
|
|
OPTIONS_SUB= yes
|
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}"
|
|
|
|
|
2015-09-26 10:54:27 +02:00
|
|
|
PAM_CMAKE_ON= -DUSE_PAM=yes
|
|
|
|
PAM_CMAKE_OFF= -DUSE_PAM=no
|
2007-01-17 03:58:19 +01:00
|
|
|
|
2014-09-20 21:07:37 +02:00
|
|
|
# patch taken from slim-unicode in Arch User Repository
|
2015-09-26 10:54:27 +02:00
|
|
|
UTF8_EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-utf8
|
2014-09-20 21:07:37 +02:00
|
|
|
|
2015-09-26 10:54:27 +02:00
|
|
|
CONSOLEKIT_CMAKE_ON= -DUSE_CONSOLEKIT=yes
|
2018-08-27 18:42:30 +02:00
|
|
|
CONSOLEKIT_LIB_DEPENDS= libck-connector.so:sysutils/consolekit2 \
|
|
|
|
libdbus-1.so:devel/dbus
|
2015-09-26 10:54:27 +02:00
|
|
|
CONSOLEKIT_CMAKE_OFF= -DUSE_CONSOLEKIT=no
|
2015-03-01 23:06:50 +01:00
|
|
|
|
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
|
|
|
|
2015-09-26 10:54:27 +02:00
|
|
|
post-install-PAM-on:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/pam.conf ${STAGEDIR}${PREFIX}/etc/pam.d/slim.sample
|
2006-01-08 22:48:57 +01:00
|
|
|
|
2013-03-22 09:16:07 +01:00
|
|
|
.include <bsd.port.mk>
|