Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2012 02:39:40 +0000 (UTC)
From:      Munechika SUMIKAWA <sumikawa@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307323 - head/benchmarks/netperf
Message-ID:  <201211120239.qAC2deqP038788@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sumikawa
Date: Mon Nov 12 02:39:40 2012
New Revision: 307323
URL: http://svnweb.freebsd.org/changeset/ports/307323

Log:
  - Update to use OPTIONSNG
  - Trim Makefile header
  - Drop my maintainership
  
  PR:		ports/173547
  Submitted by:	edward
  Feature safe:	yes

Modified:
  head/benchmarks/netperf/Makefile

Modified: head/benchmarks/netperf/Makefile
==============================================================================
--- head/benchmarks/netperf/Makefile	Sun Nov 11 21:21:08 2012	(r307322)
+++ head/benchmarks/netperf/Makefile	Mon Nov 12 02:39:40 2012	(r307323)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: netperf
-# Date created:		19 July 1996
-# Whom:			koshy
-#
+# Created by:                  koshy
 # $FreeBSD$
-#
 
 PORTNAME=	netperf
 PORTVERSION=	2.6.0
@@ -11,14 +7,17 @@ CATEGORIES=	benchmarks ipv6
 MASTER_SITES=	ftp://ftp.netperf.org/netperf/ \
 		http://fossies.org/unix/misc/
 
-MAINTAINER=	sumikawa@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Network performance benchmarking package
 
-OPTIONS=	SOCKETS		"Enable Unix Domain socket support" On \
-		SCTP		"Enable SCTP support" On \
-		EXS		"Enable ICSC async socket support" On \
-		HISTOGRAM	"Enable optional histogram output" On \
-		OMNI		"Enable OMNI tests" Off \
+OPTIONS_DEFINE=        OMNI SCTP SOCKETS HISTOGRAM EXS
+OPTIONS_DEFAULT=       SCTP SOCKETS HISTOGRAM EXS
+
+OMNI_DESC=     Enable OMNI tests
+SCTP_DESC=     Enable SCTP support
+SOCKETS_DESC=  Enable Unix Domain socket support
+HISTOGRAM_DESC=        Enable optional histogram output
+EXS_DESC=      Enable ICSC async socket support
 
 .include <bsd.port.options.mk>
 
@@ -27,31 +26,31 @@ CONFIGURE_ENV=	"transform="
 CONFIGURE_ARGS=	--program-prefix=""  --program-suffix="" --enable-dirty \
 		--enable-demo --enable-burst --enable-intervals
 
-.if !defined(WITHOUT_SOCKETS)
+.if ${PORT_OPTIONS:MSOCKETS}
 CONFIGURE_ARGS+=	--enable-unixdomain
 .else
 CONFIGURE_ARGS+=	--disable-unixdomain
 .endif
 
-.if !defined(WITHOUT_SCTP)
+.if ${PORT_OPTIONS:MSCTP}
 CONFIGURE_ARGS+=	--enable-sctp
 .else
 CONFIGURE_ARGS+=	--disable-sctp
 .endif
 
-.if !defined(WITHOUT_EXS)
+.if ${PORT_OPTIONS:MEXS}
 CONFIGURE_ARGS+=	--enable-exs
 .else
 CONFIGURE_ARGS+=	--disable-exs
 .endif
 
-.if !defined(WITHOUT_HISTOGRAM)
+.if ${PORT_OPTIONS:MHISTOGRAM}
 CONFIGURE_ARGS+=	--enable-histogram
 .else
 CONFIGURE_ARGS+=	--disable-histogram
 .endif
 
-.if !defined(WITHOUT_OMNI)
+.if ${PORT_OPTIONS:MOMNI}
 CONFIGURE_ARGS+=	--enable-omni
 .else
 CONFIGURE_ARGS+=	--disable-omni



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211120239.qAC2deqP038788>