Difference between revisions of "Firefox"

From CBLFS
Jump to navigationJump to search
Line 8: Line 8:
  
 
== Dependencies ==
 
== Dependencies ==
 +
=== Required ===
 +
* [[Gtk2]]
 +
* [[libIDL]]
 +
* [[Zip]]
 +
=== Recommended ===
 +
* [[NSS]]
 +
=== Optional ===
 +
* [[Unzip]]
 +
* [[libgnomeui]]
 +
 +
== Creating a .mozconfig ==
 +
 +
The .mozconfig file contains the options that will be used to build firefox.
 +
 +
The first line includes the default configuration for compiling a browser and the second line determines where the build objects are going to reside.
 +
'''ac_cv_visibility_pragma=no''' fixes build errors on 32bit non-x86 systems but won't cause any trouble on x86.
 +
Having '''--with-system-nss''' and '''--with-system-nspr''' does not mean you *HAVE* to have a system installed version of nss and nspr. It makes the build system prefer to use the system installed version of nss and nspr over the internal version.
 +
'''--enable-canvas''' enables support for the <canvas></canvas> tag.
 +
'''--enable-svg''' enables support for rendering svg files.
 +
'''--enable-strip''' causes the installed binaries to be stripped.
 +
'''--disable-tests''' prevents test programs from being built which saves a lot of disk space and time.
 +
'''--disable-accessibility''' - disables a11y support.
 +
'''--disable-installer''' prevents the installer from being built.
 +
'''--enable-official-branding''' causes the installed binaries to have the official Firefox name embedded in them. Due to license restrictions, you may not distribute binaries created using this option.
 +
 +
cat > .mozconfig << "EOF"
 +
. $topsrcdir/browser/config/mozconfig
 +
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
 +
 +
ac_cv_visibility_pragma=no
 +
 +
ac_add_options --prefix=/opt/firefox-2.0
 +
 +
ac_add_options --with-system-nss
 +
ac_add_options --with-system-nspr
 +
 +
ac_add_options --with-system-zlib
 +
ac_add_options --with-system-png
 +
ac_add_options --with-system-jpeg
 +
ac_add_options --enable-system-cairo
 +
 +
ac_add_options --enable-canvas
 +
ac_add_options --enable-svg
 +
 +
ac_add_options --enable-strip
 +
ac_add_options --disable-tests
 +
ac_add_options --disable-accessibility
 +
ac_add_options --disable-installer
 +
ac_add_options --enable-official-branding
 +
EOF
 +
  
 
== Non-Multilib ==
 
== Non-Multilib ==
  
 
== Multilib ==
 
== Multilib ==

Revision as of 16:25, 30 October 2006

Download Source: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0/source/firefox-2.0-source.tar.bz2

Dependencies

Required

Recommended

Optional

Creating a .mozconfig

The .mozconfig file contains the options that will be used to build firefox.

The first line includes the default configuration for compiling a browser and the second line determines where the build objects are going to reside. ac_cv_visibility_pragma=no fixes build errors on 32bit non-x86 systems but won't cause any trouble on x86. Having --with-system-nss and --with-system-nspr does not mean you *HAVE* to have a system installed version of nss and nspr. It makes the build system prefer to use the system installed version of nss and nspr over the internal version. --enable-canvas enables support for the <canvas></canvas> tag. --enable-svg enables support for rendering svg files. --enable-strip causes the installed binaries to be stripped. --disable-tests prevents test programs from being built which saves a lot of disk space and time. --disable-accessibility - disables a11y support. --disable-installer prevents the installer from being built. --enable-official-branding causes the installed binaries to have the official Firefox name embedded in them. Due to license restrictions, you may not distribute binaries created using this option.

cat > .mozconfig << "EOF"
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

ac_cv_visibility_pragma=no

ac_add_options --prefix=/opt/firefox-2.0

ac_add_options --with-system-nss
ac_add_options --with-system-nspr

ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-jpeg
ac_add_options --enable-system-cairo

ac_add_options --enable-canvas
ac_add_options --enable-svg

ac_add_options --enable-strip
ac_add_options --disable-tests 
ac_add_options --disable-accessibility
ac_add_options --disable-installer 
ac_add_options --enable-official-branding 
EOF


Non-Multilib

Multilib