diff options
author | wxs <wxs@FreeBSD.org> | 2012-12-13 05:20:37 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2012-12-13 05:20:37 +0800 |
commit | a46c9833fa1fed57ab2f43b1f984ebf3003e5d9f (patch) | |
tree | 59afff4159fd900e4750b796133923a6dae0187d | |
parent | 8b35c85c041dc4969e12062ffc173b4b90b60e54 (diff) | |
download | freebsd-ports-gnome-a46c9833fa1fed57ab2f43b1f984ebf3003e5d9f.tar.gz freebsd-ports-gnome-a46c9833fa1fed57ab2f43b1f984ebf3003e5d9f.tar.zst freebsd-ports-gnome-a46c9833fa1fed57ab2f43b1f984ebf3003e5d9f.zip |
Convert to new options.
Trim header.
PR: ports/173560
Submitted by: edward@rdtan.net
Approved by: maintainer timeout
-rw-r--r-- | benchmarks/nuttcp/Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
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 <andrewclarkii@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 |