!!!
!!! WORK IN PROGRESS
!!!

This instruction list is a derivative of Christos' openjdk build howto.

It gets one a snapshot of openjdk8 built (provided it builds, of course :).

+ Dependencies for getting the source:
- install the package devel/mercurial

+ build dependencies
- install the package devel/nspr
- install the package print/cups (pulls in freetype2 if not available natively)
- install the package archivers/zip
- install the package archivers/unzip
- install the package meta-pkgs/modular-xorg-libs if
 you don't have native X installed
- install a jdk (lang/openjdk7-bin if that covers your needs)

+ Fetching the sources:
- the openjdk bsd-port source:
 hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8
 cd openjdk8 && sh ./get_source.sh

+ run the build, f.e. on amd64:
 export PATH=${PATH}:/usr/pkg/java/openjdk7-bin/bin
 export LD_LIBRARY_PATH=/usr/pkg/java/openjdk7-bin/jre/lib/amd64/server
 sh ./configure --x-includes=/usr/pkg/include --x-libraries=/usr/pkg/lib --with-cups=/usr/pkg
 gmake all

+ harvest and use:
# the result of the build will be in openjdk8/build/bsd-<arch>/j2sdk-image
# and openjdk8/build/bsd-<arch>/j2re-image. Move them somewhere they can stay,
# then
setenv JAVA_HOME <path to your jdk or jre>
setenv JVM_HOME <path to your jdk or jre>
# enjoy :)