aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-06-04 14:20:45 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-06-04 14:20:45 +0000
commit90c3b8a06714a5bb3c629843853e2eae7b901ff6 (patch)
treeea6cf739a26630edba1d285e8adc3dbf10278998 /benchmarks
parentcb021d5a218fa21e34ef5033b7d393341c1b34a6 (diff)
downloadports-90c3b8a06714a5bb3c629843853e2eae7b901ff6.tar.gz
ports-90c3b8a06714a5bb3c629843853e2eae7b901ff6.zip
Notes
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/autobench/Makefile3
-rw-r--r--benchmarks/autobench/files/patch-Makefile13
2 files changed, 2 insertions, 14 deletions
diff --git a/benchmarks/autobench/Makefile b/benchmarks/autobench/Makefile
index 3d8dc79098ea..78a28acee205 100644
--- a/benchmarks/autobench/Makefile
+++ b/benchmarks/autobench/Makefile
@@ -20,12 +20,13 @@ RUN_DEPENDS= httperf:${PORTSDIR}/benchmarks/httperf \
USE_PERL5= yes
USE_GMAKE= yes
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" DEBUG_FLAGS= \
+ PREFIX=${PREFIX}
MAN1= autobench.1 autobench_admin.1 autobenchd.1 bench2graph.1 \
crfile.1 sesslog.1
post-patch:
- @${PERL} -pi -e "s|^PREFIX|#PREFIX|g" ${WRKSRC}/Makefile
.for file in autobench autobench_admin
@${PERL} -pi -e "s|/etc/|${PREFIX}/etc/|g" ${WRKSRC}/${file}
.endfor
diff --git a/benchmarks/autobench/files/patch-Makefile b/benchmarks/autobench/files/patch-Makefile
index 74ea5a45bd7f..038274b213b3 100644
--- a/benchmarks/autobench/files/patch-Makefile
+++ b/benchmarks/autobench/files/patch-Makefile
@@ -1,18 +1,5 @@
--- Makefile.orig Thu May 27 18:59:27 2004
+++ Makefile Sun Jan 16 19:44:14 2005
-@@ -20,9 +20,9 @@
- endif
-
- # Compiler & flags
--CC=gcc
--CFLAGS=-O2 -Wall
--DEBUG_FLAGS=-Wall -g
-+CC?=gcc
-+CFLAGS+= -Wall
-+DEBUG_FLAGS?=-Wall -g
-
- #---------------------------------------------------------------------------
- # Release related
@@ -55,7 +55,7 @@
perl -pi -e 's/my \$$MASTER_CONFIG =.*$$/my \$$MASTER_CONFIG = "$$ENV{AB_CFG}";/' autobench
cp crfile autobench autobenchd autobench_admin sesslog bench2graph $(BINDIR)