svn commit: r305472 - head/benchmarks/iperf
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Oct 7 13:13:11 UTC 2012
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 at databits.net>
-#
+# Created by: Pete Fritchman <petef at databits.net>
# $FreeBSD$
-#
PORTNAME= iperf
PORTVERSION= 2.0.5
@@ -13,8 +9,10 @@ MASTER_SITES= SF/${PORTNAME}
MAINTAINER= sunpoet at 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>
More information about the svn-ports-all
mailing list