aboutsummaryrefslogtreecommitdiff
path: root/java/jflex/Makefile
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-12-20 14:36:39 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-12-20 14:36:39 +0000
commit958b51028ae38e3b73ddc77ae30bd2c3bdfff178 (patch)
tree3bc382de774d363ef92d1f68f7f5460ab85d670c /java/jflex/Makefile
parent96281f84f1295719adf53cd3933b595791ed8014 (diff)
downloadports-958b51028ae38e3b73ddc77ae30bd2c3bdfff178.tar.gz
ports-958b51028ae38e3b73ddc77ae30bd2c3bdfff178.zip
Notes
Diffstat (limited to 'java/jflex/Makefile')
-rw-r--r--java/jflex/Makefile28
1 files changed, 12 insertions, 16 deletions
diff --git a/java/jflex/Makefile b/java/jflex/Makefile
index 3d918ef0071f..61c4b30970a2 100644
--- a/java/jflex/Makefile
+++ b/java/jflex/Makefile
@@ -6,39 +6,35 @@
#
PORTNAME= jflex
-PORTVERSION= 1.4
+PORTVERSION= 1.4.1
CATEGORIES= java devel
MASTER_SITES= http://www.jflex.de/:jflexde \
http://jflex.sourceforge.net/jar/devel/:jflexsf
-DISTFILES= jflex-1.4.tar.gz:jflexde \
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz:jflexde \
JFlex.jar:jflexsf \
java_cup.jar:jflexsf
-EXTRACT_ONLY= jflex-1.4.tar.gz
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.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_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
+
+USE_JAVA= yes
+USE_ANT= 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}"
+ALL_TARGET= jar
+MAKE_ENV+= CLASSPATH="${DISTDIR}/JFlex.jar:${DISTDIR}/java_cup.jar:${JAVALIBDIR}/junit.jar"
-PLIST_SUB= JAVAJARDIR=${JAVAJARDIR:S|^${PREFIX}/||}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
-do-configure:
- @${REINPLACE_CMD} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|' \
- ${WRKSRC}/bin/jflex
+SUB_FILES= jflex.sh
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/bin/jflex ${PREFIX}/bin/jflex
- @${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${JAVAJARDIR}/JFlex.jar
+ ${INSTALL_SCRIPT} ${WRKDIR}/jflex.sh ${PREFIX}/bin/jflex
+ ${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${JAVAJARDIR}/JFlex.jar
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}