Thursday, November 4, 2010

Compile Latest Firefox

Go to ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.6.12/source/ and download firefox-3.6.12.source.tar.bz2. Get all the tools and things you need to build Firefox. In a terminal as root :

apt-get build-dep iceweasel
apt-get install libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm libidl-dev

Extract  firefox-3.6.12.source.tar.bz2 : tar xf firefox-3.6.12.source.tar.bz2. Put a ./mozconfig file in the directory mozilla-1.9.2. Open .mozconfig inside a text editor and paste in the following text:

.$topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-release
#mk_add_options MOZ_MAKE_FLAGS="-j4"
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --enable-official-branding
ac_add_options --enable-system-cairo


In mozilla-1.9.2 open a terminal and enter make -f client.mk. Once the compile is done, the binaries will be in ../mozilla-1.9.2/ff-release/dist/bin/. After that cd mozilla-1.9.2/ff-release && make package. Package will be  in : mozilla-1.9.2/ff-release/dist/ (tar.bz2).
See my former post :debian-bits-and-snips.blogspot.com/2009/12/....
Many thanks to : http://lovingthepenguin.blogspot.com/2010/07/firefox-36-with-pretty-fonts-in-debian_15.html

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.