aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/scimark2/Makefile
blob: d5d15a8215c4ecbf4308e271ea6d23a7ba3fcc1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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>