summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2012-08-03 15:34:45 +0000
committerRenato Botelho <garga@FreeBSD.org>2012-08-03 15:34:45 +0000
commit90d97bb7c0b335bf482b1243aaab6676246ab4ea (patch)
tree840e8379f841715c5db9a647458ff49f7766d803 /mail
parentUpdate to version 0.38. (diff)
Add DOCS, EXAMPLES and NLS to OPTIONS_DEFINE to my ports
Notes
Notes: svn path=/head/; revision=301957
Diffstat (limited to 'mail')
-rw-r--r--mail/qmail-contrib/Makefile5
-rw-r--r--mail/qmhandle/Makefile9
-rw-r--r--mail/queue-fix/Makefile3
3 files changed, 14 insertions, 3 deletions
diff --git a/mail/qmail-contrib/Makefile b/mail/qmail-contrib/Makefile
index b512b9763ead..07c7ff99d423 100644
--- a/mail/qmail-contrib/Makefile
+++ b/mail/qmail-contrib/Makefile
@@ -18,6 +18,9 @@ DISTFILES= dot-forward-${DF_VER}.tar.gz \
MAINTAINER= garga@FreeBSD.org
COMMENT= Contributed programs for qmail
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
USE_QMAIL_RUN= yes
MAKE_JOBS_SAFE= yes
@@ -59,7 +62,7 @@ post-patch:
@${REINPLACE_CMD} -e "s|-O2|${CFLAGS}|" \
${WRKFF}/conf-cc \
${WRKDF}/conf-cc
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -E 's|^(.*${DOCSDIR})|// \1|g' \
${WRKFF}/hier.c
.endif
diff --git a/mail/qmhandle/Makefile b/mail/qmhandle/Makefile
index 343acef14f04..e7cecc4d3693 100644
--- a/mail/qmhandle/Makefile
+++ b/mail/qmhandle/Makefile
@@ -14,6 +14,9 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.3/${PORTNAME}-${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= Tool to view and manage a qmail queue
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
USE_QMAIL_RUN= yes
NO_BUILD= yes
@@ -22,6 +25,8 @@ USE_BZIP2= yes
PORTDOCS= HISTORY README
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's,^#!/usr/bin/perl,#!${PERL},g' \
-e 's,%%LOCALBASE%%,${LOCALBASE},g' \
@@ -35,11 +40,11 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/qmHandle.conf.sample ${PREFIX}/etc
[ -f ${PREFIX}/etc/qmHandle.conf ] || \
${INSTALL_DATA} -m 0644 ${WRKSRC}/qmHandle.conf.sample ${PREFIX}/etc/qmHandle.conf
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/queue-fix/Makefile b/mail/queue-fix/Makefile
index 807dc7845fe6..6f53a706df0c 100644
--- a/mail/queue-fix/Makefile
+++ b/mail/queue-fix/Makefile
@@ -16,6 +16,9 @@ MASTER_SITE_SUBDIR= distfiles
MAINTAINER= garga@FreeBSD.org
COMMENT= Repairs or generates a qmail queue structure
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
USE_QMAIL_RUN= yes
MAKE_JOBS_SAFE= yes