diff options
author | agc <agc@pkgsrc.org> | 1998-09-23 16:01:36 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-09-23 16:01:36 +0000 |
commit | 48f2b0135b61e021b66f13cd955450e67f3fd3c7 (patch) | |
tree | ca5c1dfec77c6bf975b048c55c8ce06044a4be4f /benchmarks | |
parent | 6c522c02debd760ca0419346aea4d4cf1824a1c7 (diff) | |
download | pkgsrc-48f2b0135b61e021b66f13cd955450e67f3fd3c7.tar.gz |
Rename PREFIX value to be substituted to @PREFIX@.
Add a benchmark target to the package Makefile, so that "make benchmark"
will run the benchmark.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/bytebench/Makefile | 7 | ||||
-rw-r--r-- | benchmarks/bytebench/patches/patch-aa | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/benchmarks/bytebench/Makefile b/benchmarks/bytebench/Makefile index 249633e23b8..5a367167528 100644 --- a/benchmarks/bytebench/Makefile +++ b/benchmarks/bytebench/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/08/30 17:35:57 garbled Exp $ +# $NetBSD: Makefile,v 1.2 1998/09/23 16:01:36 agc Exp $ DISTNAME= byte PKGNAME= bytebench-3.6 @@ -8,7 +8,7 @@ MASTER_SITES= ftp://ftp.cdrom.com/pub/unix-c/benchmarks/ MAINTAINER= root@garbled.net post-patch: - ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@' <${WRKSRC}/Run>${WRKSRC}/run-byte + ${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/Run >${WRKSRC}/run-byte do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pgms/* ${PREFIX}/bin @@ -18,4 +18,7 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/bytebench ${INSTALL_SCRIPT} ${WRKSRC}/run-byte ${PREFIX}/bin +benchmark: + @${WRKSRC}/run-byte + .include "../../mk/bsd.pkg.mk" diff --git a/benchmarks/bytebench/patches/patch-aa b/benchmarks/bytebench/patches/patch-aa index c6aa417ebfa..ed1e580f949 100644 --- a/benchmarks/bytebench/patches/patch-aa +++ b/benchmarks/bytebench/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.2 1998/08/30 21:37:21 garbled Exp $ +$NetBSD: patch-aa,v 1.3 1998/09/23 16:01:37 agc Exp $ --- Run.orig Sat May 13 12:32:15 1995 +++ Run Sat Aug 29 10:39:35 1998 @@ -1,6 +1,6 @@ @@ -32,7 +32,7 @@ $NetBSD: patch-aa,v 1.2 1998/08/30 21:37:21 garbled Exp $ # establish full paths to directories PWD=`pwd` -HOMEDIR=${HOMEDIR-.} -+HOMEDIR=XXXPREFIXXXX ++HOMEDIR=@PREFIX@ cd $HOMEDIR HOMEDIR=`pwd` cd $PWD |