aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/dbench
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-03-21 03:14:18 +0800
committervs <vs@FreeBSD.org>2005-03-21 03:14:18 +0800
commit1e9f75c6fc091443729a9b030628f20e1061d768 (patch)
tree52387815a5158bfc7e06352f7a660268f2f16cb5 /benchmarks/dbench
parentcae5b8a702114e565ed3cd1a650ae4b149c44041 (diff)
downloadfreebsd-ports-gnome-1e9f75c6fc091443729a9b030628f20e1061d768.tar.gz
freebsd-ports-gnome-1e9f75c6fc091443729a9b030628f20e1061d768.tar.zst
freebsd-ports-gnome-1e9f75c6fc091443729a9b030628f20e1061d768.zip
Cleanup:
- Use PLIST_FILES - Avoid excessive Makefile-patching
Diffstat (limited to 'benchmarks/dbench')
-rw-r--r--benchmarks/dbench/Makefile9
-rw-r--r--benchmarks/dbench/files/patch-ac29
-rw-r--r--benchmarks/dbench/pkg-plist3
3 files changed, 3 insertions, 38 deletions
diff --git a/benchmarks/dbench/Makefile b/benchmarks/dbench/Makefile
index d335d3eeec44..dcc56e9e4669 100644
--- a/benchmarks/dbench/Makefile
+++ b/benchmarks/dbench/Makefile
@@ -15,13 +15,10 @@ COMMENT= A simulation of the Ziff-Davis netbench benchmark
WRKSRC= ${WRKDIR}/dbench
USE_REINPLACE= yes
-
-post-patch:
- @${REINPLACE_CMD} -e 's/^CFLAGS.+//g' ${WRKSRC}/Makefile
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
+PLIST_FILES= dbench tbench tbench_srv
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/dbench ${PREFIX}/bin/dbench
- ${INSTALL_PROGRAM} ${WRKSRC}/tbench ${PREFIX}/bin/tbench
- ${INSTALL_PROGRAM} ${WRKSRC}/tbench_srv ${PREFIX}/bin/tbench_srv
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PLIST_FILES} ${PREFIX}/bih
.include <bsd.port.mk>
diff --git a/benchmarks/dbench/files/patch-ac b/benchmarks/dbench/files/patch-ac
deleted file mode 100644
index cd235a139c9c..000000000000
--- a/benchmarks/dbench/files/patch-ac
+++ /dev/null
@@ -1,29 +0,0 @@
---- Makefile.orig Sun Sep 9 21:21:01 2001
-+++ Makefile Thu Aug 22 20:21:37 2002
-@@ -1,7 +1,7 @@
- VERSION = 1.2.01
-
--CC = gcc
--CFLAGS = -O2 -Wall
-+CC ?= gcc
-+
- CPPFLAGS = "-DVERSION=\"$(VERSION)\""
-
- DB_OBJS = fileio.o util.o dbench.o child.o
-@@ -11,13 +11,13 @@
- all: dbench tbench tbench_srv
-
- dbench: $(DB_OBJS)
-- $(CC) -o $@ $(DB_OBJS)
-+ $(CC) $(CFLAGS) -o $@ $(DB_OBJS)
-
- tbench: $(TB_OBJS)
-- $(CC) -o $@ $(TB_OBJS)
-+ $(CC) $(CFLAGS) -o $@ $(TB_OBJS)
-
- tbench_srv: $(SRV_OBJS)
-- $(CC) -o $@ $(SRV_OBJS)
-+ $(CC) $(CFLAGS) -o $@ $(SRV_OBJS)
-
- clean:
- rm -f *.o *~ dbench tbench tbench_srv
diff --git a/benchmarks/dbench/pkg-plist b/benchmarks/dbench/pkg-plist
deleted file mode 100644
index f8db3ffe1665..000000000000
--- a/benchmarks/dbench/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/dbench
-bin/tbench
-bin/tbench_srv