d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
# New ports collection makefile for: scimark2-java
|
|
# Date created: Sat Apr 05 2003
|
|
# Whom: thierry@pompo.net
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= scimark2
|
|
PORTVERSION= 2.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= benchmarks java
|
|
MASTER_SITES= http://math.nist.gov/scimark2/
|
|
PKGNAMESUFFIX= -java
|
|
DISTNAME= ${PORTNAME}src
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= A Java benchmark for scientific and numerical computing
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USE_ZIP= yes
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.2+
|
|
USE_JIKES= NO
|
|
NEED_JAVAC= yes
|
|
JAVAC_OPTS?= -O
|
|
|
|
LSMDIR= share/java/scimark2
|
|
SMDIR= ${PREFIX}/${LSMDIR}
|
|
|
|
SMSH= ${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
PLIST_SUB= SMDIR=${LSMDIR}
|
|
PKGMESSAGE= ${WRKSRC}/pkg-message
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${JAVAC} ${JAVAC_OPTS} commandline.java
|
|
@${CP} ${WRKSRC}/commandline.class ${WRKSRC}/jnt/scimark2
|
|
|
|
do-install:
|
|
@${MKDIR} ${SMDIR}
|
|
@${CP} -R ${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:
|
|
@${SED} -e 's|%%SMSH%%|${SMSH}|g' ${FILESDIR}/pkg-message.in \
|
|
> ${PKGMESSAGE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|