1 # Created by: Tobias Roth <ports@fsck.ch>
8 MASTER_SITES= ftp://ftp.berlios.de/pub/slim/ \
11 MAINTAINER= henry.hu.sh@gmail.com
12 COMMENT= Graphical login manager for X11, derived from Login.app
16 LIB_DEPENDS= libpthread-stubs.so:devel/libpthread-stubs \
17 libpng.so:graphics/png \
18 libfreetype.so:print/freetype2 \
19 libfontconfig.so:x11-fonts/fontconfig
21 USES= cmake jpeg pkgconfig
22 USE_XORG= ice sm x11 xau xcb xdmcp xext xft xmu xorg-server xrandr \
26 SUB_FILES= pkg-message
28 CMAKE_ARGS= -DUSE_CONSOLEKIT=yes \
30 -DBUILD_SHARED_LIBS=yes
32 OPTIONS_DEFINE= PAM UTF8 CONSOLEKIT
33 OPTIONS_DEFAULT= PAM CONSOLEKIT
36 UTF8_DESC= Support UTF-8 characters
37 CONSOLEKIT_DESC=Enable support for consolekit
39 PLIST_SUB+= VERSION="${PORTVERSION}"
41 PAM_CMAKE_ON= -DUSE_PAM=yes
42 PAM_CMAKE_OFF= -DUSE_PAM=no
44 # patch taken from slim-unicode in Arch User Repository
45 UTF8_EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-utf8
47 CONSOLEKIT_CMAKE_ON= -DUSE_CONSOLEKIT=yes
48 CONSOLEKIT_LIB_DEPENDS= libck-connector.so:sysutils/consolekit
49 CONSOLEKIT_CMAKE_OFF= -DUSE_CONSOLEKIT=no
52 @${CP} ${WRKSRC}/slim.conf ${WRKSRC}/slim.conf.sample
53 @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
54 ${WRKSRC}/slim.conf.sample
55 @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
59 ${INSTALL_DATA} ${FILESDIR}/pam.conf ${STAGEDIR}${PREFIX}/etc/pam.d/slim.sample
61 .include <bsd.port.mk>