summaryrefslogtreecommitdiffstats
path: root/mail/notmuch/Makefile
blob: 15c7d92a408cd756072973d636697197c4e0bc3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: DarwinSurvivor <darwinsurvivor@gmail.com>
# $FreeBSD$

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

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

LICENSE=	GPLv3

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

OPTIONS_DEFINE=	BASH EMACS ZSH
BASH_DESC=	Install bash completion (requires shells/bash-completion)
EMACS_DESC=	Install EMACS lisp files (requires emacs)
ZSH_DESC=	Install zsh completion
OPTIONS_SUB=	yes

BASH_BUILD_DEPENDS=	bash-completion>=1.90:${PORTSDIR}/shells/bash-completion
BASH_RUN_DEPENDS=	${BASH_BUILD_DEPENDS}
BASH_CONFIGURE_OFF=	--without-bash-completion
EMACS_CONFIGURE_OFF=	--without-emacs
EMACS_CONFIGURE_ON=	--emacslispdir=${PREFIX}/${EMACS_SITE_LISPDIR} \
			--emacsetcdir=${PREFIX}/${EMACS_SITE_LISPDIR}
ZSH_CONFIGURE_OFF=	--without-zsh-completion

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MEMACS}
USE_EMACS=	yes
.endif

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

MAKE_ENV+=		PYTHONCMD=${PYTHON_CMD}

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/notmuch
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnotmuch.so.4.2.0

.include <bsd.port.mk>
OpenPOWER on IntegriCloud