[2aaa7e5] | 1 | <sect2>
|
---|
| 2 | <title>Command explanations</title>
|
---|
| 3 |
|
---|
| 4 | <para><userinput>export MOZILLA_OFFICIAL="1" &&
|
---|
| 5 | export BUILD_OFFICIAL="1" &&
|
---|
| 6 | export MOZ_INTERNAL_LIBART_LGPL="1"</userinput>
|
---|
| 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 |
|
---|
[2b36b6b] | 11 | <para><userinput>--prefix=&mozilla-prefix;</userinput>: Previously mozilla did
|
---|
| 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 |
|
---|
[2aaa7e5] | 17 | <para><screen><userinput>--with-system-zlib --with-system-jpeg \
|
---|
| 18 | --with-system-png --with-system-mng"</userinput></screen>
|
---|
| 19 | Use the system versions for these packages.</para>
|
---|
| 20 |
|
---|
| 21 | <para><userinput>--enable-xft</userinput>: Enable the Xft
|
---|
| 22 | support.</para>
|
---|
| 23 |
|
---|
| 24 | <para><userinput>--enable-crypto</userinput>: Enable the Personal
|
---|
| 25 | Security Manager to enable SSL connections.</para>
|
---|
| 26 |
|
---|
| 27 | <para><screen><userinput>--disable-jsd --disable-accessibility \
|
---|
| 28 | --disable-tests --disable-debug \
|
---|
| 29 | --enable-optimize=-O3 --disable-dtd-debug \
|
---|
| 30 | --disable-logging --enable-reorder \
|
---|
| 31 | --enable-strip --enable-elf-dynstr-gc \
|
---|
[098ad89] | 32 | --enable-cpp-rtti</userinput></screen>
|
---|
[2aaa7e5] | 33 | Disable all debugging options and enable all optimization options. You can
|
---|
| 34 | pick and choose from these options. More information on them can be found
|
---|
| 35 | in the mozilla configure script help.</para>
|
---|
| 36 |
|
---|
[098ad89] | 37 | <para><userinput>--enable-extensions=...</userinput>: Enables
|
---|
[2aaa7e5] | 38 | extensions. If you want, you can disable all extensions other than the
|
---|
| 39 | browser by changing this switch to
|
---|
| 40 | <userinput>--enable-extensions="default,-venkman,-inspector,-irc"</userinput>.</para>
|
---|
| 41 |
|
---|
| 42 | <para><userinput>--enable-svg</userinput>: Enable SVG (Scalable Vector
|
---|
| 43 | Graphics) support.</para>
|
---|
| 44 |
|
---|
| 45 | <para><screen><userinput>install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/security
|
---|
| 46 | cp -Lf dist/private/security/*.h dist/public/security/*.h \
|
---|
| 47 | &mozilla-prefix;/include/mozilla-&mozilla-version;/security</userinput></screen>
|
---|
| 48 | Copy the nss headers that are not copied by make install.</para>
|
---|
| 49 |
|
---|
[098ad89] | 50 | <para><userinput>install -d &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice</userinput>:
|
---|
| 51 | Make a directory to store static libraries that openoffice needs during compilation.
|
---|
| 52 | These libraries are not installed by default.</para>
|
---|
| 53 |
|
---|
| 54 | <para><userinput>ln -nsf mozilla-&mozilla-version; ...</userinput>:
|
---|
| 55 | Mozilla installs headers and libraries in version specific directories. This
|
---|
| 56 | link makes symbolic links so that applications that depend on Mozilla (such as
|
---|
[2b36b6b] | 57 | OpenOffice, Galeon, etc.) don't need to know which version of mozilla is
|
---|
| 58 | installed.
|
---|
[098ad89] | 59 | </para>
|
---|
| 60 |
|
---|
| 61 | <para><userinput>ln -sf mozilla &mozilla-prefix;/bin/netscape</userinput>: Since
|
---|
[2aaa7e5] | 62 | many applications expect the browser to be named netscape, make a symbolic
|
---|
| 63 | link for convenience.</para>
|
---|
| 64 |
|
---|
| 65 | <para><screen><userinput>export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 66 | export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
---|
| 67 | ./regxpcom &&
|
---|
| 68 | ./regchrome &&
|
---|
| 69 | touch `find &mozilla-prefix;/lib/mozilla-${VERSION} -name *.rdf`</userinput></screen>
|
---|
| 70 | Create the required component registries to enable multi-user installs.</para>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|