Thursday, 9 December 2010

Updated BLFS Packages - Firefox

First the stand alone Firefox dependency Yasm:

cd /sources/extras
wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
cd /dev/shm
tar -xzvf /sources/extras/yasm-0.8.0.tar.gz
cd yasm-0.8.0
CC="gcc -fPIC" ./configure --prefix=/usr
time make $CORES_TO_USE
make install
cd ..
rm -rvf yasm-0.8.0

Now Firefox:

cd /sources/extras
wget ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/4.0b7/source/firefox-4.0b7.source.tar.bz2
cd /dev/shm
tar -xjvf /sources/extras/firefox-4.0b7.source.tar.bz2
cd moz*
cat > .mozconfig << "EOF"
ac_add_options --enable-application=browser
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox-build
mk_add_options MOZ_MAKE_FLAGS="-j2"
#Or -j4 or -j8 or comment the whole thing out for single core.
ac_add_options --prefix=/opt/firefox
ac_add_options --enable-optimize
ac_add_options --enable-system-cairo
ac_add_options --enable-system-sqlite
ac_add_options --enable-pango
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
#ac_add_options --with-system-png
ac_add_options --with-pthreads
ac_add_options --with-system-zlib
ac_add_options --disable-accessibility
ac_add_options --disable-crashreporter
ac_add_options --disable-dbus
ac_add_options --disable-gnomevfs
ac_add_options --disable-necko-wifi
ac_add_options --disable-installer
ac_add_options --disable-javaxpcom
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --disable-libnotify
ac_add_options --enable-official-branding
ac_add_options --enable-safe-browsing
ac_add_options --enable-strip
EOF

time make -f client.mk build
make -f client.mk install
cd ..
rm -rvf moz*

Be sure to check your install path and then change the text in the following command if needs be:

cat >> /etc/profile.d/custom_variables.sh << "EOF"
FFPATH=/opt/firefox/lib/firefox-4.0b7
EOF

source /etc/profile

cat >> /etc/ld.so.conf << "EOF"
# Extra Path so Firefox's libraries can be used by Flash10
/opt/firefox/lib/firefox-4.0b7
# End of Extra Path.
EOF

And now download and install the essential plugin flashplayer, and link the Java plugin.

wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
tar -xzvf install_flash_player_10_linux.tar.gz
mkdir -v ${FFPATH}/plugins
cp -v libflashplayer.so ${FFPATH}/plugins
ln -sv /opt/jdk/jre/lib/i386/libnpjp2.so ${FFPATH}/plugins

No comments:

Post a Comment