aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmhandle
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2012-08-03 23:34:45 +0800
committergarga <garga@FreeBSD.org>2012-08-03 23:34:45 +0800
commit614c4ed9928269c536345007e69e8ba648fccf8d (patch)
tree840e8379f841715c5db9a647458ff49f7766d803 /mail/qmhandle
parenta3dfce416fb9bdc21b43f0f2cbc480e7205aaa94 (diff)
downloadfreebsd-ports-gnome-614c4ed9928269c536345007e69e8ba648fccf8d.tar.gz
freebsd-ports-gnome-614c4ed9928269c536345007e69e8ba648fccf8d.tar.zst
freebsd-ports-gnome-614c4ed9928269c536345007e69e8ba648fccf8d.zip
Add DOCS, EXAMPLES and NLS to OPTIONS_DEFINE to my ports
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>