1 | <sect2>
|
---|
2 | <title>Command explanations</title>
|
---|
3 |
|
---|
4 | <para><screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
---|
5 | export BUILD_OFFICIAL="1" &&
|
---|
6 | export MOZ_INTERNAL_LIBART_LGPL="1"</userinput></screen>
|
---|
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 |
|
---|
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 |
|
---|
17 | <para><screen><userinput>--enable-toolkit-gtk2</userinput></screen>Use gtk2
|
---|
18 | toolkit</para>
|
---|
19 |
|
---|
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 |
|
---|
24 | <para><userinput>--enable-xft</userinput> : Enable the Xft
|
---|
25 | support.</para>
|
---|
26 |
|
---|
27 | <para><userinput>--enable-crypto</userinput> : Enable the Personal
|
---|
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 \
|
---|
34 | --enable-strip --enable-elf-dynstr-gc \
|
---|
35 | --enable-cpp-rtti</userinput></screen>
|
---|
36 | Various options that affect what components are built and some optimization
|
---|
37 | options. You can
|
---|
38 | pick and choose from these options. More information on them can be found
|
---|
39 | in the mozilla configure script help.</para>
|
---|
40 |
|
---|
41 | <para><userinput>--enable-extensions=...</userinput> : Enables
|
---|
42 | extensions. If you want, you can disable all extensions other than the
|
---|
43 | browser by changing this switch to
|
---|
44 | <userinput>--enable-extensions="default,-venkman,-inspector,-irc"</userinput>.</para>
|
---|
45 |
|
---|
46 | <para><userinput>--enable-svg</userinput> : Enable SVG (Scalable Vector
|
---|
47 | Graphics) support.</para>
|
---|
48 |
|
---|
49 | <para><screen><userinput>install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/security
|
---|
50 | cp -Lf dist/private/security/*.h dist/public/security/*.h \
|
---|
51 | &mozilla-prefix;/include/mozilla-&mozilla-version;/security</userinput></screen>
|
---|
52 | Copy the nss headers that are not copied by make install.</para>
|
---|
53 |
|
---|
54 | <para><userinput>install -d &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice</userinput> :
|
---|
55 | Make a directory to store static libraries that openoffice needs during compilation.
|
---|
56 | These libraries are not installed by default.</para>
|
---|
57 |
|
---|
58 | <para><userinput>ln -nsf mozilla-&mozilla-version; ...</userinput> :
|
---|
59 | Mozilla installs headers and libraries in version specific directories. This
|
---|
60 | link makes symbolic links so that applications that depend on Mozilla (such as
|
---|
61 | OpenOffice, Galeon, etc.) don't need to know which version of mozilla is
|
---|
62 | installed.
|
---|
63 | </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>
|
---|