aboutsummaryrefslogtreecommitdiffstats
path: root/mail/notmuch/Makefile
blob: db9e657baec405c0d11e8a8ccc8474038342a811 (plain) (blame)
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
# Created by: DarwinSurvivor <darwinsurvivor@gmail.com>
# $FreeBSD$

PORTNAME=   notmuch
PORTVERSION=    0.21
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:textproc/py-sphinx \
        c++filt:devel/binutils
LIB_DEPENDS=    libgmime-2.6.so:mail/gmime26 \
        libxapian.so:databases/xapian-core \
        libtalloc.so: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: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}
EMACS_USE=      EMACS=yes
ZSH_CONFIGURE_OFF=  --without-zsh-completion

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.3.0

.include <bsd.port.mk>