1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

- Switch to options helpers

- Minor cleanup
This commit is contained in:
Dmitry Marakasov 2015-11-30 16:47:24 +00:00
parent 6c34e142aa
commit 3767140013
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=402687

View File

@ -22,17 +22,17 @@ OPTIONS_DEFINE= DOCS
pre-extract:
.if !defined(MAX_MAIL_DIRS)
@ ${ECHO_MSG} "You can define MAX_MAIL_DIRS=n."
@ ${ECHO_MSG} "nmzmail will only process this many mailboxes, the default is 32."
@${ECHO_MSG} "You can define MAX_MAIL_DIRS=n."
@${ECHO_MSG} "nmzmail will only process this many mailboxes, the default is 32."
.endif
post-extract:
.if defined(MAX_MAIL_DIRS)
@ ${SED} -i.bak -e 's/MAX_MAIL_DIRS 32/MAX_MAIL_DIRS ${MAX_MAIL_DIRS}/' \
${WRKSRC}/src/nmzmail.c
@${REINPLACE_CMD} -e 's/MAX_MAIL_DIRS 32/MAX_MAIL_DIRS ${MAX_MAIL_DIRS}/' \
${WRKSRC}/src/nmzmail.c
.endif
post-install:
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}