diff --git a/benchmarks/nbench/Makefile b/benchmarks/nbench/Makefile index 53536964fd86..d6a6d1b7f0d2 100644 --- a/benchmarks/nbench/Makefile +++ b/benchmarks/nbench/Makefile @@ -1,25 +1,27 @@ -# Created by: Andrey Zakhvatov +# Created by: Andrey Zakhvatov # $FreeBSD$ PORTNAME= nbench PORTVERSION= 2.2.3 CATEGORIES= benchmarks MASTER_SITES= http://www.tux.org/~mayer/linux/ DISTNAME= ${PORTNAME}-byte-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= BYTE Magazine's native benchmarks ALL_TARGET= # empty -MAKE_JOBS_UNSAFE= yes + +PLIST_FILES= bin/nbench share/nbench/NNET.DAT +PORTDOCS= README README.submit RESULTS bdoc.txt + +OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${WRKSRC}/nbench ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/NNET.DAT ${STAGEDIR}${DATADIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for f in README README.submit RESULTS bdoc.txt - ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} -.endfor + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include diff --git a/benchmarks/nbench/files/patch-ad b/benchmarks/nbench/files/patch-ad index e8f921ed49de..3617df942f52 100644 --- a/benchmarks/nbench/files/patch-ad +++ b/benchmarks/nbench/files/patch-ad @@ -1,15 +1,24 @@ --- Makefile.orig Mon Oct 18 00:07:05 2004 +++ Makefile Mon Oct 18 00:07:51 2004 -@@ -19,10 +19,10 @@ +@@ -19,10 +19,10 @@ default: nbench # You should leave -static in the CFLAGS so that your sysinfo can be # compiled into the executable. -CC = gcc +CC ?= gcc # generic options for gcc -CFLAGS = -s -static -Wall -O3 +CFLAGS += -static -DDATADIR=\"${PREFIX}/share/nbench/\" # if your gcc lets you do it, then try this one #CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -funroll-loops +@@ -126,7 +126,7 @@ pointer.h: pointer Makefile + if [ "4" = `./pointer` ] ; then touch pointer.h ;\ + else echo "#define LONG64" >pointer.h ; fi + +-misc.o: misc.h misc.c Makefile ++misc.o: misc.h misc.c nmglobal.h pointer.h Makefile + $(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\ + -c misc.c + diff --git a/benchmarks/nbench/pkg-descr b/benchmarks/nbench/pkg-descr index f02ca03bc82b..186eae85b6d9 100644 --- a/benchmarks/nbench/pkg-descr +++ b/benchmarks/nbench/pkg-descr @@ -1,5 +1,5 @@ -BYTE Magazine's native benchmarks (also called BYTEmark), which are -designed to expose the capabilities of a system's CPU, FPU, and memory -system. +This is a Linux/Unix port of release 2 of BYTE Magazine's BYTEmark benchmark +program (previously known as BYTE's Native Mode Benchmarks). It is designed +to expose the capabilities of a system's CPU, FPU, and memory system. WWW: http://www.tux.org/~mayer/linux/bmark.html diff --git a/benchmarks/nbench/pkg-plist b/benchmarks/nbench/pkg-plist deleted file mode 100644 index f3c070195b60..000000000000 --- a/benchmarks/nbench/pkg-plist +++ /dev/null @@ -1,8 +0,0 @@ -bin/nbench -share/nbench/NNET.DAT -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/README.submit -%%PORTDOCS%%%%DOCSDIR%%/RESULTS -%%PORTDOCS%%%%DOCSDIR%%/bdoc.txt -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm share/nbench