aboutsummaryrefslogtreecommitdiffstats
path: root/mail/queue-fix
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2012-07-17 04:05:11 +0800
committergarga <garga@FreeBSD.org>2012-07-17 04:05:11 +0800
commit79844e63496531ee8134898fbd50f1a346dcd564 (patch)
tree54d7f2c7428e4e6f5b105c4ece2ce3f94e2b7555 /mail/queue-fix
parent0dd148cc81b687d94dd2f7a937a801f2e4441b63 (diff)
downloadfreebsd-ports-gnome-79844e63496531ee8134898fbd50f1a346dcd564.tar.gz
freebsd-ports-gnome-79844e63496531ee8134898fbd50f1a346dcd564.tar.zst
freebsd-ports-gnome-79844e63496531ee8134898fbd50f1a346dcd564.zip
- Move to OPTIONSng
- Handle DOCS using PORTDOCS and cleanup PLIST_*
Diffstat (limited to 'mail/queue-fix')
-rw-r--r--mail/queue-fix/Makefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/mail/queue-fix/Makefile b/mail/queue-fix/Makefile
index 9677e3ffd4a2..807dc7845fe6 100644
--- a/mail/queue-fix/Makefile
+++ b/mail/queue-fix/Makefile
@@ -21,28 +21,26 @@ MAKE_JOBS_SAFE= yes
PREFIX?= ${QMAIL_PREFIX}
-OPTIONS= BIG_TODO "Use big_todo patch" off
+OPTIONS_DEFINE= BIG_TODO
+
+BIG_TODO_DESC= Use big_todo patch
CONFIGURE_SCRIPT=
ALL_TARGET=
-PLIST_SUB= DOCDIR=${DOCDIR}
PLIST_FILES= bin/queue-fix
-.if !defined(NOPORTDOCS)
-PLIST_FILES+= %%DOCDIR%%/README
-PLIST_DIRS+= %%DOCDIR%%
-.endif
+PORTDOCS= README
.include <bsd.port.pre.mk>
.if (${PREFIX} == ${LOCALBASE})
-DOCDIR= share/doc/qmail/queue-fix
+DOCSDIR= ${PREFIX}/share/doc/qmail/queue-fix
.else
-DOCDIR= doc/queue-fix
+DOCSDIR= ${PREFIX}/doc/queue-fix
.endif
-.if defined(WITH_BIG_TODO)
+.if ${PORT_OPTIONS:MBIG_TODO}
PATCH_SITES+= http://www.qmail.org/
PATCHFILES+= queue-fix-todo.patch
PATCH_DIST_STRIP+= -p1
@@ -51,9 +49,9 @@ PATCH_DIST_STRIP+= -p1
do-install:
@${MKDIR} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/queue-fix ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/${DOCDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>