ports/166524: [PATCH] ports-mgmt/porttools: add OPTIONS
Dmitry Marakasov
amdmi3 at amdmi3.ru
Fri Mar 30 19:10:12 UTC 2012
>Number: 166524
>Category: ports
>Synopsis: [PATCH] ports-mgmt/porttools: add OPTIONS
>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 Mar 30 19:10:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Marakasov
>Release: FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 10 01:33:18 MSK 2012
>Description:
Add OPTIONS
Port maintainer (joemann at beefree.free.de) is cc'd.
Generated with FreeBSD Port Tools 0.99_4 (mode: change, diff: CVS)
>How-To-Repeat:
>Fix:
--- porttools-0.99_4.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/ports-mgmt/porttools/Makefile,v
retrieving revision 1.30
diff -u -u -r1.30 Makefile
--- Makefile 4 Mar 2012 12:08:43 -0000 1.30
+++ Makefile 30 Mar 2012 19:00:47 -0000
@@ -18,10 +18,6 @@
cdiff:${PORTSDIR}/textproc/cdiff \
sudo:${PORTSDIR}/security/sudo
-.if !defined(WITHOUT_NEWFILE)
-RUN_DEPENDS+= newfile:${PORTSDIR}/devel/newfile
-.endif
-
.if !defined(NOPORTDOCS)
INSTALL_TARGET= install install-docs
.endif
@@ -40,4 +36,12 @@
MAN1= port.1
MAN5= porttools.5
+OPTIONS= NEWFILE "Enable newfile support" on
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_NEWFILE)
+RUN_DEPENDS+= newfile:${PORTSDIR}/devel/newfile
+.endif
+
.include <bsd.port.mk>
--- porttools-0.99_4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list