mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
0b047e6895
Allow ${PREFIX} setting. (ports/12213) Clean up makefile a smidge. PR: ports/11581 and ports/12213 Submitted by: Martin Kammerhofer dada@sbox.tu-graz.ac.at and Nick Hibma nick.hibma@jrc.it
40 lines
1.0 KiB
Makefile
40 lines
1.0 KiB
Makefile
# New ports collection makefile for: netperf
|
|
# Version required: 2.1.3
|
|
# Date created: 19 July 1996
|
|
# Whom: koshy
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
DISTNAME= netperf-2.1pl3
|
|
PKGNAME= netperf-2.1.3
|
|
CATEGORIES= benchmarks
|
|
MASTER_SITES= ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/
|
|
|
|
MAINTAINER= fenner@freebsd.org
|
|
|
|
MAKEFILE= makefile
|
|
MAN1= netperf.1 netserver.1
|
|
|
|
SCRIPTS= arr_script snapshot_script tcp_range_script tcp_rr_script \
|
|
tcp_stream_script udp_rr_script udp_stream_script
|
|
|
|
post-patch:
|
|
.for i in ${SCRIPTS}
|
|
@${MV} ${WRKSRC}/$i ${WRKSRC}/$i.pre-sed
|
|
@${SED} -e 's^%%PREFIX%%^${PREFIX}^' ${WRKSRC}/$i.pre-sed > ${WRKSRC}/$i
|
|
.endfor
|
|
|
|
post-install:
|
|
strip ${PREFIX}/netperf/netperf
|
|
strip ${PREFIX}/netperf/netserver
|
|
${INSTALL_MAN} ${WRKSRC}/netperf.man ${PREFIX}/man/man1/netperf.1
|
|
${INSTALL_MAN} ${WRKSRC}/netserver.man ${PREFIX}/man/man1/netserver.1
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/doc/netperf
|
|
${INSTALL_DATA} ${WRKSRC}/netperf.ps ${PREFIX}/share/doc/netperf
|
|
${GZIP_CMD} ${PREFIX}/share/doc/netperf/netperf.ps
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|