ports/176157: [patch] mail/archivemail: adoption of optionsNG
Jason Helfman
jgh at FreeBSD.org
Fri Feb 15 07:30:01 UTC 2013
>Number: 176157
>Category: ports
>Synopsis: [patch] mail/archivemail: adoption of optionsNG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Feb 15 07:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Jason Helfman
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r245102: Sun Jan 6 15:01:33 UTC 2013 root at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64
>Description:
adoption of optionsNG for DOCS and EXAMPLES
trim historical header
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
--- Makefile (revision 312275)
+++ Makefile (working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: archivemail
-# Date created: 2002/04/02
-# Whom: Alan Eldridge <alane at FreeBSD.org>
-#
+# Created by: Alan Eldridge <alane at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= archivemail
PORTVERSION= 0.9.0
@@ -19,13 +15,15 @@
DOCS= CHANGELOG FAQ NEWS README TODO
EXAMPLES= test_archivemail examples/archivemail_all
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/archivemail ${PREFIX}/bin/archivemail
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${EXAMPLES} ${EXAMPLESDIR}
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list