2009-03-12 21:37:30 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2012-06-04 21:29:09 +08:00
|
|
|
<!ENTITY xulrunner-download-http " ">
|
|
|
|
<!-- "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2"> -->
|
2012-02-13 23:33:03 +08:00
|
|
|
<!ENTITY xulrunner-download-ftp
|
|
|
|
"ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
|
2011-01-08 05:25:26 +08:00
|
|
|
<!-- md5sum and size should match firefox, but the buildsize and time will differ -->
|
2012-06-04 21:29:09 +08:00
|
|
|
<!ENTITY xulrunner-md5sum "f50ca7656eec47030b396f39075fa980">
|
|
|
|
<!ENTITY xulrunner-size "76 MB">
|
2012-06-09 00:21:41 +08:00
|
|
|
<!ENTITY xulrunner-buildsize "1 GB (95 MB installed)">
|
|
|
|
<!ENTITY xulrunner-time "25 SBU">
|
2009-03-12 21:37:30 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="xulrunner" xreflabel="Xulrunner-&xulrunner-version;">
|
|
|
|
<?dbhtml filename="xulrunner.html" ?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Xulrunner-&xulrunner-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="xulrunner">
|
|
|
|
<primary sortas="a-Xulrunner">Xulrunner</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Xulrunner</title>
|
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
<application>Xulrunner</application> is a runtime environment for XUL
|
|
|
|
applications, and forms the major part of the
|
|
|
|
<application>Mozilla</application> codebase. In particular, it provides
|
|
|
|
the Gecko engine together with pkgconfig files so that other applications
|
|
|
|
can find and use it.
|
|
|
|
</para>
|
2011-11-29 22:51:04 +08:00
|
|
|
|
2012-03-05 23:41:10 +08:00
|
|
|
&lfs71_checked;
|
2010-08-07 06:25:46 +08:00
|
|
|
|
2009-03-12 21:37:30 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&xulrunner-download-http;"/>
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&xulrunner-download-ftp;"/>
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &xulrunner-md5sum;
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Download size: &xulrunner-size;
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &xulrunner-buildsize;
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &xulrunner-time;
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Xulrunner Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para role="required">
|
|
|
|
<xref linkend="alsa-lib"/>,
|
|
|
|
<xref linkend="gtk2"/>,
|
|
|
|
<xref linkend="zip"/> and
|
|
|
|
<xref linkend="unzip"/>.
|
|
|
|
</para>
|
|
|
|
|
2011-11-30 21:59:55 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="yasm"/> or <xref linkend="libvpx"/>
|
|
|
|
(to allow <application>Xulrunner</application> to play webm videos).
|
|
|
|
</para>
|
2011-11-30 21:59:55 +08:00
|
|
|
|
2009-03-12 21:37:30 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="dbus-glib"/>,
|
|
|
|
<xref linkend="startup-notification"/>,
|
|
|
|
<xref linkend="sqlite"/>,
|
|
|
|
<ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
|
2012-07-14 18:48:48 +08:00
|
|
|
<xref linkend="libevent"/>,
|
2012-03-14 22:46:53 +08:00
|
|
|
<xref linkend="doxygen"/>,
|
|
|
|
<xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/> (for
|
|
|
|
integration with the old version of <application>Gnome</application>),
|
|
|
|
<xref linkend="libnotify"/>,
|
|
|
|
<xref linkend="nspr"/>,
|
|
|
|
<xref linkend="nss"/>,
|
|
|
|
<xref linkend="wireless_tools"/>,
|
|
|
|
<ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
|
|
|
|
the jemalloc code) and
|
|
|
|
<xref linkend="wget"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/xulrunner"/>
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Xulrunner</title>
|
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
The configuration of <application>Xulrunner</application> is accomplished
|
|
|
|
by creating a <filename>mozconfig</filename> file containing the desired
|
|
|
|
configuration options. A default <filename>mozconfig</filename> is created
|
|
|
|
below. To see the entire list of available configuration options (and an
|
|
|
|
abbreviated description of each one), issue <command>./configure
|
|
|
|
--help</command>. You should review the entire file and comment or
|
|
|
|
uncomment options as necessary.
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2012-02-01 22:22:30 +08:00
|
|
|
<screen><userinput>cat > mozconfig << "EOF"
|
2012-01-16 23:04:29 +08:00
|
|
|
# If you have a multicore machine you can speed up the build by running
|
2011-11-29 22:51:04 +08:00
|
|
|
# several jobs at once, but if you have a single core, delete this line:
|
|
|
|
mk_add_options MOZ_MAKE_FLAGS="-j4"
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2011-11-30 21:59:55 +08:00
|
|
|
# If you have installed Yasm delete this option:
|
|
|
|
ac_add_options --disable-webm
|
|
|
|
|
2011-11-30 18:57:19 +08:00
|
|
|
# If you have installed DBus-Glib delete this option:
|
2011-11-29 22:51:04 +08:00
|
|
|
ac_add_options --disable-dbus
|
2011-01-10 00:51:09 +08:00
|
|
|
|
2011-11-30 18:57:19 +08:00
|
|
|
# If you have installed wireless-tools delete this option:
|
2011-11-29 22:51:04 +08:00
|
|
|
ac_add_options --disable-necko-wifi
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2011-11-30 18:57:19 +08:00
|
|
|
# If you have installed libnotify delete this option:
|
|
|
|
ac_add_options --disable-libnotify
|
|
|
|
|
2011-11-29 22:51:04 +08:00
|
|
|
# Uncomment these if you have installed them:
|
|
|
|
# ac_add_options --enable-startup-notification
|
2012-01-16 22:56:53 +08:00
|
|
|
# ac_add_options --enable-system-hunspell
|
2012-04-23 20:11:11 +08:00
|
|
|
# ac_add_options --enable-system-sqlite
|
2012-01-16 22:56:53 +08:00
|
|
|
# ac_add_options --with-system-libevent
|
2012-04-23 20:11:11 +08:00
|
|
|
# ac_add_options --with-system-libvpx
|
|
|
|
# ac_add_options --with-system-nspr
|
|
|
|
# ac_add_options --with-system-nss
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2011-12-09 03:49:21 +08:00
|
|
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
|
2012-04-23 20:11:11 +08:00
|
|
|
ac_add_options --disable-crashreporter
|
|
|
|
ac_add_options --disable-debug
|
2012-05-14 22:51:06 +08:00
|
|
|
ac_add_options --disable-debug-symbols
|
2012-04-23 20:11:11 +08:00
|
|
|
ac_add_options --disable-installer
|
|
|
|
ac_add_options --disable-static
|
|
|
|
ac_add_options --disable-tests
|
|
|
|
ac_add_options --disable-updater
|
2011-11-29 22:51:04 +08:00
|
|
|
ac_add_options --enable-application=xulrunner
|
2012-04-23 20:11:11 +08:00
|
|
|
ac_add_options --enable-shared
|
|
|
|
ac_add_options --enable-system-cairo
|
2011-11-29 22:51:04 +08:00
|
|
|
ac_add_options --enable-system-ffi
|
2012-04-23 20:11:11 +08:00
|
|
|
ac_add_options --prefix=/usr
|
|
|
|
ac_add_options --with-pthreads
|
2012-01-16 22:56:53 +08:00
|
|
|
ac_add_options --with-system-jpeg
|
|
|
|
ac_add_options --with-system-png
|
|
|
|
ac_add_options --with-system-zlib
|
2009-03-12 21:37:30 +08:00
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Xulrunner</application> by issuing the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2012-06-04 21:29:09 +08:00
|
|
|
<screen><userinput>make -f client.mk</userinput></screen>
|
2012-04-23 02:28:16 +08:00
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2011-01-08 05:25:26 +08:00
|
|
|
|
2012-05-16 18:43:09 +08:00
|
|
|
<screen role="root"><userinput>make -C xulrunner-build-dir install &&
|
|
|
|
mkdir -p /usr/lib/mozilla/plugins &&
|
|
|
|
rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &&
|
|
|
|
ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &&
|
2012-05-14 02:49:25 +08:00
|
|
|
|
2012-06-04 21:29:09 +08:00
|
|
|
for library in /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/*.so
|
|
|
|
do ln -sfv ${library#/usr/lib/} /usr${library#*sdk}
|
2012-04-04 21:06:59 +08:00
|
|
|
done</userinput></screen>
|
2009-03-12 21:37:30 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
<command>make -f client.mk ...</command>: Mozilla products are packaged to
|
|
|
|
allow the use of a configuration file which can be used to pass the
|
|
|
|
configuration settings to the <command>configure</command> command.
|
|
|
|
<command>make</command> uses the <filename>client.mk</filename> file to
|
|
|
|
get initial configuration and setup parameters.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>ln -sv ../mozilla/plugins ...</command>: Some packages will
|
|
|
|
install browser plugins into
|
|
|
|
<filename class="directory">/usr/lib/mozilla/plugins</filename>.
|
|
|
|
Creating this symlink <application>Xulrunner</application> keeps
|
|
|
|
additional plugins in a common directory.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2012-04-04 21:06:59 +08:00
|
|
|
<command>for library in
|
2012-04-04 23:56:08 +08:00
|
|
|
/usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/*.so; do ln -sfv
|
2012-04-04 21:06:59 +08:00
|
|
|
${library#/usr/lib/} /usr${library#*sdk}; done</command>: The libraries
|
|
|
|
shipped with this package are installed into
|
|
|
|
<filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;</filename>
|
|
|
|
which means they will not be found at runtime. These commands make
|
2012-04-04 23:56:08 +08:00
|
|
|
relative symbolic links to the shared libraries from
|
2012-04-04 21:06:59 +08:00
|
|
|
<filename class="directory">/usr/lib</filename>.
|
2012-03-14 22:46:53 +08:00
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-04-23 02:28:16 +08:00
|
|
|
<seg>xulrunner</seg>
|
2009-03-12 21:37:30 +08:00
|
|
|
<seg>Numerous libraries, browser components, plugins, extensions, and
|
|
|
|
helper modules installed in <filename
|
2011-12-21 02:55:26 +08:00
|
|
|
class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename></seg>
|
2009-03-12 21:37:30 +08:00
|
|
|
<seg>/etc/gre.d, /usr/include/xulrunner-&xulrunner-version;,
|
2011-01-08 05:25:26 +08:00
|
|
|
/usr/lib/xulrunner-&xulrunner-version;,
|
|
|
|
/usr/lib/xulrunner-devel-&xulrunner-version;, and
|
|
|
|
/usr/share/idl/xulrunner-&xulrunner-version;</seg>
|
2009-03-12 21:37:30 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="xulrunner-prog">
|
|
|
|
<term><command>xulrunner</command></term>
|
|
|
|
<listitem>
|
2012-03-14 22:46:53 +08:00
|
|
|
<para>
|
|
|
|
is a shell script, useful for identifying the version installed.
|
|
|
|
</para>
|
2009-03-12 21:37:30 +08:00
|
|
|
<indexterm zone="xulrunner xulrunner-prog">
|
|
|
|
<primary sortas="b-xulrunner">xulrunner</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|