summaryrefslogtreecommitdiffstats
path: root/devel/libmcs/Makefile
blob: 62df5570aa4918a2b38c590789ee3333f1ffba93 (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
# Created by: Oliver Lehmann <oliver@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libmcs
PORTVERSION=	0.7.2
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	http://distfiles.atheme.org/
EXTRACT_SUFX=	.tgz

MAINTAINER=	oliver@FreeBSD.org
COMMENT=	A BSD licenced configuration database system

LIB_DEPENDS=	mowgli.2:${PORTSDIR}/devel/libmowgli

OPTIONS_DEFINE=	GCONF
OPTIONS_DEFAULT=	GCONF

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
USES=		gmake pkgconfig

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGCONF}
USE_GNOME+=	gconf2
CONFIGURE_ARGS+=--enable-gconf
PLIST_SUB=	GCONF=""
.else
CONFIGURE_ARGS+=--disable-gconf
PLIST_SUB=	GCONF="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} 's|$${libdir}/pkgconfig|$${prefix}/libdata/pkgconfig|g' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>
OpenPOWER on IntegriCloud