[blfs-book] r9384 - trunk/BOOK/multimedia/libdriv

andy at linuxfromscratch.org andy at linuxfromscratch.org
Sun Feb 12 08:58:31 PST 2012


Author: andy
Date: 2012-02-12 09:58:20 -0700 (Sun, 12 Feb 2012)
New Revision: 9384

Modified:
   trunk/BOOK/multimedia/libdriv/liba52.xml
Log:
added -fPIC to a52dec's CFLAGS

Modified: trunk/BOOK/multimedia/libdriv/liba52.xml
===================================================================
--- trunk/BOOK/multimedia/libdriv/liba52.xml	2012-02-12 05:06:59 UTC (rev 9383)
+++ trunk/BOOK/multimedia/libdriv/liba52.xml	2012-02-12 16:58:20 UTC (rev 9384)
@@ -4,7 +4,8 @@
   <!ENTITY % general-entities SYSTEM "../../general.ent">
   %general-entities;
 
-  <!ENTITY liba52-download-http "http://liba52.sourceforge.net/files/a52dec-&liba52-version;.tar.gz">
+  <!ENTITY liba52-download-http
+  "http://liba52.sourceforge.net/files/a52dec-&liba52-version;.tar.gz">
   <!ENTITY liba52-download-ftp  " ">
   <!ENTITY liba52-md5sum        "caa9f5bc44232dc8aeea773fea56be80">
   <!ENTITY liba52-size          "236 KB">
@@ -33,7 +34,7 @@
     ATSC A/52 (also known as AC-3) streams. The A/52 standard is used
     in a variety of applications, including digital television and DVD.</para>
 
-    &lfs65_checked;
+    &lfs70_checked;
 
     <bridgehead renderas="sect3">Package Information</bridgehead>
     <itemizedlist spacing="compact">
@@ -57,9 +58,12 @@
       </listitem>
     </itemizedlist>
 
+    <bridgehead renderas="sect4">Optional</bridgehead>
+    <para role="optional"><ulink
+    url="http://cr.yp.to/djbfft.html">djbfft</ulink></para>
+
     <para condition="html" role="usernotes">User Notes:
     <ulink url="&blfs-wiki;/liba52"/></para>
-
   </sect2>
 
   <sect2 role="installation">
@@ -68,17 +72,35 @@
     <para>Install <application>liba52</application> by running the
     following commands:</para>
 
-<screen><userinput>./configure --prefix=/usr --enable-shared &&
+<screen><userinput>./configure --prefix=/usr --enable-shared --disable-static \
+  CFLAGS="-g -O2 $([ $(arch) = x86_64 ] && echo -fPIC)" &&
 make</userinput></screen>
 
     <para>To test the results, issue: <command>make check</command>.</para>
 
-    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
+    <para>Now, as the <systemitem class="username">root</systemitem>
+    user:</para>
 
 <screen role="root"><userinput>make install &&
+cp liba52/a52_internal.h /usr/include/a52dec &&
 install -v -m644 -D doc/liba52.txt \
     /usr/share/doc/liba52-&liba52-version;/liba52.txt</userinput></screen>
+  </sect2>
 
+  <sect2 role="commands">
+    <title>Command Explanations</title>
+
+    <para><parameter>CFLAGS="-g -O2 ...</parameter>: This sets CFLAGS to -g -O2
+    (which is the default) but then on x86_64 adds -fPIC. This is needed to
+    compile <application>liba52</application> on x86_64.</para>
+
+    <para><option>--disable-static</option>: This option stops it installing
+    the static version of the library.</para>
+
+    <para><command>cp liba52/a52_internal.h ...</command>: Copying this header
+    file into /usr/include/a52dec allows some other programs (such as
+    <application>xine-lib</application>) to compile and link against a system
+    installed <application>liba52</application>.</para>
   </sect2>
 
   <sect2 role="content">
@@ -91,8 +113,9 @@
 
       <seglistitem>
         <seg>a52dec and extract_a52</seg>
-        <seg>liba52.{so,a}</seg>
-        <seg>/usr/include/a52dec and /usr/share/doc/liba52-&liba52-version;</seg>
+        <seg>liba52.so</seg>
+        <seg>/usr/include/a52dec and
+        /usr/share/doc/liba52-&liba52-version;</seg>
       </seglistitem>
     </segmentedlist>
 
@@ -122,18 +145,15 @@
       </varlistentry>
 
       <varlistentry id="liba52-lib">
-        <term><filename class='libraryfile'>liba52.{so,a}</filename></term>
+        <term><filename class='libraryfile'>liba52.so</filename></term>
         <listitem>
           <para>provides functions for the programs dealing with
           ATSC A/52 streams.</para>
           <indexterm zone="liba52 liba52-lib">
-            <primary sortas="c-liba52">liba52.{so,a}</primary>
+            <primary sortas="c-liba52">liba52.so</primary>
           </indexterm>
         </listitem>
       </varlistentry>
-
     </variablelist>
-
   </sect2>
-
 </sect1>




More information about the blfs-book mailing list