FreeBSD & Mac OS X build instructions

Landon Fuller landonf at plausiblelabs.com
Wed Aug 20 13:56:46 PDT 2008


Hi all,

Here are my build instructions for FreeBSD and Mac OS X. I don't have  
an OpenBSD machine, so I haven't been able to test there.
I'm not sure what would be the best software to use (or who has  
hardware to spare), but it would be great to have a build farm going  
for at least FreeBSD, OpenBSD, and Mac OS X.

== Code Access ==

OpenJDK uses Mercurial with the Forest extension. Before checking out  
the BSD sources, you will need to install and configure Mercurial. See  
the OpenJDK Developer's Guide for more information.

To check out the BSD-Port forest:

hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port


== Dependencies ==

Kurt Miller's BSD binary plugs:
	http://www.intricatesoftware.com/distfiles/jdk-7-icedtea-plugs-1.6.tar.gz
or
	http://landonf.bikemonkey.org/static/soylatte/jdk-7-icedtea-plugs-1.6.tar.gz

Mac OS X bootstrap requires SoyLatte 1.0.3:
	http://landonf.bikemonkey.org/static/soylatte/

On FreeBSD, you'll need the following ports:
	- Java 6		- java/diablo-jdk16
	- freetype2	- print/freetype2
	- Xorg libraries (these will be installed as dependencies of the Java  
6 port)


== Building ==

Adjust the paths below as necessary, they assume that the JDK is  
installed in /usr/local,
and the binary plugs in your home directory.

If you have a SMP machine, I suggest setting HOTSPOT_BUILD_JOBS to  
match your available cores.

Mac OS X:

make \
ALT_BOOTDIR=/usr/local/soylatte-i386-1.0.3
ALT_BINARY_PLUGS_PATH=$HOME/jdk-7-icedtea-plugs \
ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include \
ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib \
ALT_CUPS_HEADERS_PATH=/usr/include \
ANT_HOME=/usr/share/ant \
NO_DOCS=true \
HOTSPOT_BUILD_JOBS=1

FreeBSD:

gmake \
ALT_BOOTDIR=/usr/local/diablo-jdk1.6.0 \
ALT_FREETYPE_HEADERS_PATH=/usr/local/include \
ALT_FREETYPE_LIB_PATH=/usr/local/lib \
ALT_BINARY_PLUGS_PATH=$HOME/jdk-7-icedtea-plugs \
ANT_HOME=/usr/local \
NO_DOCS=true \
HOTSPOT_BUILD_JOBS=1

Should output a full JDK installation in build/bsd-i586, or build/bsd- 
amd64 if you're running 64-bit FreeBSD.

-landonf



More information about the bsd-port-dev mailing list