aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2014-04-05 19:05:58 +0000
committerThierry Thomas <thierry@FreeBSD.org>2014-04-05 19:05:58 +0000
commit3f57818e4e0dea78bd5ea8a62ee2377ba5816c3a (patch)
tree30a150a74c31092e7a9d7c48ad2ad7df5e7a5ff1 /benchmarks
parent0d64c4c7b9aa941d1bd1af0ece03e20989fbdfde (diff)
downloadports-3f57818e4e0dea78bd5ea8a62ee2377ba5816c3a.tar.gz
ports-3f57818e4e0dea78bd5ea8a62ee2377ba5816c3a.zip
Notes
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/scimark2/Makefile22
1 files changed, 8 insertions, 14 deletions
diff --git a/benchmarks/scimark2/Makefile b/benchmarks/scimark2/Makefile
index 00be7d1785ce..9a79167280da 100644
--- a/benchmarks/scimark2/Makefile
+++ b/benchmarks/scimark2/Makefile
@@ -26,24 +26,18 @@ SMDIR= ${PREFIX}/${LSMDIR}
SMSH= ${PORTNAME}${PKGNAMESUFFIX}
PLIST_SUB= SMDIR=${LSMDIR}
-PKGMESSAGE= ${WRKSRC}/pkg-message
+SUB_FILES= pkg-message
+SUB_LIST= SMSH=${SMSH}
-NO_STAGE= yes
do-build:
cd ${WRKSRC} && ${JAVAC} ${JAVAC_OPTS} commandline.java
- @${CP} ${WRKSRC}/commandline.class ${WRKSRC}/jnt/scimark2
+ ${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}
+ ${MKDIR} ${STAGEDIR}${SMDIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} jnt ${STAGEDIR}${SMDIR}/
+ ${ECHO_CMD} "#! /bin/sh" > ${WRKSRC}/${SMSH}
+ ${ECHO_CMD} "cd ${SMDIR} && ${JAVA} jnt.scimark2.commandline" '$$1' >> ${WRKSRC}/${SMSH}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${SMSH} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>