Building Firefox 3.0 BETA 2 on FreeBSD 6
Download the source here and unpack it. Then cd to the unpacked directory.
The build process is a little whacked so you’ll need these patches to get it to actually build firefox on FreeBSD :
firefox3.0b2-freebsd62-patches.tar.gz
(md5 6acb32e6e7895e4da24055043d344f87)
$ patch config/autoconf.mk.in < ../config_autoconf.mk.in.patch
patching file config/autoconf.mk.in
$ patch security/nss/cmd/shlibsign/sign.sh < ../security_nss_cmd_shlibsign_sign.sh.patch
patching file security/nss/cmd/shlibsign/sign.sh
$ patch content/xslt/public/txDouble.h < ../content_xslt_public_txDouble.h.patch
patching file content/xslt/public/txDouble.h
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-3.0b2-en-US.freebsd62-i386-static
ac_add_options --enable-optimize="-O2"
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-debug
ac_add_options --enable-official-branding
ac_add_options --prefix=/usr/local/built/firefox-3.0b2
ac_add_options --disable-libxul
ac_add_options --enable-static
ac_add_options --disable-tests
ac_add_options --disable-shared
mk_add_options MOZ_CURRENT_PROJECT=browser
ac_add_options --enable-application=browser$ gmake -f client.mk buildIt will take a while to build (couple hours).
If all went well you should see something like this :

