Tweak x11/cinnamon-menus version 2.4.1
[dports.git] / x11 / slim / Makefile
1 # Created by: Tobias Roth <ports@fsck.ch>
2 # $FreeBSD$
3
4 PORTNAME=       slim
5 PORTVERSION=    1.3.6
6 PORTREVISION=   12
7 CATEGORIES=     x11
8 MASTER_SITES=   ftp://ftp.berlios.de/pub/slim/ \
9                 SF/slim.berlios
10
11 MAINTAINER=     henry.hu.sh@gmail.com
12 COMMENT=        Graphical login manager for X11, derived from Login.app
13
14 LICENSE=        GPLv2
15
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
20
21 USES=           cmake jpeg pkgconfig
22 USE_XORG=       ice sm x11 xau xcb xdmcp xext xft xmu xorg-server xrandr \
23                 xrender xt
24 USE_RC_SUBR=    slim
25 USE_LDCONFIG=   yes
26 SUB_FILES=      pkg-message
27
28 CMAKE_ARGS=     -DUSE_CONSOLEKIT=yes \
29         -DBUILD_SLIMLOCK=no \
30         -DBUILD_SHARED_LIBS=yes
31
32 OPTIONS_DEFINE=         PAM UTF8 CONSOLEKIT
33 OPTIONS_DEFAULT=        PAM CONSOLEKIT
34 OPTIONS_SUB=    yes
35
36 UTF8_DESC=      Support UTF-8 characters
37 CONSOLEKIT_DESC=Enable support for consolekit
38
39 PLIST_SUB+=     VERSION="${PORTVERSION}"
40
41 PAM_CMAKE_ON=   -DUSE_PAM=yes
42 PAM_CMAKE_OFF=  -DUSE_PAM=no
43
44 # patch taken from slim-unicode in Arch User Repository
45 UTF8_EXTRA_PATCHES+=    ${PATCHDIR}/extra-patch-utf8
46
47 CONSOLEKIT_CMAKE_ON=    -DUSE_CONSOLEKIT=yes
48 CONSOLEKIT_LIB_DEPENDS= libck-connector.so:sysutils/consolekit
49 CONSOLEKIT_CMAKE_OFF=   -DUSE_CONSOLEKIT=no
50
51 post-patch:
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},' \
56                 ${WRKSRC}/slim.1
57
58 post-install-PAM-on:
59         ${INSTALL_DATA} ${FILESDIR}/pam.conf ${STAGEDIR}${PREFIX}/etc/pam.d/slim.sample
60
61 .include <bsd.port.mk>