Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-06-17 07:58:21 +00:00
parent f2dc0757ae
commit 5a10f3e51c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358072

View file

@ -28,23 +28,22 @@ PORTDOCS= *
SUB_FILES= jflex.sh
NO_STAGE= yes
post-extract:
${MKDIR} ${WRKSRC}/tools
${CP} ${DISTDIR}/JFlex.jar ${WRKSRC}/tools/
${CP} ${DISTDIR}/java_cup.jar ${WRKSRC}/tools/
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/jflex.sh ${PREFIX}/bin/jflex
${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${JAVAJARDIR}/JFlex.jar
${INSTALL_SCRIPT} ${WRKDIR}/jflex.sh ${STAGEDIR}${PREFIX}/bin/jflex
${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${STAGEDIR}${JAVAJARDIR}/JFlex.jar
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
.endif
${MKDIR} ${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for EXAMPLE in binary byaccj cup interpreter java simple standalone
${MKDIR} ${EXAMPLESDIR}/${EXAMPLE}
${INSTALL_DATA} ${WRKSRC}/examples/${EXAMPLE}/* ${EXAMPLESDIR}/${EXAMPLE}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${EXAMPLE}
${INSTALL_DATA} ${WRKSRC}/examples/${EXAMPLE}/* ${STAGEDIR}${EXAMPLESDIR}/${EXAMPLE}
.endfor
.include <bsd.port.mk>