# Created by: DarwinSurvivor <darwinsurvivor@gmail.com>
# $FreeBSD: tags/RELEASE_10_1_0/mail/notmuch/Makefile 364482 2014-08-09 22:07:19Z marino $

PORTNAME=	notmuch
PORTVERSION=	0.18.1
CATEGORIES=	mail
MASTER_SITES=	http://notmuchmail.org/releases/

MAINTAINER=	ross@rosstimson.com
COMMENT=	Thread-based email index, search, and tagging application

LICENSE=	GPLv3

BUILD_DEPENDS=	sphinx-build:${PORTSDIR}/textproc/py-sphinx
LIB_DEPENDS=	libgmime-2.6.so:${PORTSDIR}/mail/gmime26 \
		libxapian.so:${PORTSDIR}/databases/xapian-core \
		libtalloc.so:${PORTSDIR}/devel/talloc

HAS_CONFIGURE=	yes
USES=		pkgconfig gmake
CONFIGURE_ARGS=	--prefix=${PREFIX} --mandir=${MANPREFIX}/man
USE_LDCONFIG=	yes

USE_PYTHON_BUILD=	yes
MAKE_ENV+=		PYTHONCMD=${PYTHON_CMD}

.include <bsd.port.mk>
