1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY gnash-download-http
|
---|
8 | "http://ftp.gnu.org/pub/gnu/gnash/&gnash-version;/gnash-&gnash-version;.tar.bz2">
|
---|
9 | <!ENTITY gnash-download-ftp
|
---|
10 | "ftp://ftp.gnu.org/pub/gnu/gnash/&gnash-version;/gnash-&gnash-version;.tar.bz2">
|
---|
11 | <!ENTITY gnash-md5sum "63e9f79c41d93d48c5a2fa94856548c4">
|
---|
12 | <!ENTITY gnash-size "4.1 MB">
|
---|
13 | <!ENTITY gnash-buildsize "758 MB">
|
---|
14 | <!ENTITY gnash-time "11.1 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="gnash" xreflabel="gnash-&gnash-version;">
|
---|
18 | <?dbhtml filename="gnash.html"?>
|
---|
19 |
|
---|
20 |
|
---|
21 | <title>gnash-&gnash-version;</title>
|
---|
22 |
|
---|
23 | <indexterm zone="gnash">
|
---|
24 | <primary sortas="a-gnash">gnash</primary>
|
---|
25 | </indexterm>
|
---|
26 |
|
---|
27 | <sect2 role="package">
|
---|
28 | <title>Introduction to gnash</title>
|
---|
29 |
|
---|
30 | <para>
|
---|
31 | <application>Gnash</application> is the GNU Flash movie player and browser
|
---|
32 | plugin. This is useful for watching YouTube videos or simple flash
|
---|
33 | animations.
|
---|
34 | </para>
|
---|
35 |
|
---|
36 | &lfs76_checked;
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>
|
---|
42 | Download (HTTP): <ulink url="&gnash-download-http;"/>
|
---|
43 | </para>
|
---|
44 | </listitem>
|
---|
45 | <listitem>
|
---|
46 | <para>
|
---|
47 | Download (FTP): <ulink url="&gnash-download-ftp;"/>
|
---|
48 | </para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>
|
---|
52 | Download MD5 sum: &gnash-md5sum;
|
---|
53 | </para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>
|
---|
57 | Download size: &gnash-size;
|
---|
58 | </para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>
|
---|
62 | Estimated disk space required: &gnash-buildsize;
|
---|
63 | </para>
|
---|
64 | </listitem>
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Estimated build time: &gnash-time;
|
---|
68 | </para>
|
---|
69 | </listitem>
|
---|
70 | </itemizedlist>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
73 | <itemizedlist spacing="compact">
|
---|
74 | <listitem>
|
---|
75 | <para>
|
---|
76 | Required patch:
|
---|
77 | <ulink url="&patch-root;/gnash-&gnash-version;-CVE-2012-1175-1.patch"/>
|
---|
78 | </para>
|
---|
79 | </listitem>
|
---|
80 | </itemizedlist>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect3">gnash Dependencies</bridgehead>
|
---|
83 |
|
---|
84 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
85 | <para role="required">
|
---|
86 | <xref linkend="agg"/>,
|
---|
87 | <xref linkend="boost"/>,
|
---|
88 | <xref linkend="curl"/>,
|
---|
89 | <!-- <xref linkend="ffmpeg"/> or -->
|
---|
90 | <xref linkend="gst-ffmpeg"/>,
|
---|
91 | <xref linkend="npapi-sdk"/>, and
|
---|
92 | <xref linkend="giflib"/>
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
96 | <para role="optional">
|
---|
97 | <xref linkend="dejagnu"/>,
|
---|
98 | <xref linkend="GConf"/>,
|
---|
99 | <xref linkend="git"/>,
|
---|
100 | <xref linkend="kdelibs"/>,
|
---|
101 | <xref linkend="libogg"/>,
|
---|
102 | <xref linkend="libvorbis"/>,
|
---|
103 | <xref linkend="qt4"/>,
|
---|
104 | <xref linkend="speex"/>,
|
---|
105 | <xref linkend="wget"/>,
|
---|
106 | <ulink url="http://www.swftools.org/">SWFTools</ulink>,
|
---|
107 | <ulink url="http://swfmill.org/">Swfmill </ulink>,
|
---|
108 | <ulink url="http://www.mtasc.org/">Mtasc</ulink>,
|
---|
109 | <ulink url="http://netcat.sourceforge.net/">Netcat</ulink>,
|
---|
110 | <ulink url="http://csound.sourceforge.net/">Csound</ulink>,
|
---|
111 | <ulink url="https://launchpad.net/libgsm">LibGSM</ulink> and
|
---|
112 | <ulink url="http://sourceforge.net/projects/libdc1394/">Libdc1394</ulink>.
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <para condition="html" role="usernotes">
|
---|
116 | User Notes: <ulink url="&blfs-wiki;/gnash"/>
|
---|
117 | </para>
|
---|
118 | </sect2>
|
---|
119 |
|
---|
120 | <sect2 role="installation">
|
---|
121 | <title>Installation of gnash</title>
|
---|
122 |
|
---|
123 | <para>
|
---|
124 | Install <application>gnash</application> by running the following
|
---|
125 | commands:
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <screen><userinput>patch -Np1 -i ../gnash-&gnash-version;-CVE-2012-1175-1.patch &&
|
---|
129 | sed -i '/^LIBS/s/\(.*\)/\1 -lboost_system/' \
|
---|
130 | gui/Makefile.in utilities/Makefile.in &&
|
---|
131 | sed -e '/DGifOpen/s:Data:&, NULL:' \
|
---|
132 | -e '/DGifCloseFile/s:_gif:&, NULL:' \
|
---|
133 | -i libbase/GnashImageGif.cpp &&
|
---|
134 | sed -i '/#include <csignal>/a\#include <unistd.h>' plugin/klash4/klash_part.cpp &&
|
---|
135 |
|
---|
136 | ./configure --prefix=/usr --sysconfdir=/etc \
|
---|
137 | --with-npapi-incl=/usr/include/npapi-sdk --enable-media=gst \
|
---|
138 | --with-npapi-plugindir=/usr/lib/mozilla/plugins \
|
---|
139 | --without-gconf &&
|
---|
140 | make</userinput></screen>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | To test the results issue <command>make check</command>.
|
---|
144 | </para>
|
---|
145 |
|
---|
146 | <para>
|
---|
147 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
148 | </para>
|
---|
149 |
|
---|
150 | <screen role="root"><userinput>make install &&
|
---|
151 | make install-plugin</userinput></screen>
|
---|
152 | </sect2>
|
---|
153 |
|
---|
154 | <sect2 role="commands">
|
---|
155 | <title>Command Explanations</title>
|
---|
156 |
|
---|
157 | <para>
|
---|
158 | <command>sed -i '/^LIBS/s/\(.*\)/\1 -lboost_system/' ...</command>:
|
---|
159 | This fixes linking to the current <application>boost</application> libraries.
|
---|
160 | </para>
|
---|
161 |
|
---|
162 | <para>
|
---|
163 | <command>sed -e '/DGifOpen/s:Data:&, NULL:' ...</command>:
|
---|
164 | This sed fixes building with recent versions of
|
---|
165 | <application>Giflib</application>.
|
---|
166 | </para>
|
---|
167 |
|
---|
168 | <para>
|
---|
169 | <command>sed -i '/#include <csignal>/a\#include <unistd.h>' ...</command>:
|
---|
170 | This fixes building when <application>kdelibs</application> has been installed.
|
---|
171 | </para>
|
---|
172 |
|
---|
173 | <para>
|
---|
174 | <option>--enable-media=gst</option>: This tells it to use Gstreamer for
|
---|
175 | to play video and audio (--enable-media=ffmpeg is broken with
|
---|
176 | FFmpeg-0.11.1).
|
---|
177 | </para>
|
---|
178 |
|
---|
179 | <para>
|
---|
180 | <option>--with-npapi-incl=/usr/include/npapi-sdk</option>: This option tells
|
---|
181 | it where to find some Mozilla headers that it needs.
|
---|
182 | </para>
|
---|
183 |
|
---|
184 | <para>
|
---|
185 | <option>--with-npapi-plugindir=/usr/lib/mozilla/plugins</option>: This
|
---|
186 | option tells it to install the Mozilla browser plugin into
|
---|
187 | /usr/lib/mozilla/plugins.
|
---|
188 | </para>
|
---|
189 |
|
---|
190 | <para>
|
---|
191 | <option>--without-gconf</option>: Omit this switch if you have GConf
|
---|
192 | installed and wish gnash to use it.
|
---|
193 | </para>
|
---|
194 |
|
---|
195 | <para>
|
---|
196 | <command>make install-plugin</command>: This command installs the Mozilla
|
---|
197 | browser plugin.
|
---|
198 | </para>
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | <sect2 role="content">
|
---|
202 | <title>Contents</title>
|
---|
203 |
|
---|
204 | <segmentedlist>
|
---|
205 | <segtitle>Installed Program</segtitle>
|
---|
206 | <segtitle>Installed Libraries</segtitle>
|
---|
207 | <segtitle>Installed Directories</segtitle>
|
---|
208 |
|
---|
209 | <seglistitem>
|
---|
210 | <seg>gnash-gtk-launcher</seg>
|
---|
211 | <seg>
|
---|
212 | 2 private libraries in /usr/lib/gnash and
|
---|
213 | libgnashplugin.so.
|
---|
214 | </seg>
|
---|
215 | <seg>
|
---|
216 | /usr/lib/gnash and
|
---|
217 | /usr/share/gnash.
|
---|
218 | </seg>
|
---|
219 | </seglistitem>
|
---|
220 | </segmentedlist>
|
---|
221 |
|
---|
222 | <variablelist>
|
---|
223 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
224 | <?dbfo list-presentation="list"?>
|
---|
225 | <?dbhtml list-presentation="table"?>
|
---|
226 |
|
---|
227 | <varlistentry id="gnash-gtk-launcher">
|
---|
228 | <term><command>gnash-gtk-launcher</command></term>
|
---|
229 | <listitem>
|
---|
230 | <para>
|
---|
231 | launches Gnash.
|
---|
232 | </para>
|
---|
233 | <indexterm zone="gnash gnash-gtk-launcher">
|
---|
234 | <primary sortas="b-gnash-gtk-launcher">gnash-gtk-launcher</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | <varlistentry id="libgnashplugin">
|
---|
240 | <term><filename class="libraryfile">libgnashplugin.so</filename></term>
|
---|
241 | <listitem>
|
---|
242 | <para>
|
---|
243 | is the Mozilla browser plugin.
|
---|
244 | </para>
|
---|
245 | <indexterm zone="gnash libgnashplugin">
|
---|
246 | <primary sortas="c-libgnashplugin">libgnashplugin.so</primary>
|
---|
247 | </indexterm>
|
---|
248 | </listitem>
|
---|
249 | </varlistentry>
|
---|
250 | </variablelist>
|
---|
251 | </sect2>
|
---|
252 | </sect1>
|
---|