Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Oct 2012 13:13:10 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305472 - head/benchmarks/iperf
Message-ID:  <201210071313.q97DDA35004453@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Oct  7 13:13:10 2012
New Revision: 305472
URL: http://svn.freebsd.org/changeset/ports/305472

Log:
  - Add LICENSE
  - Convert to new options framework
  - Cleanup Makefile header

Modified:
  head/benchmarks/iperf/Makefile   (contents, props changed)

Modified: head/benchmarks/iperf/Makefile
==============================================================================
--- head/benchmarks/iperf/Makefile	Sun Oct  7 13:11:20 2012	(r305471)
+++ head/benchmarks/iperf/Makefile	Sun Oct  7 13:13:10 2012	(r305472)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	iperf
-# Date Created:				20 May 2001
-# Whom:					Pete Fritchman <petef@databits.net>
-#
+# Created by: Pete Fritchman <petef@databits.net>
 # $FreeBSD$
-#
 
 PORTNAME=	iperf
 PORTVERSION=	2.0.5
@@ -13,8 +9,10 @@ MASTER_SITES=	SF/${PORTNAME}
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	A tool to measure maximum TCP and UDP bandwidth
 
-OPTIONS=	IPV6	"Enable support to IPv6" on \
-		THREADS	"Enable threads support" on
+LICENSE=	BSD
+
+OPTIONS_DEFINE=	DOCS IPV6 THREADS
+OPTIONS_DEFAULT=IPV6 THREADS
 
 GNU_CONFIGURE=	yes
 
@@ -24,22 +22,24 @@ PORTDOCS=	*
 
 .include <bsd.port.options.mk>
 
-.if defined(WITHOUT_IPV6)
-CONFIGURE_ARGS+=--disable-ipv6
-.else
+.if ${PORT_OPTIONS:MIPV6}
 CATEGORIES+=	ipv6
+CONFIGURE_ARGS+=--enable-ipv6
+.else
+CONFIGURE_ARGS+=--disable-ipv6
 .endif
 
-.if defined(WITHOUT_THREADS)
-CONFIGURE_ARGS+=--disable-threads
-.else
+.if ${PORT_OPTIONS:MTHREADS}
+CONFIGURE_ARGS+=--enable-threads
 LDFLAGS+=	${PTHREAD_LIBS}
+.else
+CONFIGURE_ARGS+=--disable-threads
 .endif
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}/
-	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/*.gif ${WRKSRC}/doc/*.html ${DOCSDIR}/
+	cd ${WRKSRC}/ && ${INSTALL_DATA} README doc/*.gif doc/*.html ${DOCSDIR}/
 .endif
 
 .include <bsd.port.mk>



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