aboutsummaryrefslogtreecommitdiffstats
path: root/devel/antlr
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2004-11-16 07:59:52 +0800
committerglewis <glewis@FreeBSD.org>2004-11-16 07:59:52 +0800
commit6d9fae7cd4201b6041f61b3892c5572a16806ce7 (patch)
tree49b32f3982c2a1191522bedc7c9fb95d4e0db943 /devel/antlr
parent10cdf347fa95f3d481b160b861f5a621b9655047 (diff)
downloadfreebsd-ports-gnome-6d9fae7cd4201b6041f61b3892c5572a16806ce7.tar.gz
freebsd-ports-gnome-6d9fae7cd4201b6041f61b3892c5572a16806ce7.tar.zst
freebsd-ports-gnome-6d9fae7cd4201b6041f61b3892c5572a16806ce7.zip
. 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.
Diffstat (limited to 'devel/antlr')
-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 bf3805e0fc88..c330c7c38f03 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 3bc897c6cbf5..1065d73c14fb 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 "$@"