Changeset View
Changeset View
Standalone View
Standalone View
benchmarks/netperf/Makefile
Show All 22 Lines | |||||
USE_CSTD= gnu89 | USE_CSTD= gnu89 | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ENV= "transform=" | CONFIGURE_ENV= "transform=" | ||||
CONFIGURE_ARGS= --program-prefix="" --program-suffix="" --enable-dirty \ | CONFIGURE_ARGS= --program-prefix="" --program-suffix="" --enable-dirty \ | ||||
--enable-demo --enable-burst --enable-intervals | --enable-demo --enable-burst --enable-intervals | ||||
INFO= netperf | INFO= netperf | ||||
.include <bsd.port.options.mk> | SOCKETS_CONFIGURE_ENABLE= unixdomain | ||||
SCTP_CONFIGURE_ENABLE= sctp | |||||
.if ${PORT_OPTIONS:MSOCKETS} | EXS_CONFIGURE_ENABLE= exs | ||||
CONFIGURE_ARGS+= --enable-unixdomain | HISTOGRAM_CONFIGURE_ENABLE= histogram | ||||
.else | OMNI_CONFIGURE_ENABLE= omni | ||||
CONFIGURE_ARGS+= --disable-unixdomain | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSCTP} | |||||
CONFIGURE_ARGS+= --enable-sctp | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-sctp | |||||
.endif | |||||
.if ${PORT_OPTIONS:MEXS} | |||||
CONFIGURE_ARGS+= --enable-exs | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-exs | |||||
.endif | |||||
.if ${PORT_OPTIONS:MHISTOGRAM} | |||||
CONFIGURE_ARGS+= --enable-histogram | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-histogram | |||||
.endif | |||||
.if ${PORT_OPTIONS:MOMNI} | |||||
CONFIGURE_ARGS+= --enable-omni | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-omni | |||||
.endif | |||||
SCRIPTS= arr_script packet_byte_script sctp_stream_script snapshot_script \ | SCRIPTS= arr_script packet_byte_script sctp_stream_script snapshot_script \ | ||||
tcp_range_script tcp_rr_script tcp_stream_script udp_rr_script \ | tcp_range_script tcp_rr_script tcp_stream_script udp_rr_script \ | ||||
udp_stream_script | udp_stream_script | ||||
post-patch: | post-patch: | ||||
.for i in ${SCRIPTS} | .for i in ${SCRIPTS} | ||||
@${REINPLACE_CMD} -e 's^%%PREFIX%%^${PREFIX}^' ${WRKSRC}/doc/examples/$i | @${REINPLACE_CMD} -e 's^%%PREFIX%%^${PREFIX}^' ${WRKSRC}/doc/examples/$i | ||||
Show All 9 Lines |