svn commit: r308800 - head/benchmarks/nuttcp
Wesley Shields
wxs at FreeBSD.org
Wed Dec 12 21:20:38 UTC 2012
Author: wxs
Date: Wed Dec 12 21:20:37 2012
New Revision: 308800
URL: http://svnweb.freebsd.org/changeset/ports/308800
Log:
Convert to new options.
Trim header.
PR: ports/173560
Submitted by: edward at rdtan.net
Approved by: maintainer timeout
Modified:
head/benchmarks/nuttcp/Makefile (contents, props changed)
Modified: head/benchmarks/nuttcp/Makefile
==============================================================================
--- head/benchmarks/nuttcp/Makefile Wed Dec 12 21:17:10 2012 (r308799)
+++ head/benchmarks/nuttcp/Makefile Wed Dec 12 21:20:37 2012 (r308800)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: nuttcp
-# Date Created: 17 Jul 2009
# Whom: Andy Clark <andrewclarkii at gmail.com>
-#
# $FreeBSD$
-#
PORTNAME= nuttcp
PORTVERSION= 6.1.2
@@ -26,11 +22,14 @@ MAN8= ${PORTNAME}.8
NUTTSCPVERSION= 1.7
NUTTSCPDISTFILE=nuttscp-${NUTTSCPVERSION}
-OPTIONS= NUTTSCP "Install script for copying files over nuttcp" on
+OPTIONS_DEFINE= NUTTSCP
+OPTIONS_DEFAULT= NUTTSCP
+
+NUTTSCP_DESC= Install script for copying files over nuttcp
.include <bsd.port.pre.mk>
-.if defined(WITH_NUTTSCP)
+.if ${PORT_OPTIONS:MNUTTSCP}
USE_PERL5= yes
PLIST_SUB+= NUTTSCP=""
.else
@@ -46,7 +45,7 @@ post-patch: .SILENT
${REINPLACE_CMD} 's|/usr/bin/perl|${PERL}|g' ${WRKDIR}/nuttscp
do-install:
-. if defined(WITH_NUTTSCP)
+. if ${PORT_OPTIONS:MNUTTSCP}
${INSTALL_SCRIPT} ${WRKDIR}/nuttscp ${PREFIX}/bin/
( cd ${PREFIX}/bin; ${LN} -sf nuttscp nuttrcp )
. endif
More information about the svn-ports-all
mailing list