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