aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mairix/Makefile
blob: 1e6cb5cbf8a0d672af40897d38e2d77dce9831cf (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
47
48
# Created by: Oliver Braun <obraun@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mairix
PORTVERSION=    0.22
CATEGORIES= mail
MASTER_SITES=   SF

MAINTAINER= jjuanino@gmail.com
COMMENT=    Indexing and searching in Maildir, MH, or mbox folders

USE_GMAKE=  yes
HAS_CONFIGURE=  yes
USES=       bison

MAN1=   mairix.1
MAN5=   mairixrc.5
PLIST_FILES=    bin/mairix %%EXAMPLESDIR%%/dotmairixrc.eg
PLIST_DIRS= %%EXAMPLESDIR%%

OPTIONS_DEFINE= GZIP BZIP
GZIP_DESC=  Enable gzip mbox support
BZIP_DESC=  Enable bzip2 mbox support

OPTIONS_DEFAULT=

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGZIP}
CONFIGURE_ARGS+=    --enable-gzip-mbox
.else
CONFIGURE_ARGS+=    --disable-gzip-mbox
.endif

.if ${PORT_OPTIONS:MBZIP}
CONFIGURE_ARGS+=    --enable-bzip-mbox
.else
CONFIGURE_ARGS+=    --disable-bzip-mbox
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mairix ${PREFIX}/bin
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/dotmairixrc.eg ${EXAMPLESDIR}
    ${INSTALL_MAN} ${WRKSRC}/mairix.1 ${PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/mairixrc.5 ${PREFIX}/man/man5

.include <bsd.port.mk>