# $NetBSD: Makefile.common,v 1.20 2014/10/09 14:06:07 wiz Exp $
#
# used by devel/GConf/Makefile
# used by devel/GConf-ui/Makefile

GCONF_VERSION=		2.32.4

DISTNAME=		GConf-${GCONF_VERSION}
CATEGORIES=		devel gnome
MASTER_SITES=		${MASTER_SITE_GNOME:=sources/GConf/2.32/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.gnome.org/projects/gconf/
COMMENT=		Configuration database system used by GNOME
LICENSE=		gnu-lgpl-v2

# not ready yet.  .schemas are installed in the depot.

DISTINFO_FILE=		${.CURDIR}/../GConf/distinfo
FILESDIR=		${.CURDIR}/../GConf/files
PATCHDIR=		${.CURDIR}/../GConf/patches

USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake intltool msgfmt perl pkg-config

PKGCONFIG_OVERRIDE=	gconf-2.0.pc.in

PKG_SYSCONFSUBDIR=	gconf

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--with-sysconfsubdir=
CONFIGURE_ARGS+=	--enable-gconf-source=xml::${PKG_SYSCONFDIR}/gconf.xml.defaults

BUILDLINK_API_DEPENDS.glib2+=	glib2>=2.28
.include "../../devel/glib2/buildlink3.mk"
