ports/java/jflex/Makefile
Greg Lewis a69622a594 Add a port of jflex:
JFlex is a lexical analyzer generator for Java written in Java.
It is also a rewrite of the very useful tool JLex which was developed
by Elliot Berk at Princeton University. As Vern Paxon states for his C/C++
tool flex: They do not share any code though.

WWW: http://www.jflex.de/

I've done some clean up to the submitted version of the port.

PR:		62043
Submitted by:	Conor McDermottroe <ports@mcdermottroe.com>
2004-02-18 19:50:33 +00:00

47 lines
1.2 KiB
Makefile

# Ports collection Makefile for: JFlex
# Date created: 27 January 2004
# Whom: Conor McDermottroe <ports@mcdermottroe.com>
#
# $FreeBSD$
#
PORTNAME= jflex
PORTVERSION= 1.3.5
CATEGORIES= java devel
MASTER_SITES= http://www.jflex.de/
MAINTAINER= ports@mcdermottroe.com
COMMENT= The Fast Lexical Analyser Generator for Java[tm]
USE_JAVA= 1.1+
NEED_JAVAC= yes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/JFlex
BUILD_WRKSRC= ${WRKSRC}/src
MAKE_ENV+= JAVAC="${JAVAC}" JAR="${JAR}" JAVAJARDIR="${JAVAJARDIR}" \
JAVA_CLASSES="${JAVA_CLASSES}"
PLIST_SUB= JAVAJARDIR=${JAVAJARDIR:S|^${PREFIX}/||}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
do-configure:
@${REINPLACE_CMD} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|' \
${WRKSRC}/bin/jflex
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/bin/jflex ${PREFIX}/bin/jflex
@${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${JAVAJARDIR}/JFlex.jar
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
${MKDIR} ${EXAMPLESDIR}
.for EXAMPLE in binary byaccj cup interpreter java simple standalone
${MKDIR} ${EXAMPLESDIR}/${EXAMPLE}
${INSTALL_DATA} ${WRKSRC}/examples/${EXAMPLE}/* ${EXAMPLESDIR}/${EXAMPLE}
.endfor
.include <bsd.port.mk>