Compiling and Installing Mozilla
download and untar the mozilla source
tar -jxvf
mozilla-source.tar.bz2
This is a build that relies on an object dir ie the mozilla source die
is mozilla and the mozilla object dir is mozilla-obj
mozilla/ <-- Source dir
mozilla-obj/ <-- Object dir
What the .mozconfig should contain
(it is to be put into the mozilla source dir)
# sh
# Build configuration script
#
# See http://www.mozilla.org/build/unix.html for build
instructions.
#
# Options for 'configure' (same as command-line options).
ac_add_options --with-pthreads
#ac_add_options --with-system-nspr
ac_add_options --with-system-jpeg=/usr
ac_add_options --with-system-zlib=/usr
ac_add_options --with-system-png=/usr
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-calendar
ac_add_options --enable-xft
ac_add_options --enable-crypto
ac_add_options --enable-native-uconv
ac_add_options --enable-ldap-experimental
ac_add_options --enable-svg
ac_add_options --disable-debug
ac_add_options --enable-reorder
ac_add_options --enable-strip
ac_add_options --enable-xterm-updates
ac_add_options --with-default-mozilla-five-home=/usr/local/mozilla
#ac_add_options --disable-shared
#ac_add_options --enable-static
export MOZILLA_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
export BUILD_OFFICIAL=1
ac_add_options --enable-optimize='-O3 -march=i686 -mcpu=i686'
mk_add_options
MOZ_OBJDIR=/home/james/downloads/mozilla/mozilla-obj
export MOZ_INTERNAL_LIBART_LGPL=1
mk_add_options MOZ_INTERNAL_LIBART_LGPL=1
checkout-mozilla-and-build script put
this in $PATH
#!/bin/sh
# cvs update and compile mozilla
SRC_TOP=/home/james/downloads/mozilla
SRC_ROOT=$SRC_TOP/mozilla
MOZILLA_OBJ=$SRC_TOP/mozilla-obj
cd $SRC_TOP
export CVSROOT=:pserver:[email protected]:/cvsroot
# cvs login
cvs co mozilla/client.mk
export MOZCONFIG=$MOZILLA_OBJ/.mozconfig
cd $SRC_ROOT
make -f client.mk pull_and_build_all