From 6f0625d4f26c16489d15da6e51a7d0a86acd5019 Mon Sep 17 00:00:00 2001 From: brad Date: Thu, 30 Aug 2001 02:05:14 +0000 Subject: [PATCH] - do away with the programs Makefile and just use a simple do-build target - remove {MAKE/FAKE}_FLAGS and add SEPARATE_BUILD - add @comment with RCS id to PLIST --- benchmarks/bonnie/Makefile | 24 ++++++++++++++---------- benchmarks/bonnie/pkg/PLIST | 1 + 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/benchmarks/bonnie/Makefile b/benchmarks/bonnie/Makefile index 8345b0786ef..9a3cd7cb38e 100644 --- a/benchmarks/bonnie/Makefile +++ b/benchmarks/bonnie/Makefile @@ -1,9 +1,14 @@ -# $OpenBSD: Makefile,v 1.10 2001/06/20 01:43:11 pvalchev Exp $ +# $OpenBSD: Makefile,v 1.11 2001/08/30 02:05:14 brad Exp $ COMMENT= "performance test of filesystem I/O" -DISTNAME= Bonnie + +DISTNAME= Bonnie PKGNAME= bonnie-1.0 CATEGORIES= benchmarks +NEED_VERSION= 1.435 +MASTER_SITES= ftp://ftp.sunet.se/pub/benchmark/Bonnie/ \ + ftp://swedishchef.lerc.nasa.gov/drlabs/io/ +EXTRACT_SUFX= .tar.Z MAINTAINER= Niklas Hallqvist @@ -12,18 +17,17 @@ PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -FAKE_FLAGS= PREFIX=${WRKINST}${PREFIX} -MASTER_SITES= ftp://ftp.sunet.se/pub/benchmark/Bonnie/ \ - ftp://swedishchef.lerc.nasa.gov/drlabs/io/ -EXTRACT_SUFX= .tar.Z +SEPARATE_BUILD= concurrent -MAKE_FLAGS=CFLAGS='${CFLAGS} -static' +do-build: + ${CC} ${CFLAGS} -o ${WRKBUILD}/bonnie.o -c ${WRKSRC}/Bonnie.c + cd ${WRKBUILD}; ${CC} -static -o bonnie bonnie.o do-install: - @${INSTALL_PROGRAM_DIR} ${PREFIX}/bin - @${INSTALL_MAN_DIR} ${PREFIX}/man/man1 - ${INSTALL_PROGRAM} ${WRKBUILD}/Bonnie ${PREFIX}/bin/bonnie + ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin + ${INSTALL_MAN_DIR} ${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKBUILD}/bonnie ${PREFIX}/bin ${INSTALL_MAN} ${FILESDIR}/bonnie.1 ${PREFIX}/man/man1 .include diff --git a/benchmarks/bonnie/pkg/PLIST b/benchmarks/bonnie/pkg/PLIST index e33a7b2aac1..b01844aaef7 100644 --- a/benchmarks/bonnie/pkg/PLIST +++ b/benchmarks/bonnie/pkg/PLIST @@ -1,2 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.3 2001/08/30 02:05:14 brad Exp $ bin/bonnie man/man1/bonnie.1