# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD: deskutils/planner/Makefile 327718 2013-09-20 16:21:37Z bapt $
#   $MCom: ports-stable/deskutils/planner/Makefile,v 1.4 2009/04/16 00:34:24 kwm Exp $

PORTNAME=	planner
PORTVERSION=	0.14.6
PORTREVISION=	1
CATEGORIES=	deskutils gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome2

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Project management application for GNOME 2

USE_XZ=		yes
USES=		pathfix gettext gmake pkgconfig
USE_GNOME=	gnomeprefix intlhack libgnomeui libgnomeprintui \
		libgsf desktopfileutils
WANT_GNOME=	yes
INSTALLS_OMF=	yes
INSTALLS_ICONS=	yes
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-static \
		--disable-python \
		--disable-python-plugin
CPPFLAGS+=	-I${LOCALBASE}/include -DGLIB_COMPILATION
LDFLAGS+=	-L${LOCALBASE}/lib

GCONF_SCHEMAS=	planner.schemas

MAN1=		planner.1

OPTIONS_DEFINE=	GDA
GDA_DESC=	Enable database support (though libgda)

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGDA}
USE_GNOME+=	libgda3
CONFIGURE_ARGS+=--with-database=gda3
PLIST_SUB+=	GDA=""
.else
PLIST_SUB+=	GDA="@comment "
.endif

post-install:
	@-update-desktop-database

.include <bsd.port.mk>
