. Antlr now seems to require Java 1.4 or better (certainly the build fails
with 1.3). So fix the build for 4.x by requiring Java 1.4+. . Reflect this requirement in antlr.sh.
This commit is contained in:
parent
b29bec8566
commit
397de7caa2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121727
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue