%general-entities; ]> $LastChangedBy$ $Date$ Firefox-&firefox-version; Firefox Introduction to Firefox Firefox is a stand-alone browser based on the Mozilla codebase. &lfs70_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &firefox-md5sum; Download size: &firefox-size; Estimated disk space required: &firefox-buildsize; Estimated build time: &firefox-time; Firefox Dependencies Required , , and Note: libjpeg and libpng (patched for apng support) should have been installed before gdk-pixbuf and should exist on your system. If for some strange reason you haven't installed them, you should remove the and options from the mozconfig file created below. Recommended or . Optional , , , libvpx, Hunspell, , and (for gnome integration), , , , (linking against an installed xulrunner makes Firefox about 32 MB smaller, which is trivial compared to the size of xulrunner), , , Valgrind (only for testing the jemalloc code) and User Notes: Installation of Firefox The configuration of Firefox is accomplished by creating a mozconfig file containing the desired configuration options. A default mozconfig is created below. To see the entire list of available configuration options (and an abbreviated description of each one), issue ./configure --help. You may also wish to review the entire file and uncomment any other desired options. Create the file by issuing the following command: cat > mozconfig << "EOF" # If you have a multicore machine you can speed up the build by running # several jobs at once, but if you have a single core, delete this line: mk_add_options MOZ_MAKE_FLAGS="-j4" # If you have installed Yasm delete this option: ac_add_options --disable-webm # If you have installed DBus-Glib delete this option: ac_add_options --disable-dbus # If you have installed wireless-tools delete this option: ac_add_options --disable-necko-wifi # If you have installed libnotify delete this option: ac_add_options --disable-libnotify # If you have installed nss and nspr uncomment these two lines: # ac_add_options --with-system-nspr # ac_add_options --with-system-nss # If you have installed xulrunner uncomment these two lines: # ac_add_options --with-system-libxul # ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-&xulrunner-version; # Uncomment these if you have installed them: # ac_add_options --enable-system-sqlite # ac_add_options --enable-system-lcms # ac_add_options --with-system-libvpx # ac_add_options --enable-startup-notification mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir ac_add_options --enable-official-branding # The rest of these options have no effect if you're # building against an already installed xulrunner: ac_add_options --enable-pthreads ac_add_options --enable-system-ffi ac_add_options --enable-system-jpeg ac_add_options --enable-system-png ac_add_options --enable-system-cairo ac_add_options --enable-system-zlib ac_add_options --enable-shared ac_add_options --disable-static ac_add_options --disable-debug ac_add_options --disable-crashreporter ac_add_options --disable-installer ac_add_options --disable-updater ac_add_options --disable-tests EOF Compile Firefox by issuing the following commands: sed -i 's# ""##;/DMOZ_APP_VERSION/d' browser/base/Makefile.in && make -f client.mk If you have not linked Firefox against an installed Xulrunner: make -C firefox-build-dir/browser/installer This package does not come with a test suite. Now, if you have not linked Firefox against an installed Xulrunner, as the root user, install the package: mkdir /usr/lib/firefox-&firefox-version; && tar -xfv firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib/firefox-&firefox-version; --strip-components=1 && ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin/firefox && mkdir -p /usr/lib/mozilla/plugins && ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; && chown -R -v root:root /usr/lib/firefox-&firefox-version; If you have installed Firefox linked against an already installed Xulrunner, as the root user: make -C firefox-build-dir install && rm /usr/bin/firefox && cat > /usr/bin/firefox << "EOF" && #!/bin/bash /usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}" EOF chmod 755 /usr/bin/firefox && mkdir -p /usr/lib/mozilla/plugins && ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; && chown -R -v root:root /usr/lib/firefox-&firefox-version; Command Explanations sed -i 's# ""##;/DMOZ_APP_VERSION/d' ...: This removes an unprintable control character from the title bar. make -f client.mk ...: Mozilla products are packaged to allow the use of a configuration file which can be used to pass the configuration settings to the configure command. make uses the client.mk file to get initial configuration and setup parameters. make -C firefox-build-dir/browser/installer: this creates a Firefox tarball. tar -xfv firefox-build-dir/dist ...: This untars Firefox in /usr/lib. The option removes the leading 'firefox' directory from the filenames, allowing us to untar it into a versioned directory. Untaring it (instead of running make install) prevents it installing /usr/lib/firefox-devel-&firefox-version; which contains about 430 MB of files. If you need any of those files, they're in make -C firefox-build-dir install: This runs make install in firefox-build-dir. ln -sfv ... /usr/bin/firefox: this puts a symbolic link to the firefox executable in your ${PATH}. mkdir -p /usr/lib/mozilla/plugins: this checks that /usr/lib/mozilla/plugins exists (if you installed , it was probably already there). ln -sv ... /usr/lib/firefox-&firefox-version;: this makes a symbolic link to /usr/lib/mozilla/plugins. Contents Installed Programs Installed Libraries Installed Directories firefox Numerous libraries, browser components, plugins, extensions, and helper modules installed in /usr/lib/firefox-&firefox-version;. /usr/lib/firefox-&firefox-version; Short Descriptions firefox is a gtk2 internet browser that uses the gecko rendering engine. firefox