[2aaa7e5] | 1 | <sect2>
|
---|
| 2 | <title>Command explanations</title>
|
---|
| 3 |
|
---|
[24c5c34] | 4 | <para><screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
---|
[2aaa7e5] | 5 | export BUILD_OFFICIAL="1" &&
|
---|
[24c5c34] | 6 | export MOZ_INTERNAL_LIBART_LGPL="1"</userinput></screen>
|
---|
[2aaa7e5] | 7 | Set some variables that affect what and how it is built. The first two exports
|
---|
| 8 | specify that we are building a distribution. The last export specifies that we
|
---|
| 9 | are ok with the LGPL versioned libart.</para>
|
---|
| 10 |
|
---|
[1c6182e] | 11 | <para><userinput>--prefix=&mozilla-prefix;</userinput>: Previously mozilla did
|
---|
[2b36b6b] | 12 | not support the make install option. Hence the package was installed in /opt.
|
---|
| 13 | The package now supports "make install" and follows the FHS guidelines for
|
---|
| 14 | installation. Hence the book now recommends installation in a system wide prefix
|
---|
| 15 | such as /usr.</para>
|
---|
| 16 |
|
---|
[1c6182e] | 17 | <para><screen><userinput>--enable-toolkit-gtk2</userinput></screen>Use gtk2
|
---|
| 18 | toolkit</para>
|
---|
| 19 |
|
---|
[2aaa7e5] | 20 | <para><screen><userinput>--with-system-zlib --with-system-jpeg \
|
---|
| 21 | --with-system-png --with-system-mng"</userinput></screen>
|
---|
| 22 | Use the system versions for these packages.</para>
|
---|
| 23 |
|
---|
[24c5c34] | 24 | <para><userinput>--enable-xft</userinput> : Enable the Xft
|
---|
[baca6e9] | 25 | support. You need fontconfig or the latest XFree86 CVS version to enable xft.</para>
|
---|
[2aaa7e5] | 26 |
|
---|
[24c5c34] | 27 | <para><userinput>--enable-crypto</userinput> : Enable the Personal
|
---|
[2aaa7e5] | 28 | Security Manager to enable SSL connections.</para>
|
---|
| 29 |
|
---|
| 30 | <para><screen><userinput>--disable-jsd --disable-accessibility \
|
---|
| 31 | --disable-tests --disable-debug \
|
---|
| 32 | --enable-optimize=-O3 --disable-dtd-debug \
|
---|
| 33 | --disable-logging --enable-reorder \
|
---|
[766e17e] | 34 | --enable-strip \
|
---|
[098ad89] | 35 | --enable-cpp-rtti</userinput></screen>
|
---|
[1c6182e] | 36 | Various options that affect what components are built and some optimization
|
---|
| 37 | options. You can
|
---|
[2aaa7e5] | 38 | pick and choose from these options. More information on them can be found
|
---|
[f5b4f72] | 39 | in the mozilla configure script help. Not all options are used in the
|
---|
| 40 | instructions given above.</para>
|
---|
[2aaa7e5] | 41 |
|
---|
[24c5c34] | 42 | <para><userinput>--enable-extensions=...</userinput> : Enables
|
---|
[2aaa7e5] | 43 | extensions. If you want, you can disable all extensions other than the
|
---|
| 44 | browser by changing this switch to
|
---|
| 45 | <userinput>--enable-extensions="default,-venkman,-inspector,-irc"</userinput>.</para>
|
---|
| 46 |
|
---|
[24c5c34] | 47 | <para><userinput>--enable-svg</userinput> : Enable SVG (Scalable Vector
|
---|
[2aaa7e5] | 48 | Graphics) support.</para>
|
---|
| 49 |
|
---|
[aca49ab1] | 50 | <para><screen><userinput>install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/nss
|
---|
| 51 | cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
| 52 | &mozilla-prefix;/include/mozilla-&mozilla-version;/nss</userinput></screen>
|
---|
[2aaa7e5] | 53 | Copy the nss headers that are not copied by make install.</para>
|
---|
| 54 |
|
---|
[766e17e] | 55 | <!--
|
---|
[24c5c34] | 56 | <para><userinput>install -d &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice</userinput> :
|
---|
[098ad89] | 57 | Make a directory to store static libraries that openoffice needs during compilation.
|
---|
| 58 | These libraries are not installed by default.</para>
|
---|
[766e17e] | 59 | -->
|
---|
[098ad89] | 60 |
|
---|
[24c5c34] | 61 | <para><userinput>ln -nsf mozilla-&mozilla-version; ...</userinput> :
|
---|
[098ad89] | 62 | Mozilla installs headers and libraries in version specific directories. This
|
---|
| 63 | link makes symbolic links so that applications that depend on Mozilla (such as
|
---|
[2b36b6b] | 64 | OpenOffice, Galeon, etc.) don't need to know which version of mozilla is
|
---|
| 65 | installed.
|
---|
[098ad89] | 66 | </para>
|
---|
| 67 |
|
---|
[2aaa7e5] | 68 | <para><screen><userinput>export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 69 | export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 70 | ./regxpcom &&
|
---|
| 71 | ./regchrome &&
|
---|
| 72 | touch `find &mozilla-prefix;/lib/mozilla-${VERSION} -name *.rdf`</userinput></screen>
|
---|
| 73 | Create the required component registries to enable multi-user installs.</para>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|