Index: head/benchmarks/nbench/Makefile =================================================================== --- head/benchmarks/nbench/Makefile (revision 390096) +++ head/benchmarks/nbench/Makefile (revision 390097) @@ -1,27 +1,27 @@ # 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 +MAINTAINER= luca.pizzamiglio@gmail.com COMMENT= BYTE Magazine's native benchmarks ALL_TARGET= # empty 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} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include Index: head/benchmarks/nbench/files/patch-Makefile =================================================================== --- head/benchmarks/nbench/files/patch-Makefile (revision 390096) +++ head/benchmarks/nbench/files/patch-Makefile (revision 390097) @@ -1,24 +1,24 @@ ---- Makefile.orig Mon Oct 18 00:07:05 2004 -+++ Makefile Mon Oct 18 00:07:51 2004 +--- Makefile.orig 2004-12-30 02:23:30 UTC ++++ Makefile @@ -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 Index: head/benchmarks/nbench/files/patch-nbench1.h =================================================================== --- head/benchmarks/nbench/files/patch-nbench1.h (revision 390096) +++ head/benchmarks/nbench/files/patch-nbench1.h (revision 390097) @@ -1,11 +1,11 @@ ---- nbench1.h.orig Thu Dec 11 20:54:46 1997 -+++ nbench1.h Wed Dec 17 08:28:11 1997 -@@ -352,7 +352,7 @@ +--- nbench1.h.orig 2004-12-30 02:15:18 UTC ++++ nbench1.h +@@ -355,7 +355,7 @@ int learned; /* flag--if TRUE ** The Neural Net test requires an input data file. ** The name is specified here. */ -char *inpath="NNET.DAT"; +char *inpath=DATADIR "NNET.DAT"; /* ** PROTOTYPES Index: head/benchmarks/nbench/files/patch-sysinfo.sh =================================================================== --- head/benchmarks/nbench/files/patch-sysinfo.sh (revision 390096) +++ head/benchmarks/nbench/files/patch-sysinfo.sh (revision 390097) @@ -1,13 +1,13 @@ ---- sysinfo.sh.orig Mon Oct 18 00:03:53 2004 -+++ sysinfo.sh Mon Oct 18 00:04:35 2004 -@@ -50,8 +50,8 @@ +--- sysinfo.sh.orig 2008-05-12 20:35:23 UTC ++++ sysinfo.sh +@@ -65,8 +65,8 @@ rm -f sysinfo.crm sysinfoc.c hello # this bombs out on Ultrix which expect "cut -d" -compsystem=`uname -a | cut -b 1-78` -compdate=`date|cut -b1-55` +compsystem=`uname -a | cut -f 1-78` +compdate=`date | cut -f 1-55` # let's hope that ctrl-c is not part of any string here # this also will barf later if " is in any of the strings Index: head/benchmarks/nbench/files/patch-sysspec.h =================================================================== --- head/benchmarks/nbench/files/patch-sysspec.h (revision 390096) +++ head/benchmarks/nbench/files/patch-sysspec.h (revision 390097) @@ -1,11 +1,11 @@ ---- sysspec.h.orig Mon Oct 18 00:05:17 2004 -+++ sysspec.h Mon Oct 18 00:05:50 2004 +--- sysspec.h.orig 2003-02-19 21:37:21 UTC ++++ sysspec.h @@ -33,7 +33,7 @@ #include "nmglobal.h" -#if !defined(MAC) && !defined(OSX) +#if !defined(MAC) && !defined(__STDC__) #include #endif