From d721ebb7f64cfd6bac1ece7133c8737442f56b3f Mon Sep 17 00:00:00 2001 From: Wesley Shields Date: Wed, 12 Dec 2012 21:20:37 +0000 Subject: Convert to new options. Trim header. PR: ports/173560 Submitted by: edward@rdtan.net Approved by: maintainer timeout --- benchmarks/nuttcp/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'benchmarks') diff --git a/benchmarks/nuttcp/Makefile b/benchmarks/nuttcp/Makefile index 82c5d12884d8..0221bf9c7c36 100644 --- a/benchmarks/nuttcp/Makefile +++ b/benchmarks/nuttcp/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: nuttcp -# Date Created: 17 Jul 2009 # Whom: Andy Clark -# # $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 -.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 -- cgit v1.2.3