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