# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD: branches/RELENG_9_2_0/devel/goffice/Makefile 321967 2013-06-28 16:53:57Z kwm $
#   $MCom: ports/trunk/devel/goffice/Makefile 17268 2013-04-01 05:13:11Z marcus $
#
# !!! When updating goffice, don't forget to update pkg-plist in:
#     science/gchemutils

PORTNAME=	goffice
PORTVERSION=	0.8.17
PORTREVISION=	4
CATEGORIES=	devel gnome
MASTER_SITES=	GNOME

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	GLib/GTK+ set of document centric objects and utilities

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

PORTSCOUT=	ignore

LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre

USE_XZ=		yes
USE_GMAKE=	yes
USE_GNOME=	gnomeprefix intlhack gtk20 libgsf ltverhack
USES=		gettext pathfix pkgconfig
USE_AUTOTOOLS=	libtool
USE_LDCONFIG=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
PLIST_SUB=	VERSION=${PORTVERSION} \
		SHORT_VER=0.8

MAKE_JOBS_SAFE=	yes

OPTIONS_DEFINE=	GCONF
OPTIONS_DEFAULT=GCONF

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGCONF}
USE_GNOME+=	gconf2
.else
CONFIGURE_ARGS+=--with-config-backend=keyfile
.endif

.include <bsd.port.mk>
