openbsd-ports/benchmarks/netperf/Makefile
2013-04-18 18:29:20 +00:00

34 lines
811 B
Makefile

# $OpenBSD: Makefile,v 1.31 2013/04/18 18:29:20 sthen Exp $
COMMENT= network performance benchmark
DISTNAME= netperf-2.6.0
CATEGORIES= benchmarks net
HOMEPAGE= http://www.netperf.org/netperf/
# "for non-commercial purposes only"; see COPYING
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
WANTLIB += c m
MASTER_SITES= ftp://ftp.netperf.org/netperf/ \
ftp://ftp.netperf.org/netperf/archive/
AUTOCONF_VERSION= 2.67
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= --enable-demo
SEPARATE_BUILD= Yes
E= ${PREFIX}/share/examples/netperf
post-install:
${INSTALL_DATA_DIR} $E
${INSTALL_SCRIPT} ${WRKSRC}/doc/examples/*script $E
perl -pi -e 's,(/opt/netperf2/bin|/usr/local/bin|/opt/netperf/netperf),${TRUEPREFIX}/bin,;' \
-e 's,^NETHOME=.*,NETHOME=${TRUEPREFIX}/bin,;' $E/*
.include <bsd.port.mk>