aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-06-04 22:20:45 +0800
committervs <vs@FreeBSD.org>2005-06-04 22:20:45 +0800
commita11e6757ec85270ebb9c7237138a47bee88c436b (patch)
treea80040fd81960b8098a212d31cee39ed8c52884e /benchmarks
parentf1664122a718ea8d96e56036e8cf18fbec647ebc (diff)
downloadfreebsd-ports-gnome-a11e6757ec85270ebb9c7237138a47bee88c436b.tar.gz
freebsd-ports-gnome-a11e6757ec85270ebb9c7237138a47bee88c436b.tar.zst
freebsd-ports-gnome-a11e6757ec85270ebb9c7237138a47bee88c436b.zip
Cleanup ENV-handling
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)