summaryrefslogtreecommitdiff
path: root/sysutils/consolekit/Makefile
blob: dd264a7f497922683b7bf42dd19852e757c9c76f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $NetBSD: Makefile,v 1.8 2009/03/18 13:30:45 jmcneill Exp $
#

CONSOLEKIT_VER=		0.3.0
DISTNAME=		ConsoleKit-${CONSOLEKIT_VER}
PKGNAME=		consolekit-${CONSOLEKIT_VER}
PKGREVISION=		3
CATEGORIES=		sysutils
MASTER_SITES=		http://people.freedesktop.org/~mccann/dist/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=	netbsd-desktop@NetBSD.org
HOMEPAGE=	http://www.freedesktop.org/wiki/Software/ConsoleKit
COMMENT=	Framework for defining and tracking users, login sessions, and seats

PKG_DESTDIR_SUPPORT=	user-destdir
PKG_SYSCONFSUBDIR=	ConsoleKit

EGDIR=		${PREFIX}/share/examples/consolekit
CONF_FILES+=	${EGDIR}/00-primary.seat ${PKG_SYSCONFDIR}/seats.d/00-primary.seat
CONF_FILES+=	${EGDIR}/ConsoleKit.conf ${PKG_SYSCONFBASE}/dbus-1/system.d/ConsoleKit.conf

MAKE_DIRS=	${PKG_SYSCONFDIR}/seats.d

BUILD_DEFS+=		VARBASE
BUILD_DEFS+=		PKG_SYSCONFBASE

GNU_CONFIGURE=		YES
USE_DIRS+=		xdg-1.4
USE_PKGLOCALEDIR=	YES
USE_TOOLS+=		gmake intltool msgfmt perl pkg-config
USE_TOOLS+=		autoconf automake autoreconf
USE_LIBTOOL=		YES

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASE:Q}
CONFIGURE_ARGS+=	--localstatedir=${VARBASE}

# TODO
#CONFIGURE_ARGS+=	--enable-pam-module
#.include "../../mk/pam.buildlink3.mk"

post-extract:
	${CP} ${FILESDIR}/ck-sysdeps-netbsd.c ${WRKSRC}/src/

pre-configure:
	cd ${WRKSRC} && autoreconf -vi

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
post-install:
	${CP} ${FILESDIR}/ck-get-x11-display-device.FreeBSD \
		${DESTDIR}${PREFIX}/libexec/ck-get-x11-display-device
	${CP} ${FILESDIR}/ck-get-x11-server-pid.FreeBSD \
		${DESTDIR}${PREFIX}/libexec/ck-get-x11-server-pid
.endif

.include "../../devel/zlib/buildlink3.mk"
.include "../../security/policykit/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"