# Created by: DarwinSurvivor <darwinsurvivor@gmail.com>
# $FreeBSD: tags/RELEASE_10_0_0/mail/notmuch/Makefile 327742 2013-09-20 19:59:12Z bapt $

PORTNAME=	notmuch
PORTVERSION=	0.15.2
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://notmuchmail.org/releases/

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

LICENSE=	GPLv3

LIB_DEPENDS=	gmime-2.4:${PORTSDIR}/mail/gmime24 \
		xapian:${PORTSDIR}/databases/xapian-core \
		talloc:${PORTSDIR}/devel/talloc

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

MAN1=		notmuch.1 notmuch-config.1 \
		notmuch-count.1 notmuch-dump.1 \
		notmuch-new.1 notmuch-reply.1 \
		notmuch-restore.1 notmuch-search.1 \
		notmuch-setup.1 notmuch-show.1 \
		notmuch-tag.1
MAN5=		notmuch-hooks.5
MAN7=		notmuch-search-terms.7
MANCOMPRESSED=	yes

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