diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-29 03:50:28 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-29 03:50:28 +0000 |
commit | 29f2cf9b20cdd1e85e1c5a861c925b0a40d24aa1 (patch) | |
tree | 855024cd68dbae25c66c553fe4cccc786ae48781 /benchmarks/scimark2/Makefile | |
parent | 7879afde70fadfbfcc68d27af6030499b392e25f (diff) | |
download | ports-29f2cf9b20cdd1e85e1c5a861c925b0a40d24aa1.tar.gz ports-29f2cf9b20cdd1e85e1c5a861c925b0a40d24aa1.zip |
Notes
Diffstat (limited to 'benchmarks/scimark2/Makefile')
-rw-r--r-- | benchmarks/scimark2/Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/benchmarks/scimark2/Makefile b/benchmarks/scimark2/Makefile new file mode 100644 index 000000000000..d5d15a8215c4 --- /dev/null +++ b/benchmarks/scimark2/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: scimark2-java +# Date created: Sat Apr 05 2003 +# Whom: thierry@pompo.net +# +# $FreeBSD$ +# + +PORTNAME= scimark2 +PORTVERSION= 2.0 +CATEGORIES= benchmarks java +MASTER_SITES= http://math.nist.gov/scimark2/ +PKGNAMESUFFIX= -java +DISTNAME= ${PORTNAME}src + +MAINTAINER= thierry@pompo.net +COMMENT= A Java benchmark for scientific and numerical computing + +WRKSRC= ${WRKDIR} +USE_ZIP= yes + +USE_JAVA= 1.2+ +NEED_JAVAC= yes +JAVAC_OPTS?= -O + +LSMDIR= share/java/scimark2 +SMDIR= ${PREFIX}/${LSMDIR} + +SMSH= ${PORTNAME}${PKGNAMESUFFIX} + +PLIST_SUB= SMDIR=${LSMDIR} + +do-build: + cd ${WRKSRC} && ${JAVAC} ${JAVAC_OPTS} commandline.java + @${CP} ${WRKSRC}/commandline.class ${WRKSRC}/jnt/scimark2 + +do-install: + @${MKDIR} ${SMDIR} + @${CP} -Rp ${WRKSRC}/jnt ${SMDIR} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SMDIR} + @${ECHO} "#!/bin/sh" > ${WRKSRC}/${SMSH} + @${ECHO} "cd ${SMDIR} && ${JAVA} jnt.scimark2.commandline" '$$1' >> ${WRKSRC}/${SMSH} + @${INSTALL_SCRIPT} ${WRKSRC}/${SMSH} ${PREFIX}/bin + +post-install: + @${ECHO} "*****************************************************************************" + @${ECHO} "" + @${ECHO} " Just run ${SMSH} or ${SMSH} -large" + @${ECHO} "" + @${ECHO} " The first SciMark number reported is the composite score, followed by the an" + @${ECHO} " approximate Mflop rate for each kernel." + @${ECHO} "" + @${ECHO} "*****************************************************************************" + +.include <bsd.port.mk> |