freebsd-ports/benchmarks/netpipe/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

34 lines
1,016 B
Makefile

# Created by: jkoshy
# $FreeBSD$
PORTNAME= NetPIPE
PORTVERSION= 3.7.1
CATEGORIES= benchmarks net
MASTER_SITES= http://www.scl.ameslab.gov/Projects/Netpipe/code/
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Self-scaling network benchmark
# The default port builds and installs only the TCP version of
# netpipe(1). The sources support many other variants.
PORTDOCS= README netpipe_paper.ps
PLIST_FILES= bin/NPtcp bin/NPtcp6 man/man1/netpipe.1.gz
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:tl}
do-build:
cd ${WRKSRC} \
&& ${CC} ${CFLAGS} src/netpipe.c src/tcp.c -DTCP -o NPtcp \
&& ${CC} ${CFLAGS} src/netpipe.c src/tcp6.c -DTCP6 -o NPtcp6
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/NPtcp ${STAGEDIR}${PREFIX}/bin/NPtcp
${INSTALL_PROGRAM} ${WRKSRC}/NPtcp6 ${STAGEDIR}${PREFIX}/bin/NPtcp6
${INSTALL_MAN} ${WRKSRC}/dox/netpipe.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.for doc in ${PORTDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/dox/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>