summaryrefslogtreecommitdiffstats
path: root/sysutils/accountsservice/Makefile
blob: ba55fb4f521cefa617368ee2b8829acfb4402386 (plain) (blame)
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
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
#    $MCom: ports/trunk/sysutils/accountsservice/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=   accountsservice
PORTVERSION=    0.6.24
PORTREVISION=   3
CATEGORIES= sysutils devel
MASTER_SITES=   http://www.freedesktop.org/software/${PORTNAME}/

MAINTAINER= kwm@FreeBSD.org
COMMENT=    D-Bus interface for user account query and manipulation

BUILD_DEPEND=   g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
LIB_DEPENDS=    xslt:${PORTSDIR}/textproc/libxslt \
        dbus-glib-1:${PORTSDIR}/devel/dbus-glib \
        polkit-gobject-1:${PORTSDIR}/sysutils/polkit

USE_XZ=     yes
USE_GNOME=  glib20 intlhack gnomehier
USES=       gettext pathfix pkgconfig
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --disable-systemd --localstatedir=/var/
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e 's|/etc/gdm/custom.conf|${LOCALBASE}/etc/gdm/custom.conf|g' \
        ${WRKSRC}/src/daemon.c
    @${REINPLACE_CMD} -e 's|/lib/AccountsService|/db/AccountsService|g' \
        ${WRKSRC}/src/user.c ${WRKSRC}/src/Makefile.in

post-install:
    @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>