source: xsoft/graphweb/firefox.xml@ 07f0d321

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 07f0d321 was 5eda319, checked in by Andrew Benton <andy@…>, 12 years ago

libpng-1.5.7

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9174 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.0 KB
RevLine 
[f939f05]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[f939f05]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[65bc0795]7 <!ENTITY firefox-download-http "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
8 <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
[b5f6f3a]9 <!ENTITY firefox-md5sum "7cf2bd379792a9b232267c6a79680566">
[f246e3b9]10 <!ENTITY firefox-size "70.8 MB">
[eb148eb]11 <!ENTITY firefox-buildsize "3 GB (33 MB installed)">
12 <!ENTITY firefox-time "24 SBU (or 0.3 SBU if you&apos;re building against
[01ce75f8]13 an installed Xulrunner)">
[f939f05]14]>
15
[ffe47ca2]16<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
[b81991e1]17 <?dbhtml filename="firefox.html" ?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Firefox-&firefox-version;</title>
25
26 <indexterm zone="firefox">
27 <primary sortas="a-Firefox">Firefox</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Firefox</title>
32
33 <para><application>Firefox</application> is a stand-alone browser
34 based on the <application>Mozilla</application> codebase.</para>
35
[41f2e90]36 &lfs70_checked;
[76ae9a2]37
[b81991e1]38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &firefox-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &firefox-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &firefox-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &firefox-time;</para>
57 </listitem>
58 </itemizedlist>
59
[5c79a939]60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing="compact">
62 <listitem>
63 <para>Required patch: <ulink
64 url="&patch-root;/firefox-&firefox-version;-libpng-1.5-1.patch"/></para>
65 </listitem>
66 </itemizedlist>
67
[b81991e1]68 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
[1555d3d]71 <para role="required"><xref linkend="alsa-lib"/>, <xref linkend="gtk2"/>,
[127b62c]72 <xref linkend="zip"/> and <xref linkend="unzip"/>.</para>
[b81991e1]73
[41f2e90]74 <para>Note: <application>libjpeg</application> and
75 <application>libpng</application> (patched for apng support) should have
76 been installed before <application>gdk-pixbuf</application> and should
[eb148eb]77 exist on your system. If for some strange reason you haven&apos;t installed
[41f2e90]78 them, you should remove the <option>--with-system-jpeg</option> and
79 <option>--with-system-png</option> options from the
[dc8a9549]80 <filename>mozconfig</filename> file created below.</para>
[5a13c45]81
[1555d3d]82 <bridgehead renderas="sect4">Recommended</bridgehead>
[1c6fdeb]83 <para role="recommended"><xref linkend="yasm"/> or
[88cec02]84 <xref linkend="libvpx"/> (to allow <application>Firefox</application> to
85 play webm videos).</para>
[1555d3d]86
[b81991e1]87 <bridgehead renderas="sect4">Optional</bridgehead>
[aed37975]88 <para role="optional"><xref linkend="dbus-glib"/>,
[41f2e90]89 <xref linkend="startup-notification"/>, <xref linkend="sqlite"/>,
[dc8a9549]90 <ulink url="http://sourceforge.net/projects/hunspell/">Hunspell</ulink>,
[e144d87]91 <xref linkend="doxygen"/>, <xref linkend="gnome-vfs"/> and
92 <xref linkend="libgnomeui"/> (for gnome integration),
93 <xref linkend="libnotify"/>, <xref linkend="nspr"/>, <xref linkend="nss"/>,
94 <xref linkend="xulrunner"/> (linking against an installed xulrunner makes
95 Firefox about 32 MB smaller, which is trivial compared to the size of
[02d3b95]96 xulrunner), <xref linkend="wireless_tools"/>,
[41f2e90]97 <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
98 the jemalloc code) and <xref linkend="wget"/></para>
[b81991e1]99
[38e4f06]100 <para condition="html" role="usernotes">User Notes:
101 <ulink url="&blfs-wiki;/firefox"/></para>
102
[b81991e1]103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of Firefox</title>
107
[5a13c45]108 <para>The configuration of <application>Firefox</application> is
[dc8a9549]109 accomplished by creating a <filename>mozconfig</filename> file containing
110 the desired configuration options. A default <filename>mozconfig</filename>
[5a13c45]111 is created below. To see the entire list of available configuration options
112 (and an abbreviated description of each one), issue
[89c9c781]113 <command>./configure --help</command>. You may also wish to review the
114 entire file and uncomment any other desired options. Create the file by
115 issuing the following command:</para>
[5a13c45]116
[71d28c87]117<screen><?dbfo keep-together="auto"?><userinput>patch -p1 &lt; ../firefox-&firefox-version;-libpng-1.5-1.patch &amp;&amp;
[5c79a939]118cat &gt; mozconfig &lt;&lt; "EOF"
[89c9c781]119# If you have a multicore machine you can speed up the build by running
[41f2e90]120# several jobs at once, but if you have a single core, delete this line:
121mk_add_options MOZ_MAKE_FLAGS="-j4"
[aed37975]122
[1555d3d]123# If you have installed Yasm delete this option:
124ac_add_options --disable-webm
125
[e144d87]126# If you have installed DBus-Glib delete this option:
[74eaf91]127ac_add_options --disable-dbus
[aed37975]128
[e144d87]129# If you have installed wireless-tools delete this option:
[6d1bf0e]130ac_add_options --disable-necko-wifi
131
[e144d87]132# If you have installed libnotify delete this option:
133ac_add_options --disable-libnotify
134
[89c9c781]135# If you have installed xulrunner uncomment these two lines:
136# ac_add_options --with-system-libxul
137# ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-&xulrunner-version;
138
[5eda319]139# Uncomment these if you have installed them:
[eb148eb]140# ac_add_options --with-system-nspr
141# ac_add_options --with-system-nss
[41f2e90]142# ac_add_options --enable-system-sqlite
143# ac_add_options --with-system-libvpx
144# ac_add_options --enable-startup-notification
[dc8a9549]145
[41f2e90]146mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
[c84d97ad]147ac_add_options --enable-official-branding
[a818e3c]148ac_add_options --prefix=/usr
[c84d97ad]149
[eb148eb]150# The rest of these options have no effect if you&apos;re
[c84d97ad]151# building against an already installed xulrunner:
[41f2e90]152ac_add_options --enable-pthreads
153ac_add_options --enable-system-ffi
154ac_add_options --enable-system-jpeg
155ac_add_options --enable-system-png
156ac_add_options --enable-system-cairo
157ac_add_options --enable-system-zlib
158ac_add_options --enable-shared
159ac_add_options --disable-static
160ac_add_options --disable-debug
161ac_add_options --disable-crashreporter
[5a13c45]162ac_add_options --disable-installer
[aed37975]163ac_add_options --disable-updater
[89c9c781]164ac_add_options --disable-tests
[41f2e90]165EOF</userinput></screen>
[aed37975]166
[5a13c45]167 <para>Compile <application>Firefox</application> by issuing the
[27706cc]168 following commands:</para>
[5a13c45]169
[280dff9]170<screen><userinput>sed -i 's# ""##' browser/base/Makefile.in &amp;&amp;
[f0545c8]171make -f client.mk</userinput></screen>
[bccbdaea]172
[01ce75f8]173 <para>If you have <emphasis>not</emphasis> linked
174 <application>Firefox</application> against an installed
175 <application>Xulrunner</application>:</para>
176
177<screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
178
[b81991e1]179 <para>This package does not come with a test suite.</para>
[4a8e9f7]180
[01ce75f8]181 <para>Now, if you have <emphasis>not</emphasis> linked
182 <application>Firefox</application> against an installed
183 <application>Xulrunner</application>, as the
184 <systemitem class="username">root</systemitem> user, install the
185 package:</para>
[5a13c45]186
[1f23aa4f]187<screen role="root"><userinput>mkdir /usr/lib/firefox-&firefox-version; &amp;&amp;
[5c79a939]188tar -xvf firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &amp;&amp;
[1f23aa4f]189ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin/firefox &amp;&amp;
[41f2e90]190mkdir -p /usr/lib/mozilla/plugins &amp;&amp;
[1f23aa4f]191ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &amp;&amp;
192chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
[01ce75f8]193
[eb148eb]194 <para>If you <emphasis>have</emphasis> linked against an already installed
195 <application>Xulrunner</application>, as the
[01ce75f8]196 <systemitem class="username">root</systemitem> user:</para>
197
198<screen role="root"><userinput>make -C firefox-build-dir install &amp;&amp;
199rm /usr/bin/firefox &amp;&amp;
200cat &gt; /usr/bin/firefox &lt;&lt; "EOF" &amp;&amp;
201#!/bin/bash
202/usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}"
203EOF
204chmod 755 /usr/bin/firefox &amp;&amp;
205mkdir -p /usr/lib/mozilla/plugins &amp;&amp;
206ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &amp;&amp;
207chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
[2082307d]208
[b81991e1]209 </sect2>
210
[361df3e]211 <sect2 role="commands">
212 <title>Command Explanations</title>
213
[280dff9]214 <para><command>sed -i 's# ""##' browser/base/Makefile.in</command>: This
[f0545c8]215 removes an unprintable control character from the title bar.</para>
216
[d33eabc]217 <para><command>make -f client.mk ...</command>: Mozilla products are
218 packaged to allow the use of a configuration file which can be used to
219 pass the configuration settings to the <command>configure</command>
220 command. <command>make</command> uses the <filename>client.mk</filename>
[41f2e90]221 file to get initial configuration and setup parameters.</para>
[361df3e]222
[89c9c781]223 <para><command>make -C firefox-build-dir/browser/installer</command>:
224 this creates a <application>Firefox</application> tarball.</para>
225
226 <para><command>tar -xfv firefox-build-dir/dist ...</command>: This untars
[1f23aa4f]227 <application>Firefox</application> in /usr/lib. The
228 <option>--strip-components=1</option> option removes the leading
229 &apos;firefox&apos; directory from the filenames, allowing us to untar it
230 into a versioned directory. Untaring it (instead of running make install)
231 prevents it installing /usr/lib/firefox-devel-&firefox-version; which
[eb148eb]232 contains about 430 MB of files. If you need any of those files,
233 they&apos;re in <xref linkend="xulrunner"/></para>
[01ce75f8]234
235 <para><command>make -C firefox-build-dir install</command>: This runs
236 <command>make install</command> in firefox-build-dir.</para>
[89c9c781]237
238 <para><command>ln -sfv ... /usr/bin/firefox</command>: this puts a symbolic
239 link to the <command>firefox</command> executable in your ${PATH}.</para>
[41f2e90]240
241 <para><command>mkdir -p /usr/lib/mozilla/plugins</command>: this checks
242 that /usr/lib/mozilla/plugins exists (if you installed
243 <xref linkend="librsvg"/>, it was probably already there).</para>
[361df3e]244
[41f2e90]245 <para><command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>:
246 this makes a symbolic link to /usr/lib/mozilla/plugins.</para>
[a7d71e2]247
[b81991e1]248 </sect2>
249
[88cec02]250 <sect2 role="configuration">
251 <title>Configuring Firefox</title>
252
253 <para>If you deleted the <option>--disable-webm</option> option from your
254 <filename>mozconfig</filename>, your <application>Firefox</application>
255 can play most YouTube videos without the need for the flash plugin. To
256 enable this, go to <ulink
257 url="http://www.youtube.com/html5">http://www.youtube.com/html5</ulink>
258 and click on &apos;Join the HTML5 Trial&apos; (needs cookies
259 enabled).</para>
260
261 </sect2>
262
[b81991e1]263 <sect2 role="content">
264 <title>Contents</title>
265
266 <segmentedlist>
267 <segtitle>Installed Programs</segtitle>
268 <segtitle>Installed Libraries</segtitle>
269 <segtitle>Installed Directories</segtitle>
270
271 <seglistitem>
[dc8a9549]272 <seg>firefox</seg>
[b81991e1]273 <seg>Numerous libraries, browser components, plugins, extensions, and
274 helper modules installed in <filename
[eb148eb]275 class="directory">/usr/lib/firefox-&firefox-version;</filename>.</seg>
[1f23aa4f]276 <seg>/usr/lib/firefox-&firefox-version;</seg>
[b81991e1]277 </seglistitem>
278 </segmentedlist>
279
280 <variablelist>
281 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
282 <?dbfo list-presentation="list"?>
283 <?dbhtml list-presentation="table"?>
284
285 <varlistentry id="firefox-prog">
286 <term><command>firefox</command></term>
287 <listitem>
[41f2e90]288 <para>is a gtk2 internet browser that uses the gecko rendering
289 engine.</para>
[b81991e1]290 <indexterm zone="firefox firefox-prog">
291 <primary sortas="b-firefox">firefox</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 </variablelist>
297
298 </sect2>
[4d37129]299
300</sect1>
Note: See TracBrowser for help on using the repository browser.