glfs/xsoft/graphweb/mozilla/mozilla-exp.xml
Tushar Teredesai a41bc9f40c Updated to Mozilla-1.6
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1709 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-01-17 19:36:05 +00:00

83 lines
3.7 KiB
XML

<sect2>
<title>Command explanations</title>
<para><screen><command>export MOZILLA_OFFICIAL="1" &amp;&amp;
export BUILD_OFFICIAL="1"</command></screen>
Set some variables that affect what and how it is built. The first two exports
specify that we are building a distribution.</para>
<!--
<para> The last export specifies that we
are ok with the <acronym>LGPL</acronym> versioned libart.</para>
-->
<para><parameter>--prefix=/usr</parameter>: Previously mozilla did
not support the make install option. Hence the package was installed in
<filename>/opt</filename>. The package now supports "make install" and follows
the <acronym>FHS</acronym> guidelines for installation. Hence the book now
recommends installation in a system wide prefix such as <filename>/usr
</filename>.</para>
<para><screen><option>--enable-toolkit-gtk2</option></screen>Use gtk2
toolkit</para>
<para><screen><option>--with-system-zlib --with-system-jpeg \
--with-system-png --with-system-mng</option></screen>
Use the system versions for these packages.</para>
<para><option>--enable-xft</option>: Enable the Xft support. You need
<application>fontconfig</application> or the latest <application>XFree86
</application> version to enable xft.</para>
<para><option>--enable-crypto</option>: Enable the Personal
Security Manager to enable <acronym>SSL</acronym> connections.</para>
<para><screen><option>--disable-jsd --disable-accessibility \
--disable-tests --disable-debug \
--disable-dtd-debug \
--disable-logging --enable-reorder \
--enable-strip \
--enable-cpp-rtti</option></screen>
Various options that affect what components are built and some optimization
options. You can pick and choose from these options. More information on them
can be found in the <application>Mozilla</application> <command>configure
</command> script help. Not all options are used in the instructions given
above.</para>
<para><option>--enable-extensions=...</option>: Enables extensions. If you
want, you can disable all extensions other than the browser by changing this
switch to <parameter>--enable-extensions="default,-venkman,-inspector,-irc"</parameter>.
For a short description of the various extensions available with the mozilla
source, see
<ulink url="http://linuxfromscratch.org/~tushar/downloads/mozilla-extensions.txt"/>.</para>
<para><screen><command>install -d /usr/include/mozilla-&mozilla-version;/nss
cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
/usr/include/mozilla-&mozilla-version;/nss</command></screen>
Copy the nss headers that are not copied by make install.</para>
<!--
<para><userinput>install -d /usr/lib/mozilla-&mozilla-version;/openoffice</userinput> :
Make a directory to store static libraries that openoffice needs during compilation.
These libraries are not installed by default.</para>
-->
<para><command>ln -nsf mozilla-&mozilla-version; ...</command>:
<application>Mozilla</application> installs headers and libraries in version
specific directories. This link makes symbolic links so that applications that
depend on <application>Mozilla</application> (such as <application>OpenOffice
</application>, <application>Galeon</application>, etc.) don't need to know
which version of <application>Mozilla</application> is installed.</para>
<para><screen><command>export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &amp;&amp;
./regxpcom &amp;&amp;
./regchrome &amp;&amp;
touch `find /usr/lib/mozilla-${VERSION} -name *.rdf`</command>
</screen>
Create the required component registries to enable multi-user installs. These
steps should be repeated each time a mozilla add-on is installed as root
to allow normal users to run mozilla.</para>
</sect2>