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