aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2010-01-04 10:11:24 +0800
committerpgollucci <pgollucci@FreeBSD.org>2010-01-04 10:11:24 +0800
commit558feab2efe54e6c4b350d11a3ffbd4e22e46ca8 (patch)
tree5dbdaa90f025cfbc612868d7baaaa23d31197b41
parent5293a9789c3d4bae793d0e53ef189c6f10339ed4 (diff)
downloadfreebsd-ports-gnome-558feab2efe54e6c4b350d11a3ffbd4e22e46ca8.tar.gz
freebsd-ports-gnome-558feab2efe54e6c4b350d11a3ffbd4e22e46ca8.tar.zst
freebsd-ports-gnome-558feab2efe54e6c4b350d11a3ffbd4e22e46ca8.zip
- Use DOCSDIR
- Honor NOPORTDOCS PR: ports/142196 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>
-rw-r--r--benchmarks/ttcp/Makefile9
-rw-r--r--benchmarks/ttcp/pkg-plist4
2 files changed, 8 insertions, 5 deletions
diff --git a/benchmarks/ttcp/Makefile b/benchmarks/ttcp/Makefile
index ac221b0b735c..dbdd33b3cd82 100644
--- a/benchmarks/ttcp/Makefile
+++ b/benchmarks/ttcp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ttcp
PORTVERSION= 1.12
+PORTREVISION= 1
CATEGORIES= benchmarks net
MASTER_SITES= ftp://ftp.sgi.com/sgi/src/ttcp/
DISTFILES= ttcp.c ttcp.1 README
@@ -15,7 +16,7 @@ EXTRACT_ONLY= #none
MAINTAINER= pgollucci@FreeBSD.org
COMMENT= Benchmarking tool for analysing TCP and UDP performance
-MAKE_JOBS_SAFE= yes
+MAKE_JOBS_SAFE= yes
NO_WRKSUBDIR= yes
DIST_SUBDIR= ${PORTNAME}
@@ -32,7 +33,9 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ttcp ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ttcp.1 ${PREFIX}/man/man1
- ${MKDIR} ${PREFIX}/share/doc/ttcp
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ttcp/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
+.endif
.include <bsd.port.mk>
diff --git a/benchmarks/ttcp/pkg-plist b/benchmarks/ttcp/pkg-plist
index 5d2266f36ebd..d2d4cd8cbf1d 100644
--- a/benchmarks/ttcp/pkg-plist
+++ b/benchmarks/ttcp/pkg-plist
@@ -1,3 +1,3 @@
bin/ttcp
-share/doc/ttcp/README
-@dirrm share/doc/ttcp
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%