1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/java/jflex/Makefile
Mark Linimon fcc83fd470 Update to 1.4.
PR:		ports/66231
Submitted by:	Conor McDermottroe <ports@mcdermottroe.com> (maintainer)
2004-05-10 18:38:26 +00:00

53 lines
1.4 KiB
Makefile

# Ports collection Makefile for: JFlex
# Date created: 27 January 2004
# Whom: Conor McDermottroe <ports@mcdermottroe.com>
#
# $FreeBSD$
#
PORTNAME= jflex
PORTVERSION= 1.4
CATEGORIES= java devel
MASTER_SITES= http://www.jflex.de/:jflexde \
http://jflex.sourceforge.net/jar/devel/:jflexsf
DISTFILES= jflex-1.4.tar.gz:jflexde \
JFlex.jar:jflexsf \
java_cup.jar:jflexsf
EXTRACT_ONLY= jflex-1.4.tar.gz
MAINTAINER= ports@mcdermottroe.com
COMMENT= The Fast Lexical Analyser Generator for Java[tm]
USE_JAVA= 1.1+
NEED_JAVAC= yes
USE_REINPLACE= yes
BUILD_WRKSRC= ${WRKSRC}/src
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant \
${JAVAJARDIR}/junit.jar:${PORTSDIR}/java/junit
MAKE_ENV+= DISTDIR="${DISTDIR}" JAVAJARDIR="${JAVAJARDIR}" \
LOCALBASE="${LOCALBASE}" SETENV="${SETENV}"
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>