aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/netperf/Makefile
blob: 2086a00d7e52f4591c3808a8fc2332eb03eb9a81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: koshy
# $FreeBSD$

PORTNAME=   netperf
PORTVERSION=    2.6.0
PORTREVISION=   3
CATEGORIES= benchmarks ipv6
MASTER_SITES=   ftp://ftp.netperf.org/netperf/ \
        http://fossies.org/unix/misc/

MAINTAINER= marius@FreeBSD.org
COMMENT=    Network performance benchmarking package

OPTIONS_DEFINE=     OMNI SCTP SOCKETS HISTOGRAM EXS
OPTIONS_DEFAULT=    ${OPTIONS_DEFINE}

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

USE_CSTD=   gnu89
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  "transform="
CONFIGURE_ARGS= --program-prefix="" --program-suffix="" --enable-dirty \
        --enable-demo --enable-burst --enable-intervals

INFO=       netperf

SOCKETS_CONFIGURE_ENABLE=   unixdomain
SCTP_CONFIGURE_ENABLE=      sctp
EXS_CONFIGURE_ENABLE=       exs
HISTOGRAM_CONFIGURE_ENABLE= histogram
OMNI_CONFIGURE_ENABLE=      omni

SCRIPTS=    arr_script packet_byte_script sctp_stream_script snapshot_script \
        tcp_range_script tcp_rr_script tcp_stream_script udp_rr_script \
        udp_stream_script

post-patch:
.for i in ${SCRIPTS}
    @${REINPLACE_CMD} -e 's^%%PREFIX%%^${PREFIX}^' ${WRKSRC}/doc/examples/$i
.endfor

post-install:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${SCRIPTS}
    ${INSTALL_SCRIPT} ${WRKSRC}/doc/examples/$i ${STAGEDIR}${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>