# $OpenBSD: Makefile,v 1.28 2016/10/19 14:30:37 jca Exp $

COMMENT=	self-scaling network benchmark

DISTNAME=	NetPIPE-3.7.2
PKGNAME=	netpipe-3.7.2
CATEGORIES=	benchmarks net

HOMEPAGE=	http://bitspjoule.org/netpipe/

# GPLv2
PERMIT_PACKAGE_CDROM=	Yes
WANTLIB=		c

MASTER_SITES=	${HOMEPAGE}/code/

MAKE_FLAGS=	CC="${CC}" CFLAGS="${CFLAGS}"

NO_TEST=	Yes

MAKE_FILE=	makefile

ALL_TARGET=	tcp tcp6

do-install:
	${INSTALL_PROGRAM} ${WRKBUILD}/NPtcp ${PREFIX}/bin
	cd ${PREFIX}/bin && ln -sf NPtcp netpipe
	${INSTALL_PROGRAM} ${WRKBUILD}/NPtcp6 ${PREFIX}/bin
	${INSTALL_MAN} ${WRKBUILD}/dox/netpipe.1 ${PREFIX}/man/man1

.include <bsd.port.mk>
