2002-09-22 08:51:05 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><screen><command>export MOZILLA_OFFICIAL="1" &&
|
2002-09-22 08:51:05 +08:00
|
|
|
export BUILD_OFFICIAL="1" &&
|
2003-09-25 23:20:58 +08:00
|
|
|
export MOZ_INTERNAL_LIBART_LGPL="1"</command></screen>
|
2002-09-22 08:51:05 +08:00
|
|
|
Set some variables that affect what and how it is built. The first two exports
|
|
|
|
specify that we are building a distribution. The last export specifies that we
|
2003-09-25 23:20:58 +08:00
|
|
|
are ok with the <acronym>LGPL</acronym> versioned libart.</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--prefix=&mozilla-prefix;</command>: 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>
|
2002-10-25 08:00:54 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><screen><command>--enable-toolkit-gtk2</command></screen>Use gtk2
|
2003-02-07 00:56:53 +08:00
|
|
|
toolkit</para>
|
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><screen><command>--with-system-zlib --with-system-jpeg \
|
|
|
|
--with-system-png --with-system-mng"</command></screen>
|
2002-09-22 08:51:05 +08:00
|
|
|
Use the system versions for these packages.</para>
|
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--enable-xft</command> : Enable the Xft support. You need
|
|
|
|
<application>fontconfig</application> or the latest <application>XFree86
|
|
|
|
</application> version to enable xft.</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--enable-crypto</command> : Enable the Personal
|
|
|
|
Security Manager to enable <acronym>SSL</acronym> connections.</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><screen><command>--disable-jsd --disable-accessibility \
|
2002-09-22 08:51:05 +08:00
|
|
|
--disable-tests --disable-debug \
|
2003-04-08 23:42:15 +08:00
|
|
|
--disable-dtd-debug \
|
2002-09-22 08:51:05 +08:00
|
|
|
--disable-logging --enable-reorder \
|
2003-03-19 14:29:00 +08:00
|
|
|
--enable-strip \
|
2003-09-25 23:20:58 +08:00
|
|
|
--enable-cpp-rtti</command></screen>
|
2003-02-07 00:56:53 +08:00
|
|
|
Various options that affect what components are built and some optimization
|
2003-09-25 23:20:58 +08:00
|
|
|
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>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--enable-extensions=...</command> : Enables extensions. If you
|
|
|
|
want, you can disable all extensions other than the browser by changing this
|
|
|
|
switch to <command>--enable-extensions="default,-venkman,-inspector,-irc"</command>.</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><command>--enable-svg</command> : Enable <acronym>SVG</acronym>
|
|
|
|
(Scalable Vector Graphics) support.</para>
|
2002-09-22 08:51:05 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><screen><command>install -d &mozilla-prefix;/include/mozilla-&mozilla-version;/nss
|
2003-02-15 13:29:22 +08:00
|
|
|
cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
2003-09-25 23:20:58 +08:00
|
|
|
&mozilla-prefix;/include/mozilla-&mozilla-version;/nss</command></screen>
|
2002-09-22 08:51:05 +08:00
|
|
|
Copy the nss headers that are not copied by make install.</para>
|
|
|
|
|
2003-03-19 14:29:00 +08:00
|
|
|
<!--
|
2002-10-28 07:48:49 +08:00
|
|
|
<para><userinput>install -d &mozilla-prefix;/lib/mozilla-&mozilla-version;/openoffice</userinput> :
|
2002-09-23 22:58:13 +08:00
|
|
|
Make a directory to store static libraries that openoffice needs during compilation.
|
|
|
|
These libraries are not installed by default.</para>
|
2003-03-19 14:29:00 +08:00
|
|
|
-->
|
2002-09-23 22:58:13 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<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>
|
2002-09-23 22:58:13 +08:00
|
|
|
|
2003-09-25 23:20:58 +08:00
|
|
|
<para><screen><command>export LD_LIBRARY_PATH="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
2002-09-22 08:51:05 +08:00
|
|
|
export MOZILLA_FIVE_HOME="&mozilla-prefix;/lib/mozilla-&mozilla-version;" &&
|
|
|
|
./regxpcom &&
|
|
|
|
./regchrome &&
|
2003-09-25 23:20:58 +08:00
|
|
|
touch `find &mozilla-prefix;/lib/mozilla-${VERSION} -name *.rdf`</command>
|
|
|
|
</screen>
|
2002-09-22 08:51:05 +08:00
|
|
|
Create the required component registries to enable multi-user installs.</para>
|
|
|
|
|
|
|
|
</sect2>
|