Ignore:
Timestamp:
02/10/2012 03:10:52 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:
ef14dbc
Parents:
2dbb7a74
Message:

ghostscript-9.05

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pst/printing/gs.xml

    r2dbb7a74 r6b58d592  
    55  %general-entities;
    66
    7   <!-- <!ENTITY gs-download-http "&sourceforge-repo;/ghostscript/ghostscript-&gs-version;.tar.bz2"> -->
    8   <!-- FIXME use .bz2 or .xz when updating, if they are available -->
    9   <!ENTITY gs-download-http "http://downloads.ghostscript.com/public/ghostscript-&gs-version;.tar.bz2">
    10   <!-- no response 2010-12-18
    11   <!ENTITY gs-download-ftp  "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs900/ghostscript-&gs-version;.tar.gz"> -->
     7  <!ENTITY gs-download-http
     8  "http://downloads.ghostscript.com/public/ghostscript-&gs-version;.tar.bz2">
    129  <!ENTITY gs-download-ftp  " ">
    13   <!ENTITY gs-md5sum        "9f6899e821ab6d78ab2c856f10fa3023">
    14   <!ENTITY gs-size          "28.5 MB">
    15   <!ENTITY gs-buildsize     "297 MB (includes installing libgs.so and both font tarballs)">
     10  <!ENTITY gs-md5sum        "8bcef1f33ddf8a4d12b2cf8da385c191">
     11  <!ENTITY gs-size          "27 MB">
     12  <!ENTITY gs-buildsize     "252 MB (includes installing libgs.so and both font tarballs)">
    1613  <!ENTITY gs-time          "2.5 SBU (includes building and installing libgs.so)">
    1714
    18   <!-- <!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz"> -->
    1915  <!ENTITY gs-standard-fonts-download "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
    2016  <!ENTITY gs-standard-fonts-md5sum   "6865682b095f8c4500c54b285ff05ef6">
     
    7369    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    7470
    75     <itemizedlist spacing='compact'>
     71    <itemizedlist spacing="compact">
    7672      <title>Standard Fonts</title>
    7773      <listitem>
     
    8682    </itemizedlist>
    8783
    88     <itemizedlist spacing='compact'>
     84    <itemizedlist spacing="compact">
    8985      <title>Other Fonts</title>
    9086      <listitem>
     
    104100    <para role="optional"><xref linkend="expat"/>,
    105101    <xref linkend="freetype2"/>,
    106     <xref linkend="jasper"/>
    107102    <xref linkend="libjpeg"/>,
    108103    <xref linkend="libpng"/>,
    109104    <xref linkend="libtiff"/>, and
    110     <xref linkend="lcms"/></para>
     105    <xref linkend="lcms2"/>.</para>
    111106
    112107    <bridgehead renderas="sect4">Optional</bridgehead>
    113     <para role="optional">
    114     <xref linkend="cairo"/>,
     108    <para role="optional"><xref linkend="cairo"/>,
    115109    <xref linkend="fontconfig"/>,
    116110    <xref linkend="gtk2"/>,
    117111    <xref linkend="cups"/>,
     112    <xref linkend="jasper"/>,
     113    <xref linkend="lcms"/>,
    118114    <xref linkend="libidn"/>,
    119     <xref linkend="x-window-system"/>, and
    120     <!-- the link for ijs source ultimately takes users back to the ghostscript site
    121     <ulink url="http://www.linuxprinting.org/ijs/">IJS</ulink>, and -->
    122     <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>.</para>
     115    <xref linkend="x-window-system"/>, and <ulink
     116    url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>.</para>
    123117
    124118    <para condition="html" role="usernotes">User Notes:
     
    149143      <para>If you have installed these dependencies on your system, remove the
    150144      copies of <application>expat</application>,
    151       <application>freetype</application>, <application>JasPer</application>,
    152       <application>lcms</application>, <application>libjpeg</application>,
    153       <application>libpng</application>, <application>libtiff</application>
    154       and <application>zlib</application>:
     145      <application>freetype</application>, <application>lcms2</application>,
     146      <application>libjpeg</application>, <application>libpng</application>,
     147      and <application>libtiff</application>:
    155148      </para>
    156149
    157 <screen><userinput>rm -rf expat freetype jasper lcms jpeg libpng tiff zlib</userinput></screen>
    158 
    159     <para>Run the configure command:</para>
    160 
    161 <screen><userinput>./configure --prefix=/usr --enable-dynamic --with-system-libtiff</userinput></screen>
    162 
    163     <para>To ensure the build is able to use the system versions of
    164     <application>expat</application>, <application>freetype</application>, and
    165     <application>zlib</application> it is necessary to make some changes and an
    166     addition to the <literal>Makefile</literal> before building the package:</para>
    167 
    168 <screen><userinput>sed -i '/^EXTRALIBS/s# -ldl# -lfreetype -lz#;/=imdi/aSHARE_EXPAT=1' Makefile &amp;&amp;
     150<screen><userinput>rm -rf expat freetype jpeg lcms2 libpng tiff</userinput></screen>
     151
     152    <note>
     153      <para>If you have a multicore computer and try to run make with multiple
     154      jobs (eg, make -j4) then the build may fail due to race conditions in the
     155      <application>Ghostscript</application> build system.</para>
     156    </note>
     157
     158    <para>Compile <application>Ghostscript</application>:</para>
     159
     160<screen><userinput>rm -rf jasper lcms zlib &amp;&amp;
     161./configure --prefix=/usr --enable-dynamic --with-system-libtiff &amp;&amp;
     162sed -i '/^EXTRALIBS/s# -ldl# -lz#' Makefile &amp;&amp;
    169163make</userinput></screen>
    170 
    171     <warning>
    172       <para>If you have a multiprocessor computer and try to run make with
    173       multiple jobs (eg, -j4) then the build may fail due to race conditions in
    174       the <application>Ghostscript</application> build system.</para>
    175     </warning>
    176164
    177165    <note>
     
    181169
    182170    <para>To compile the shared library
    183     <filename class='libraryfile'>libgs.so</filename>, run the
     171    <filename class="libraryfile">libgs.so</filename>, run the
    184172    following additional command as an unprivileged user:</para>
    185173
     
    190178    issuing the following command (issue from an X Windows terminal):</para>
    191179
    192     <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
     180<screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
    193181
    194182    <para>Now, as the <systemitem class="username">root</systemitem>
     
    205193    <para>Now install the documentation:</para>
    206194
    207 <screen role="root"><userinput>cp -rf doc /usr/share/ghostscript/&gs-version; &amp;&amp;
    208 ln -sv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
     195<screen role="root"><userinput>ln -sfv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
    209196
    210197    <para>To finish the installation, unpack all fonts you've downloaded to
     
    217204
    218205<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
    219 
    220206  </sect2>
    221207
     
    223209    <title>Command Explanations</title>
    224210
    225     <!-- works fine on 32 bit systems for me - Andrew Benton
    226     <para><command>with-drivers=ALL,x11</command>: This parameter adds the
    227     <literal>x11</literal> output device to the default (<literal>ALL</literal>)
    228     selection so that the test to render the tiger will work on 32-bit systems
    229     (this does no harm on the <literal>x86_64</literal> architecture, although
    230     it is not required there).</para> -->
    231 
    232     <!-- The build fails for me with this option with ghostscript-9.04 and
    233     zlib-1.2.5 - Andrew Benton
    234     <para><command>disable-compile-inits</command>: This parameter is intended
    235     to avoid compiling initialization files into the executables.  It is used
    236     here to simplify building against the system version of
    237     <application>zlib</application>.</para> -->
    238 
    239     <para><option>--without-jasper</option>: If you know you do not wish to
    240     print any <literal>JPEG2000</literal> files, this switch (and removing the
    241     <filename class="directory">jasper</filename> folder in the source) will
    242     disable JPEG2000 support in <application>Ghostscript</application>.</para>
     211    <para><command>rm -rf jasper lcms zlib</command>: The
     212    <application>Ghostscript</application> build system defaults to using its
     213    own version of <ulink url="http://www.openjpeg.org/">OpenJpeg</ulink> for
     214    JPEG 2000 files <!-- I can't get it to compile using a system installed
     215    version of openjpeg. I'll come back to this, it seems the ghostscript
     216    version is quite old --> so we can all remove the jasper source. The
     217    default color management system is now <application>lcms2</application> so
     218    the <application>lcms</application> source is not needed.
     219    <application>Zlib</application> was installed as part of LFS.</para>
     220
     221    <para><option>--with-system-libtiff</option>: Remove this option if you've
     222    not installed <xref linkend="libtiff"/>.</para>
     223
     224    <para><command>sed -i '/^EXTRALIBS/s# -ldl# -lz#' Makefile</command>:
     225    This sed is needed to get it to link against the system installed
     226    <application>zlib</application>.</para>
    243227
    244228    <para><option>--without-jbig2dec</option>: The <literal>JBIG2</literal>
     
    252236    to the shared library. These commands install the headers.</para>
    253237
    254     <para><command>ln -sv ../ghostscript-&gs-version;/doc ...</command>:
     238    <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
     239    expect to find the interface headers in an alternate location.</para>
     240
     241    <para><command>ln -sfv ../ghostscript-&gs-version;/doc ...</command>:
    255242    This puts a symbolic link to the documentation where it is expected to be
    256243    found.</para>
    257 
    258     <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
    259     expect to find the interface headers in an alternate location.</para>
    260244
    261245  </sect2>
     
    275259        ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
    276260        wftopfa</seg>
    277         <seg>libgs.so </seg>
     261        <seg>libgs.so</seg>
    278262        <seg>/usr/include/ghostscript, /usr/lib/ghostscript,
    279         /usr/share/ghostscript,
    280         and /usr/share/doc/ghostscript-&gs-version;</seg>
     263        /usr/share/ghostscript, and
     264        /usr/share/doc/ghostscript-&gs-version;</seg>
    281265      </seglistitem>
    282266    </segmentedlist>
Note: See TracChangeset for help on using the changeset viewer.