aboutsummaryrefslogtreecommitdiff
path: root/mail/qmhandle
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/qmhandle
parent3699fb2fba0a69c608a43ba48f60a0bf905f0f1c (diff)
downloadports-90d97bb7c0b335bf482b1243aaab6676246ab4ea.tar.gz
ports-90d97bb7c0b335bf482b1243aaab6676246ab4ea.zip
Add DOCS, EXAMPLES and NLS to OPTIONS_DEFINE to my ports
Notes
Notes: svn path=/head/; revision=301957
Diffstat (limited to 'mail/qmhandle')
-rw-r--r--mail/qmhandle/Makefile9
1 files changed, 7 insertions, 2 deletions
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>