jbigi/jcpuid build scripts: Look for OpenJDK7 in kFreeBSD (it has landed in Debian testing)

This commit is contained in:
kytv
2013-09-11 14:04:58 +00:00
parent 23444e4b81
commit 5e90780590

View File

@@ -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