Defcon1-Header
Tool-BarfreeBSD ArticlesSearch Our SiteHOMEfreeBSD LinksContribute to FreeBSD HelpFreeBSD FilesFreeBSD Script Corner

Mozilla (M10) FreeBSD 3.3 How-To
This document explains how to build Mozilla (M10) for FreeBSD. At the time of this writing (16-Nov-1999) the Mozilla port for FreeBSD will not build on a -STABLE system.
This document is now out of date (27-Dec-1999.) M12 has been released and GNU make is at version 3.78.1. These directions will be available for a while longer, but are deprecated.
Install glib 1.2 (devel/glib12) from ports.

  # cd /usr/ports/devel/glib12
  # make install
  # cd /usr/local/bin
  # ln -s glib12-config glib-config

Install GTK+ 1.2 (x11-toolkits/gtk12) from ports.

  # cd /usr/ports/x11-toolkits/gtk12
  # make install
  # cd /usr/X11R6/bin
  # ln -s gtk12-config gtk-config

Fetch and build libIDL from source.

  # cd /usr/local/src
  # fetch ftp://ftp.mozilla.org/pub/mozilla/libraries/source/\
   libIDL-0.6.5.tar.gz
  # tar -zxvf libIDL-0.6.5.tar.gz
  # cd libIDL-0.6.5
  # ./configure
  # gmake
  # gmake install

Install gcc 2.95 (lang/egcs) from ports

  # cd /usr/ports/lang/egcs
  # make install

Fetch and build GNU make 3.76.1 in /usr/local/src/make-3.76.1

  # cd /usr/local/src
  # fetch ftp://prep.ai.mit.edu/pub/gnu/make/make-3.76.1.tar.gz
  # tar -zxvf make-3.76.1.tar.gz
  # cd make-3.76.1
  # ./configure
  # make
  # cd /usr/local/bin
  # [ -e gmake ] && mv gmake gmake-3.77
  # ln -s /usr/local/src/make-3.76.1/make gmake

Fetch Mozilla

  # cd /usr/local/src
  # fetch ftp://ftp.mozilla.org/pub/mozilla/releases/m10/src/\
   mozilla-source-M10.tar.gz
  # tar -zxvf mozilla-source-M10.tar.gz

Build Mozilla

  # cd /usr/local/src/mozilla
  # CC=gcc295; export CC
  # CCC=g++295; export CCC
  # ./configure
  # gmake

Test the build

  # MOZILLA_FIVE_HOME=/usr/local/src/mozilla/dist/bin
  # LD_LIBRARY_PATH=/usr/local/src/mozilla/dist/bin  # /usr/local/src/mozilla/dist/bin/apprunner

Play with Mozilla Clean up when you're finished

  # cd /usr/local/bin
  # rm gmake
  # [ -e gmake-3.77 ] && mv gmake-3.77 gmake
  # rm glib-config
  # cd /usr/X11R6/bin
  # rm gtk-config

© 1997 - 20013 Defcon1, www.defcon1.org , Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of www.defcon1.org and the content's original author.

Defcon1-Header2
Tool-Bar-2Defcon1  Webmail