Tweak mail/mairix version 0.22
[dports.git] / mail / mairix / Makefile
1 # Created by: Oliver Braun <obraun@FreeBSD.org>
2 # $FreeBSD: mail/mairix/Makefile 313635 2013-03-08 11:32:11Z bapt $
3
4 PORTNAME=       mairix
5 PORTVERSION=    0.22
6 CATEGORIES=     mail
7 MASTER_SITES=   SF
8
9 MAINTAINER=     jjuanino@gmail.com
10 COMMENT=        Indexing and searching in Maildir, MH, or mbox folders
11
12 USE_GMAKE=      yes
13 HAS_CONFIGURE=  yes
14 USES=           bison
15
16 MAN1=   mairix.1
17 MAN5=   mairixrc.5
18 PLIST_FILES=    bin/mairix %%EXAMPLESDIR%%/dotmairixrc.eg
19 PLIST_DIRS=     %%EXAMPLESDIR%%
20
21 OPTIONS_DEFINE= GZIP BZIP
22 GZIP_DESC=      Enable gzip mbox support
23 BZIP_DESC=      Enable bzip2 mbox support
24
25 OPTIONS_DEFAULT=
26
27 .include <bsd.port.options.mk>
28
29 .if ${PORT_OPTIONS:MGZIP}
30 CONFIGURE_ARGS+=        --enable-gzip-mbox
31 .else
32 CONFIGURE_ARGS+=        --disable-gzip-mbox
33 .endif
34
35 .if ${PORT_OPTIONS:MBZIP}
36 CONFIGURE_ARGS+=        --enable-bzip-mbox
37 .else
38 CONFIGURE_ARGS+=        --disable-bzip-mbox
39 .endif
40
41 do-install:
42         ${INSTALL_PROGRAM} ${WRKSRC}/mairix ${PREFIX}/bin
43         ${MKDIR} ${EXAMPLESDIR}
44         ${INSTALL_DATA} ${WRKSRC}/dotmairixrc.eg ${EXAMPLESDIR}
45         ${INSTALL_MAN} ${WRKSRC}/mairix.1 ${PREFIX}/man/man1
46         ${INSTALL_MAN} ${WRKSRC}/mairixrc.5 ${PREFIX}/man/man5
47
48 .include <bsd.port.mk>