It brings bison as a build dependency in case it is set the following way: USES= bison or USES= bison:build it brings bison as a run dependency in case it is set the following way: USES= bison:run it brings bison both as a run and build dependency in case it the set the following way: USES= bison:both While here trim some headers Convert some USE_GNOME= gnomehack to USES= pathfix
48 lines
1 KiB
Makefile
48 lines
1 KiB
Makefile
# 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>
|