aboutsummaryrefslogtreecommitdiffstats
path: root/devel/dconf/Makefile
blob: 2bfb083dd16202068e8ba2ac7400da7947305612 (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
39
40
41
42
43
44
45
46
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   dconf
PORTVERSION=    0.26.0
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
DISTNAME=   dconf-${PORTVERSION}
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Configuration database system for GNOME

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  vala>=0.18.1:lang/vala \
        docbook-xsl>=0:textproc/docbook-xsl
LIB_DEPENDS=    libdbus-1.so:devel/dbus

PORTSCOUT=  limitw:1,even

USES=       gettext gmake localbase pathfix pkgconfig tar:xz
USE_GNOME=  glib20 libxslt:build
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes

post-patch:
    @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
        -e 's|"/etc"|"${PREFIX}/etc"|g' \
        ${WRKSRC}/engine/dconf-engine.c \
        ${WRKSRC}/engine/dconf-engine-profile.c \
        ${WRKSRC}/engine/dconf-engine-source-system.c \
        ${WRKSRC}/bin/dconf-update.c \
        ${WRKSRC}/tests/engine.c
    @${REINPLACE_CMD} -e 's|-Wno-unused-but-set-variable||g' \
        ${WRKSRC}/bin/Makefile.in \
        ${WRKSRC}/client/Makefile.in
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
        ${WRKSRC}/docs/Makefile.in

post-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/etc/dconf/db
    @${MKDIR} ${STAGEDIR}${PREFIX}/etc/dconf/profile

.include <bsd.port.mk>