mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Stagify.
This commit is contained in:
parent
0d64c4c7b9
commit
3f57818e4e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350258
@ -26,24 +26,18 @@ SMDIR= ${PREFIX}/${LSMDIR}
|
|||||||
SMSH= ${PORTNAME}${PKGNAMESUFFIX}
|
SMSH= ${PORTNAME}${PKGNAMESUFFIX}
|
||||||
|
|
||||||
PLIST_SUB= SMDIR=${LSMDIR}
|
PLIST_SUB= SMDIR=${LSMDIR}
|
||||||
PKGMESSAGE= ${WRKSRC}/pkg-message
|
SUB_FILES= pkg-message
|
||||||
|
SUB_LIST= SMSH=${SMSH}
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
do-build:
|
do-build:
|
||||||
cd ${WRKSRC} && ${JAVAC} ${JAVAC_OPTS} commandline.java
|
cd ${WRKSRC} && ${JAVAC} ${JAVAC_OPTS} commandline.java
|
||||||
@${CP} ${WRKSRC}/commandline.class ${WRKSRC}/jnt/scimark2
|
${CP} ${WRKSRC}/commandline.class ${WRKSRC}/jnt/scimark2
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${SMDIR}
|
${MKDIR} ${STAGEDIR}${SMDIR}
|
||||||
@${CP} -R ${WRKSRC}/jnt ${SMDIR}
|
cd ${WRKSRC} && ${COPYTREE_SHARE} jnt ${STAGEDIR}${SMDIR}/
|
||||||
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SMDIR}
|
${ECHO_CMD} "#! /bin/sh" > ${WRKSRC}/${SMSH}
|
||||||
@${ECHO} "#!/bin/sh" > ${WRKSRC}/${SMSH}
|
${ECHO_CMD} "cd ${SMDIR} && ${JAVA} jnt.scimark2.commandline" '$$1' >> ${WRKSRC}/${SMSH}
|
||||||
@${ECHO} "cd ${SMDIR} && ${JAVA} jnt.scimark2.commandline" '$$1' >> ${WRKSRC}/${SMSH}
|
${INSTALL_SCRIPT} ${WRKSRC}/${SMSH} ${STAGEDIR}${PREFIX}/bin
|
||||||
@${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>
|
.include <bsd.port.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user