1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/www/apache-forrest/files/patch-tools-ant-bin-ant
2007-04-18 21:14:26 +00:00

26 lines
723 B
Plaintext

$FreeBSD$
--- tools/ant/bin/ant Tue Apr 10 18:18:14 2007
+++ tools/ant/bin/ant.port Mon Apr 16 14:27:19 2007
@@ -78,6 +78,7 @@
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
+freebsd=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
Darwin*) darwin=true
@@ -85,7 +86,13 @@
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
fi
;;
+ FreeBSD*) freebsd=true
+ if [ -z "$JAVA_HOME" ] ; then
+ JAVA_HOME=%%JAVA_HOME%%
+ fi
+ ;;
esac
+export JAVA_HOME
# Forrest uses its own packaged Ant, so don't use the system Ant libraries
#if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then