aboutsummaryrefslogtreecommitdiffstats
path: root/devel/dconf/Makefile
blob: c7947cd410ce52c04b6028d7581f4a268600defb (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/devel/dconf/Makefile 18669 2013-08-29 21:14:12Z kwm $

PORTNAME?=  dconf
PORTVERSION=    0.14.1
PORTREVISION=   0
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
DISTNAME=   dconf-${PORTVERSION}
DIST_SUBDIR=    gnome3

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

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

USE_XZ=     yes
USES=       gettext gmake pathfix pkgconfig
USE_GNOME=  glib20 gnomehier intltool
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
MAKE_JOBS_UNSAFE=   yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

DCONF_SLAVE?=   no

.if ${DCONF_SLAVE} == "editor"
USE_GNOME+= gtk30
INSTALLS_ICONS= yes
GLIB_SCHEMAS=   ca.desrt.dconf-editor.gschema.xml
LIB_DEPENDS+=   libdconf.so:${PORTSDIR}/devel/dconf
.else
CONFIGURE_ARGS+=--disable-editor
.endif

.if ${DCONF_SLAVE} == "no"
MAN1=       dconf-editor.1 dconf-service.1 dconf.1
MAN7=       dconf.7
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \
        ${WRKSRC}/engine/dconf-engine.c \
        ${WRKSRC}/bin/dconf-update.c
    @${REINPLACE_CMD} -e 's|/usr/local/|${LOCALBASE}/|g' \
        ${WRKSRC}/editor/dconf-model.c
    @${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|g' \
        ${WRKSRC}/editor/dconf-model.vala
    @${REINPLACE_CMD} -e 's|-Wno-unused-but-set-variable||g' \
        ${WRKSRC}/bin/Makefile.in \
        ${WRKSRC}/client/Makefile.in \
        ${WRKSRC}/editor/Makefile.in

#pre-build:
#   ${GMAKE} -C ${WRKSRC}/client dconf-client.c libdconf.so.0
#   ${GMAKE} -C ${WRKSRC}/dbus-1 dconf-dbus-1.c libdconf-dbus-1.so.0

post-install:
    -${LOCALBASE}/bin/gio-querymodules ${PREFIX}/lib/gio/modules
    @${MKDIR} ${PREFIX}/etc/dconf/db
    @${MKDIR} ${PREFIX}/etc/dconf/profile

.include <bsd.port.mk>