Changeset 2511f83 for general/graphlib


Ignore:
Timestamp:
04/12/2012 01:29:17 PM (12 years ago)
Author:
Andrew Benton <andy@…>
Branches:
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
Children:
bda3fb1
Parents:
a079e73c
Message:

Poppler tweaks
commented out some references to xpdf as it is no longer in the book.
added --enable-xpdf-headers to the default options as it is required by 3 packages in the book
added an optional patch to use lcms2

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/graphlib/poppler.xml

    ra079e73c r2511f83  
    55  %general-entities;
    66
    7   <!ENTITY poppler-download-http      "http://poppler.freedesktop.org/poppler-&poppler-version;.tar.gz">
     7  <!ENTITY poppler-download-http
     8    "http://poppler.freedesktop.org/poppler-&poppler-version;.tar.gz">
    89  <!ENTITY poppler-download-ftp       " ">
    910  <!ENTITY poppler-md5sum             "12658f3308597e57f3faff538cc73baf">
    1011  <!ENTITY poppler-size               "1.9 MB">
    11   <!ENTITY poppler-buildsize          "28 MB (excluding the encoding data) and 112 MB (including the encoding data)">
    12   <!ENTITY poppler-time               "1.3 SBU (includes building with most dependencies)">
     12  <!ENTITY poppler-buildsize          "28 MB (excluding the encoding data) and
     13    112 MB (including the encoding data)">
     14  <!ENTITY poppler-time               "1.3 SBU (includes building with most
     15    dependencies)">
    1316
    1417  <!ENTITY poppler-data-version       "0.4.5">
    15   <!ENTITY poppler-data-download-http "http://poppler.freedesktop.org/poppler-data-&poppler-data-version;.tar.gz">
     18  <!ENTITY poppler-data-download-http
     19    "http://poppler.freedesktop.org/poppler-data-&poppler-data-version;.tar.gz">
    1620  <!ENTITY poppler-data-md5sum        "448dd7c5077570e340340706cef931aa">
    1721  <!ENTITY poppler-data-size          "4.0 MB">
     
    3539    <title>Introduction to Poppler</title>
    3640
    37     <para>The <application>Poppler</application> package contains a PDF
    38     rendering library and command line tools used to manipulate PDF files.
    39     This is useful for providing PDF rendering functionality as a shared
    40     library.</para>
     41    <para>
     42      The <application>Poppler</application> package contains a PDF rendering
     43      library and command line tools used to manipulate PDF files. This is
     44      useful for providing PDF rendering functionality as a shared library.
     45    </para>
    4146
    4247    &lfs71_checked;
     
    4550    <itemizedlist spacing="compact">
    4651      <listitem>
    47         <para>Download (HTTP): <ulink url="&poppler-download-http;"/></para>
    48       </listitem>
    49       <listitem>
    50         <para>Download (FTP): <ulink url="&poppler-download-ftp;"/></para>
    51       </listitem>
    52       <listitem>
    53         <para>Download MD5 sum: &poppler-md5sum;</para>
    54       </listitem>
    55       <listitem>
    56         <para>Download size: &poppler-size;</para>
    57       </listitem>
    58       <listitem>
    59         <para>Estimated disk space required: &poppler-buildsize;</para>
    60       </listitem>
    61       <listitem>
    62         <para>Estimated build time: &poppler-time;</para>
     52        <para>
     53          Download (HTTP): <ulink url="&poppler-download-http;"/>
     54        </para>
     55      </listitem>
     56      <listitem>
     57        <para>
     58          Download (FTP): <ulink url="&poppler-download-ftp;"/>
     59        </para>
     60      </listitem>
     61      <listitem>
     62        <para>
     63          Download MD5 sum: &poppler-md5sum;
     64        </para>
     65      </listitem>
     66      <listitem>
     67        <para>
     68          Download size: &poppler-size;
     69        </para>
     70      </listitem>
     71      <listitem>
     72        <para>
     73          Estimated disk space required: &poppler-buildsize;
     74        </para>
     75      </listitem>
     76      <listitem>
     77        <para>
     78          Estimated build time: &poppler-time;
     79        </para>
    6380      </listitem>
    6481    </itemizedlist>
     
    6986      <title>Poppler Encoding Data</title>
    7087      <listitem>
    71         <para>Download (HTTP): <ulink url="&poppler-data-download-http;"/></para>
    72       </listitem>
    73       <listitem>
    74         <para>Download MD5 sum: &poppler-data-md5sum;</para>
    75       </listitem>
    76       <listitem>
    77         <para>Download size: &poppler-data-size;</para>
     88        <para>
     89          Download (HTTP): <ulink url="&poppler-data-download-http;"/>
     90        </para>
     91      </listitem>
     92      <listitem>
     93        <para>
     94          Download MD5 sum: &poppler-data-md5sum;
     95        </para>
     96      </listitem>
     97      <listitem>
     98        <para>
     99          Download size: &poppler-data-size;
     100        </para>
    78101      </listitem>
    79102    </itemizedlist>
    80103
    81     <para>The additional package consists of encoding files for use with
    82     <application>Poppler</application>. The encoding files are optional and
    83     <application>Poppler</application> will automatically read them if they are
    84     present. When installed, they enable <application>Poppler</application> to
    85     render CJK and Cyrillic properly.</para>
     104    <para>
     105      The additional package consists of encoding files for use with
     106      <application>Poppler</application>. The encoding files are optional and
     107      <application>Poppler</application> will automatically read them if they
     108      are present. When installed, they enable
     109      <application>Poppler</application> to render CJK and Cyrillic properly.
     110    </para>
     111
     112    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
     113    <itemizedlist spacing="compact">
     114      <listitem>
     115        <para>
     116          Optional patch (if you want to use <application>Lcms 2</application>):
     117          <ulink url="&patch-root;/poppler-&poppler-version;-lcms2-1.patch"/>
     118        </para>
     119      </listitem>
     120    </itemizedlist>
    86121
    87122    <bridgehead renderas="sect3">Poppler Dependencies</bridgehead>
    88123
    89124    <bridgehead renderas="sect4">Required</bridgehead>
    90     <para role="required"><xref linkend="fontconfig"/> and
    91     <xref linkend="pkgconfig"/></para>
     125    <para role="required">
     126      <xref linkend="fontconfig"/> and
     127      <xref linkend="pkgconfig"/>
     128    </para>
    92129
    93130    <bridgehead renderas="sect4">Recommended</bridgehead>
    94     <para role="recommended"><xref linkend="libjpeg"/>, <xref linkend="cairo"/>
    95      and <xref linkend="openjpeg"/>
     131    <para role="recommended">
     132      <xref linkend="libjpeg"/>,
     133      <xref linkend="cairo"/> and
     134      <xref linkend="openjpeg"/>.
    96135    </para>
    97136
    98137    <bridgehead renderas="sect4">Optional</bridgehead>
    99     <para role="optional"><xref linkend="gtk2"/>,
    100     <xref linkend="qt4"/> (the <filename>libpoppler-qt4.so</filename> library is needed
    101     for PDF support in <application>Okular</application>),
    102     <xref linkend="curl"/>,
    103     <xref linkend="libtiff"/>,
    104     <xref linkend="libxml2"/> and
    105     <xref linkend="lcms"/></para>
    106 
    107     <para condition="html" role="usernotes">User Notes:
    108     <ulink url="&blfs-wiki;/poppler"/></para>
    109 
     138    <para role="optional">
     139      <xref linkend="curl"/>,
     140      <xref linkend="gtk2"/>,
     141      <xref linkend="lcms"/> or <xref linkend="lcms2"/>,
     142      <xref linkend="libtiff"/>,
     143      <xref linkend="libxml2"/> and
     144      <xref linkend="qt4"/> (the <filename>libpoppler-qt4.so</filename> library
     145      is needed for PDF support in <application>Okular</application>).
     146    </para>
     147
     148    <para condition="html" role="usernotes">
     149      User Notes: <ulink url="&blfs-wiki;/poppler"/>
     150    </para>
    110151  </sect2>
    111152
     
    113154    <title>Installation of Poppler</title>
    114155
     156    <para>
     157      If you have installed <xref linkend="lcms2"/> and would like
     158      <application>Poppler</application> to use it, apply the
     159      <application>Lcms 2</application> patch:
     160    </para>
     161
     162<screen><userinput>patch -p1 &lt; ../poppler-&poppler-version;-lcms2-1.patch</userinput></screen>
     163
     164    <para>
     165      Install <application>Poppler</application> by running the following
     166      commands:
     167    </para>
     168
     169<!-- Xpdf is no longer in the book
    115170    <caution>
    116       <para><application>Poppler</application> will overwrite command-line
    117       utilities and man pages previously installed by the
    118       <application>Xpdf</application> package. If you prefer to keep the
    119       <application>Xpdf</application> versions of these files, pass the
    120       <option>--disable-utils</option> parameter to the
    121       <command>configure</command> command below.</para>
     171      <para>
     172        <application>Poppler</application> will overwrite command-line utilities
     173        and man pages previously installed by the
     174        <application>Xpdf</application> package. If you prefer to keep the
     175        <application>Xpdf</application> versions of these files, pass the
     176        <option>-&#45;disable-utils</option> parameter to the
     177        <command>configure</command> command below.
     178      </para>
    122179    </caution>
    123 
    124 <screen><userinput>./configure --prefix=/usr \
    125             --sysconfdir=/etc \
    126             --disable-static &amp;&amp;
     180-->
     181
     182<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc        \
     183            --disable-static --enable-xpdf-headers &amp;&amp;
    127184make</userinput></screen>
    128185
    129     <para>This package does not come with a test suite.</para>
    130 
    131     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     186    <para>
     187      This package does not come with a test suite.
     188    </para>
     189
     190    <para>
     191      Now, as the <systemitem class="username">root</systemitem> user:
     192    </para>
    132193
    133194<screen role="root"><userinput>make install &amp;&amp;
     
    135196install -v -m644 README* /usr/share/doc/poppler-&poppler-version;</userinput></screen>
    136197
    137     <para>If you downloaded the additional encoding data package, install
    138     it by issuing the following commands:</para>
     198    <para>
     199      If you downloaded the additional encoding data package, install it by
     200      issuing the following commands:
     201    </para>
    139202
    140203<screen><userinput>tar -xf ../poppler-data-&poppler-data-version;.tar.gz &amp;&amp;
    141204cd poppler-data-&poppler-data-version;</userinput></screen>
    142205
    143     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     206    <para>
     207      Now, as the <systemitem class="username">root</systemitem> user:
     208    </para>
    144209
    145210<screen role="root"><userinput>make prefix=/usr install</userinput></screen>
    146 
    147211  </sect2>
    148212
     
    150214    <title>Command Explanations</title>
    151215
    152     <!-- This is discouraged by the authors. There is built-in decompression
    153          and zlib is not needed
    154     <para><parameter>-enable-zlib</parameter>: This parameter forces the build
    155     to link with the system-installed
    156     <filename class='libraryfile'>libz</filename> library to enable compressed
    157     PDF functionality.</para> -->
    158 
    159     <para><option>--disable-static</option>: Prevent static libraries
    160     being built and installed.</para>
    161 
    162     <para><option>--disable-cairo-output</option>: This parameter
    163     disables building the <application>cairo</application> graphics backend.</para>
    164 
    165     <para><option>--disable-poppler-glib</option>,
    166     <option>--disable-poppler-qt4</option> and
    167     <option>--disable-gtk-test</option>: These parameters disable
    168     building the <application>GLib</application> and <application>Qt4</application>
    169     wrappers and the <application>GTK+</application> test program.</para>
    170 
    171     <para><option>--enable-xpdf-headers</option>: Install old
    172     <application>Xpdf</application> headers required by certain programs (e.g. by
    173     <application>Okular</application> for PDF support). These are unsupported by
    174     <application>Poppler</application>.</para>
    175 
     216    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     217      href="../../xincludes/static-libraries.xml"/>
     218
     219    <para>
     220      <option>--enable-xpdf-headers</option>: Install some old
     221      <application>Xpdf</application> headers required by certain programs (e.g.
     222      <application>Okular</application>, <application>Libre Office</application>
     223      and <application>Inkscape</application>).
     224    </para>
     225
     226    <para>
     227      <parameter>-enable-zlib</parameter>: This parameter makes
     228      <application>Poppler</application> link with the system-installed
     229      <filename class='libraryfile'>libz</filename> library to enable compressed
     230      PDF functionality.
     231    </para>
    176232  </sect2>
    177233
     
    185241
    186242      <seglistitem>
    187         <seg>pdffonts, pdfimages, pdfinfo, pdfseparate, pdftocairo, pdftohtml,
    188         pdftoppm, pdftops, pdftotext, pdfunite and poppler-glib-demo</seg>
    189         <seg>libpoppler.so, libpoppler-cpp.so, libpoppler-glib.so,
    190         and libpoppler-qt4.so</seg>
    191         <seg>/usr/include/poppler, /usr/share/doc/poppler-&poppler-version;,
    192         /usr/share/gtk-doc/html/poppler and /usr/share/poppler</seg>
     243        <seg>
     244          pdffonts, pdfimages, pdfinfo, pdfseparate, pdftocairo, pdftohtml,
     245          pdftoppm, pdftops, pdftotext, pdfunite and poppler-glib-demo
     246        </seg>
     247        <seg>
     248          libpoppler.so, libpoppler-cpp.so, libpoppler-glib.so and
     249          libpoppler-qt4.so
     250        </seg>
     251        <seg>
     252          /usr/include/poppler, /usr/share/doc/poppler-&poppler-version;,
     253          /usr/share/gtk-doc/html/poppler and /usr/share/poppler
     254        </seg>
    193255      </seglistitem>
    194256    </segmentedlist>
     
    202264        <term><command>pdffonts</command></term>
    203265        <listitem>
    204           <para>lists the fonts used in a PDF file along
    205           with various information for each font.</para>
     266          <para>
     267            lists the fonts used in a PDF file along with various information
     268            for each font.
     269          </para>
    206270          <indexterm zone="poppler pdffonts">
    207271            <primary sortas="b-pdffonts">pdffonts</primary>
     
    213277        <term><command>pdfimages</command></term>
    214278        <listitem>
    215           <para>saves images from a PDF file as PPM, PBM, or JPEG files.</para>
     279          <para>
     280            saves images from a PDF file as PPM, PBM, or JPEG files.
     281          </para>
    216282          <indexterm zone="poppler pdfimages">
    217283            <primary sortas="b-pdfimages">pdfimages</primary>
     
    223289        <term><command>pdfinfo</command></term>
    224290        <listitem>
    225           <para>prints the contents of the 'Info' dictionary (plus some
    226           other useful information) from a PDF file.</para>
     291          <para>
     292            prints the contents of the 'Info' dictionary (plus some other useful
     293            information) from a PDF file.
     294          </para>
    227295          <indexterm zone="poppler pdfinfo">
    228296            <primary sortas="b-pdfinfo">pdfinfo</primary>
     
    234302        <term><command>pdfseparate</command></term>
    235303        <listitem>
    236           <para>extracts single pages from a PDF file.</para>
     304          <para>
     305            extracts single pages from a PDF file.
     306          </para>
    237307          <indexterm zone="poppler pdfseparate">
    238308            <primary sortas="b-pdseparate">pdfseparate</primary>
     
    244314        <term><command>pdftocairo</command></term>
    245315        <listitem>
    246           <para>converts a PDF file to one of several formats (PNG, JPEG, PDF, PS,
    247           EPS, SVG) using the cairo output device of the poppler library.</para>
     316          <para>
     317            converts a PDF file to one of several formats (PNG, JPEG, PDF, PS,
     318            EPS, SVG) using the cairo output device of the poppler library.
     319          </para>
    248320          <indexterm zone="poppler pdftocairo">
    249321            <primary sortas="b-pdftocairo">pdftocairo</primary>
     
    255327        <term><command>pdftohtml</command></term>
    256328        <listitem>
    257           <para>converts a PDF file to HTML.</para>
     329          <para>
     330            converts a PDF file to HTML.
     331          </para>
    258332          <indexterm zone="poppler pdftohtml">
    259333            <primary sortas="b-pdftohtml">pdftohtml</primary>
     
    265339        <term><command>pdftoppm</command></term>
    266340        <listitem>
    267           <para>converts PDF files to PBM, PGM and PPM formats.</para>
     341          <para>
     342            converts PDF files to PBM, PGM and PPM formats.
     343          </para>
    268344          <indexterm zone="poppler pdftoppm">
    269345            <primary sortas="b-pdftoppm">pdftoppm</primary>
     
    275351        <term><command>pdftops</command></term>
    276352        <listitem>
    277           <para> converts PDF files to Postscript format.</para>
     353          <para>
     354            converts PDF files to Postscript format.
     355          </para>
    278356          <indexterm zone="poppler pdftops">
    279357            <primary sortas="b-pdftops">pdftops</primary>
     
    285363        <term><command>pdftotext</command></term>
    286364        <listitem>
    287           <para>converts PDF files to plain text.</para>
     365          <para>
     366            converts PDF files to plain text.
     367          </para>
    288368          <indexterm zone="poppler pdftotext">
    289369            <primary sortas="b-pdftotext">pdftotext</primary>
     
    295375        <term><command>pdfunite</command></term>
    296376        <listitem>
    297           <para>merges several PDF files, in the order of their occurrence on the
    298           command line, to one PDF output file.</para>
     377          <para>
     378            merges several PDF files, in the order of their occurrence on the
     379            command line, to one PDF output file.
     380          </para>
    299381          <indexterm zone="poppler pdfunite">
    300382            <primary sortas="b-pdfunite">pdfunite</primary>
     
    306388        <term><command>poppler-glib-demo</command></term>
    307389        <listitem>
    308           <para>is a tool to demonstrate the API, and for use when debugging and
    309           testing <application>poppler</application>.</para>
     390          <para>
     391            is a tool to demonstrate the API, and for use when debugging and
     392            testing <application>poppler</application>.
     393          </para>
    310394          <indexterm zone="poppler poppler-glib-demo">
    311395            <primary sortas="b-poppler-glib-demo">poppler-glib-demo</primary>
     
    317401        <term><filename class='libraryfile'>libpoppler.so</filename></term>
    318402        <listitem>
    319           <para>contains the API functions to render PDF files.</para>
     403          <para>
     404            contains the API functions to render PDF files.
     405          </para>
    320406          <indexterm zone="poppler libpoppler">
    321407            <primary sortas="c-libpoppler">libpoppler.so</primary>
     
    327413        <term><filename class='libraryfile'>libpoppler-cpp.so</filename></term>
    328414        <listitem>
    329           <para>is a C++ backend for rendering PDF files.</para>
     415          <para>
     416            is a C++ backend for rendering PDF files.
     417          </para>
    330418          <indexterm zone="poppler libpoppler-cpp">
    331419            <primary sortas="c-libpoppler-cpp">libpoppler-cpp.so</primary>
     
    337425        <term><filename class='libraryfile'>libpoppler-glib.so</filename></term>
    338426        <listitem>
    339           <para>is a wrapper library used to interface the PDF rendering
    340           functions with <application>GTK+</application>.</para>
     427          <para>
     428            is a wrapper library used to interface the PDF rendering functions
     429            with <application>GTK+</application>.
     430          </para>
    341431          <indexterm zone="poppler libpoppler-glib">
    342432            <primary sortas="c-libpoppler-glib">libpoppler-glib.so</primary>
     
    348438        <term><filename class='libraryfile'>libpoppler-qt4.so</filename></term>
    349439        <listitem>
    350           <para>is a wrapper library used to interface the PDF rendering
    351           functions with <application>Qt</application>-4.</para>
     440          <para>
     441            is a wrapper library used to interface the PDF rendering functions
     442            with <application>Qt</application>-4.
     443          </para>
    352444          <indexterm zone="poppler libpoppler-qt4">
    353445            <primary sortas="c-libpoppler-qt4">libpoppler-qt4.so</primary>
     
    355447        </listitem>
    356448      </varlistentry>
    357 
    358449    </variablelist>
    359 
    360450  </sect2>
    361 
    362451</sect1>
Note: See TracChangeset for help on using the changeset viewer.