mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
- Convert USE_GMAKE (add gmake to USES)
- Define LICENSE (GPLv2) - Make the port parallel build (-jX) safe - Install manpages relative to MANPREFIX - Add DOCS and EXAMPLES options; use new smart syntax - Rename BZIP option to our standard BZIP2 Reported by: pointyhat-west
This commit is contained in:
parent
c831bf23e4
commit
1309964973
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323781
@ -9,40 +9,42 @@ MASTER_SITES= SF
|
||||
MAINTAINER= jjuanino@gmail.com
|
||||
COMMENT= Indexing and searching in Maildir, MH, or mbox folders
|
||||
|
||||
USE_GMAKE= yes
|
||||
LICENSE= GPLv2
|
||||
|
||||
USES= bison gmake
|
||||
HAS_CONFIGURE= yes
|
||||
USES= bison
|
||||
|
||||
MAN1= mairix.1
|
||||
MAN5= mairixrc.5
|
||||
PLIST_FILES= bin/mairix %%EXAMPLESDIR%%/dotmairixrc.eg
|
||||
PLIST_DIRS= %%EXAMPLESDIR%%
|
||||
MAN1= mairix.1
|
||||
MAN5= mairixrc.5
|
||||
PORTDOCS= NEWS README
|
||||
PORTEXAMPLES= dotmairixrc.eg
|
||||
PLIST_FILES= bin/mairix
|
||||
|
||||
OPTIONS_DEFINE= GZIP BZIP
|
||||
GZIP_DESC= Enable gzip mbox support
|
||||
BZIP_DESC= Enable bzip2 mbox support
|
||||
OPTIONS_DEFINE= GZIP BZIP2 EXAMPLES DOCS
|
||||
GZIP_DESC= gzip compressed mbox support
|
||||
BZIP2_DESC= bzip2 compressed mbox support
|
||||
|
||||
OPTIONS_DEFAULT=
|
||||
GZIP_CONFIGURE_ENABLE= gzip-mbox
|
||||
BZIP2_CONFIGURE_ENABLE= bzip-mbox
|
||||
|
||||
.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 not hardcode make(1) binary name and fix atomicity to allow -jX builds
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E 's|cd (.+) ; make|$$(MAKE) -C \1|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/mairix ${PREFIX}/bin
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/mairix.1 ${MANPREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/mairixrc.5 ${MANPREFIX}/man/man5
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/dotmairixrc.eg ${EXAMPLESDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/mairix.1 ${PREFIX}/man/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/mairixrc.5 ${PREFIX}/man/man5
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user