summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/antlr/Makefile4
-rw-r--r--devel/antlr/files/antlr.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/devel/antlr/Makefile b/devel/antlr/Makefile
index bf3805e..c330c7c 100644
--- a/devel/antlr/Makefile
+++ b/devel/antlr/Makefile
@@ -19,7 +19,7 @@ CONFLICTS= pccts*
USE_GMAKE= yes
USE_JAVA= yes
-JAVA_VERSION= 1.2+
+JAVA_VERSION= 1.4+
HAS_CONFIGURE= yes
CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}" CLASSPATH="${PORT_CLASSPATH}"
@@ -46,7 +46,7 @@ post-extract:
${CHMOD} -R +w ${WRKSRC}
post-configure:
- @${SED} "s|%%JAVAJARDIR%%|${JAVAJARDIR}| ; s|%%LOCALBASE%%|${LOCALBASE}|" ${FILESDIR}/antlr.sh >${WRKDIR}/antlr.sh
+ @${SED} "s|%%JAVAJARDIR%%|${JAVAJARDIR}| ; s|%%LOCALBASE%%|${LOCALBASE}| ; s|%%JAVA_VERSION%%|${JAVA_VERSION}|" ${FILESDIR}/antlr.sh >${WRKDIR}/antlr.sh
.if defined(WITH_BUILT_JAVA_LIB)
pre-build:
diff --git a/devel/antlr/files/antlr.sh b/devel/antlr/files/antlr.sh
index 3bc897c..1065d73 100644
--- a/devel/antlr/files/antlr.sh
+++ b/devel/antlr/files/antlr.sh
@@ -2,4 +2,4 @@
#
# $FreeBSD$
-"%%LOCALBASE%%/bin/java" -classpath "%%JAVAJARDIR%%/antlr.jar" antlr.Tool "$@"
+JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -classpath "%%JAVAJARDIR%%/antlr.jar" antlr.Tool "$@"
OpenPOWER on IntegriCloud