summaryrefslogtreecommitdiffstats
path: root/devel/gconf2/Makefile
blob: 3f137c64663c5daa9e608e3df3387b1846608c02 (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
# Created by: Ade Lovett <ade@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/devel/gconf2/Makefile 18610 2013-06-30 16:33:05Z marcus $

PORTNAME=   gconf2
PORTVERSION=    3.2.6
PORTREVISION=   0
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
MASTER_SITE_SUBDIR= sources/GConf/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
DISTNAME=   GConf-${PORTVERSION}
DIST_SUBDIR=    gnome2

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

LICENSE=    LGPL20
LICENSE_FILE=   ${WRKSRC}/COPYING

NO_STAGE=   yes
USE_XZ=     yes

.if !defined(REFERENCE_PORT)

LIB_DEPENDS=    libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
        libpolkit-gobject-1.so:${PORTSDIR}/sysutils/polkit

USES=       gettext gmake pathfix pkgconfig
USE_GNOME=  gnomehier orbit2 gtk20 libxml2 ltverhack \
        referencehack intlhack dconf introspection:build
USE_LDCONFIG=   yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \
        --with-gtk=2.0 \
        --disable-gtk-doc
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
MAN1=       gconftool-2.1 gsettings-data-convert.1 \
        gsettings-schema-convert.1

OPTIONS_DEFINE= LDAP

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP=   yes
CONFIGURE_ARGS+=--with-openldap
PLIST_SUB+= LDAP=""
.else
CONFIGURE_ARGS+=--without-openldap
PLIST_SUB+= LDAP="@comment "
.endif

post-install:
    -${LOCALBASE}/bin/gio-querymodules ${PREFIX}/lib/gio/modules

.include <bsd.port.mk>

.endif