forked from I2P_Developers/i2p.i2p
jbigi/jcpuid build scripts: Look for OpenJDK7 in kFreeBSD (it has landed in Debian testing)
This commit is contained in:
@@ -35,8 +35,15 @@ elif [ $UNIXTYPE = "linux" ] && [ -e /etc/arch-release ]; then
|
|||||||
elif [ $UNIXTYPE = "darwin" ]; then
|
elif [ $UNIXTYPE = "darwin" ]; then
|
||||||
JAVA_HOME=$(/usr/libexec/java_home)
|
JAVA_HOME=$(/usr/libexec/java_home)
|
||||||
elif [ $UNIXTYPE = "gnu/kfreebsd" ]; then
|
elif [ $UNIXTYPE = "gnu/kfreebsd" ]; then
|
||||||
|
# Even though the kernel is FreeBSD's, the userland is GNU.
|
||||||
|
# kFreeBSD has $JAVA_HOME/include/linux instead of $JAVA_HOME/include/*bsd
|
||||||
UNIXTYPE="linux"
|
UNIXTYPE="linux"
|
||||||
if [ -d /usr/lib/jvm/java-gcj ]; then
|
# OpenJDK 7 is supported as of Debian Jessie
|
||||||
|
if [ -d /usr/lib/jvm/java-7-openjdk-kfreebsd-amd64/ ]; then
|
||||||
|
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-kfreebsd-amd64"
|
||||||
|
elif [ -d /usr/lib/jvm/java-7-openjdk-kfreebsd-i386/ ]; then
|
||||||
|
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-kfreebsd-i386"
|
||||||
|
elif [ -d /usr/lib/jvm/java-gcj ]; then
|
||||||
JAVA_HOME="/usr/lib/jvm/java-gcj"
|
JAVA_HOME="/usr/lib/jvm/java-gcj"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user