# New ports collection Makefile for:	taskwarrior
# Date created:				12 June 2009
# Whom:					gahr
#
# $FreeBSD: ports/deskutils/taskwarrior/Makefile,v 1.16 2011/05/27 06:58:23 gahr Exp $
#

PORTNAME=	taskwarrior
PORTVERSION=	1.9.4
CATEGORIES=	deskutils
MASTER_SITES=	http://taskwarrior.org/download/
DISTNAME=	task-${PORTVERSION}

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	A framework for supercharged task and contact management

OPTIONS=	LUA "Enable LUA extensions" off

WRKSRC=		${WRKDIR}/${DISTNAME}

.include <bsd.port.options.mk>

.if defined(WITH_LUA)
USE_LUA=	5.1
.endif

USE_CMAKE=	yes
CMAKE_OUTSOURCE=yes
CMAKE_ARGS+=	-DTASK_DOCDIR:STRING=${DATADIR:S/${PREFIX}\///} \
   		-DTASK_MAN1DIR:STRING=man/man1 \
		-DTASK_MAN5DIR:STRING=man/man5

MAN1=		task.1
MAN5=		taskrc.5 task-faq.5 task-color.5 task-sync.5 task-tutorial.5

.include <bsd.port.mk>
