This commit is contained in:
Thierry Thomas 2014-04-05 19:05:58 +00:00
parent 0d64c4c7b9
commit 3f57818e4e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350258

View file

@ -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>