2005-05-16 18:37:46 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-14 11:45:00 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2004-11-14 11:59:48 +08:00
|
|
|
|
2007-01-29 03:22:28 +08:00
|
|
|
<!ENTITY espgs-download-http "http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/ghostscript/&espgs-version;/espgs-&espgs-version;-source.tar.bz2">
|
2007-07-26 08:31:00 +08:00
|
|
|
<!ENTITY espgs-download-ftp "ftp://ftp.easysw.com/pub/ghostscript/&espgs-version;/espgs-&espgs-version;-source.tar.bz2">
|
2007-04-19 10:03:08 +08:00
|
|
|
<!ENTITY espgs-md5sum "e74e0463e0bfb1cea3db245d8e71828c">
|
|
|
|
<!ENTITY espgs-size "8.7 MB">
|
|
|
|
<!ENTITY espgs-buildsize "108 MB (includes installing libgs.so and both font tarballs)">
|
2006-05-05 11:13:12 +08:00
|
|
|
<!ENTITY espgs-time "2.3 SBU (includes building and installing libgs.so)">
|
2005-02-15 23:01:36 +08:00
|
|
|
|
2008-08-12 00:25:22 +08:00
|
|
|
<!ENTITY espgs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz">
|
2005-02-15 23:01:36 +08:00
|
|
|
<!ENTITY espgs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
|
|
|
|
<!ENTITY espgs-standard-fonts-size "3.7 MB">
|
|
|
|
|
2005-12-19 03:17:23 +08:00
|
|
|
<!ENTITY espgs-other-fonts-download "http://ftp.gnu.org/pub/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz">
|
|
|
|
<!ENTITY espgs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
|
|
|
|
<!ENTITY espgs-other-fonts-size "796 KB">
|
2004-06-14 11:45:00 +08:00
|
|
|
]>
|
|
|
|
|
2003-09-25 04:01:14 +08:00
|
|
|
<sect1 id="espgs" xreflabel="ESP Ghostscript-&espgs-version;">
|
2005-05-16 18:24:08 +08:00
|
|
|
<?dbhtml filename="espgs.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>ESP Ghostscript-&espgs-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="espgs">
|
|
|
|
<primary sortas="a-ESP-Ghostscript">ESP Ghostscript</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to ESP Ghostscript</title>
|
|
|
|
|
|
|
|
<para><application>ESP Ghostscript</application> is a versatile processor
|
|
|
|
for PostScript data with the ability to render PostScript to different
|
|
|
|
targets. <application>ESP Ghostscript</application> is a customized
|
|
|
|
version of GNU Ghostscript that includes an enhanced configuration script,
|
|
|
|
the <application>CUPS</application> raster driver to support
|
|
|
|
<application>CUPS</application> raster printer drivers, and additional
|
|
|
|
patches and drivers from various Linux distributors.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&espgs-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&espgs-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &espgs-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &espgs-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &espgs-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &espgs-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
|
2008-03-25 12:28:09 +08:00
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<title>Required Patch</title>
|
|
|
|
<listitem>
|
2008-03-25 17:09:12 +08:00
|
|
|
<para><ulink url="&patch-root;/espgs-&espgs-version;-bov_fix-1.patch"/></para>
|
2008-03-25 12:28:09 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-16 18:24:08 +08:00
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<title>Standard Fonts</title>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&espgs-standard-fonts-download;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &espgs-standard-fonts-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &espgs-standard-fonts-size;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<title>Other Fonts</title>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&espgs-other-fonts-download;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &espgs-other-fonts-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &espgs-other-fonts-size;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">ESP Ghostscript Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-08 03:52:35 +08:00
|
|
|
<para role="optional"><xref linkend="cups"/>,
|
2005-05-16 18:24:08 +08:00
|
|
|
<xref linkend="libjpeg"/>,
|
|
|
|
<xref linkend="libpng"/>,
|
2007-04-19 10:03:08 +08:00
|
|
|
<xref linkend="x-window-system"/>, and
|
|
|
|
<xref linkend="gtk2"/> or <xref linkend="GTK"/></para>
|
2005-05-16 18:24:08 +08:00
|
|
|
|
2006-04-11 02:38:41 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/espgs"/></para>
|
|
|
|
|
2005-05-16 18:24:08 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of ESP Ghostscript</title>
|
|
|
|
|
|
|
|
<para>Install <application>ESP Ghostscript</application>
|
|
|
|
by running the following commands:</para>
|
|
|
|
|
2008-03-25 22:44:57 +08:00
|
|
|
<screen><userinput>patch -Np1 -i ../espgs-&espgs-version;-bov_fix-1.patch &&
|
|
|
|
sed -i "s/bbox.dev$/x11.dev/" Makefile.in &&
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-threads \
|
|
|
|
--without-omni &&
|
2005-05-16 18:24:08 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2007-04-19 10:03:08 +08:00
|
|
|
<para>To build the shared
|
|
|
|
<filename class='libraryfile'>libgs.so</filename> library you must have
|
|
|
|
<application>GTK+</application> installed and issue the following
|
|
|
|
command:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make so</userinput></screen>
|
|
|
|
|
2005-08-16 14:16:05 +08:00
|
|
|
<para>This package does not come with a test suite. However, you may test
|
|
|
|
the operation of the newly built <command>gs</command> program by issuing
|
|
|
|
the following command (issue from an X Windows terminal):</para>
|
|
|
|
|
2005-12-19 03:17:23 +08:00
|
|
|
<screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
|
2005-08-16 14:16:05 +08:00
|
|
|
|
2005-05-16 18:24:08 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2005-12-19 03:17:23 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2006-05-05 11:13:12 +08:00
|
|
|
install -d /usr/share/doc/espgs-&espgs-version;
|
|
|
|
ln -v -s ../../ghostscript/8.15/doc /usr/share/doc/espgs-&espgs-version; &&
|
2005-12-19 03:17:23 +08:00
|
|
|
for INSTFILE in `ls doc`
|
|
|
|
do
|
|
|
|
if [ ! -f /usr/share/doc/espgs-&espgs-version;/$INSTFILE ]; then
|
|
|
|
install -v -m644 doc/$INSTFILE /usr/share/doc/espgs-&espgs-version;/
|
|
|
|
fi
|
|
|
|
done</userinput></screen>
|
2005-05-16 18:24:08 +08:00
|
|
|
|
2007-04-19 10:03:08 +08:00
|
|
|
<para>If you built the shared library, install it and the associated
|
|
|
|
programs by issuing the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
2005-05-16 18:24:08 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make soinstall &&
|
2005-04-11 00:08:54 +08:00
|
|
|
install -v -d -m755 /usr/include/ps &&
|
2005-09-18 05:12:28 +08:00
|
|
|
install -v -m644 src/*.h /usr/include/ps &&
|
|
|
|
ln -v -s ps /usr/include/ghostscript</userinput></screen>
|
2005-05-16 18:24:08 +08:00
|
|
|
|
|
|
|
<para>To finish the installation, unpack all fonts you've downloaded to
|
|
|
|
<filename class="directory">/usr/share/ghostscript</filename> and ensure
|
2005-12-19 03:17:23 +08:00
|
|
|
the ownerships of the files are
|
|
|
|
<systemitem class="username">root</systemitem>:<systemitem class="groupname">root</systemitem>.
|
2006-04-11 02:38:41 +08:00
|
|
|
Substitute <replaceable><font-tarball></replaceable> appropriately in
|
2005-05-16 18:24:08 +08:00
|
|
|
the command below for the fonts you wish to install:</para>
|
|
|
|
|
2006-04-11 02:38:41 +08:00
|
|
|
<screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript &&
|
2005-12-19 03:17:23 +08:00
|
|
|
chown -v root:root /usr/share/ghostscript/fonts/*</userinput></screen>
|
2005-05-16 18:24:08 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2005-12-19 03:17:23 +08:00
|
|
|
<para><command>sed -i "s/bbox.dev$/x11.dev/" Makefile.in</command>:
|
|
|
|
This command changes the default <command>gs</command> output device from
|
|
|
|
the bbox driver to the x11 (screen) driver.</para>
|
|
|
|
|
|
|
|
<para><parameter>--enable-threads</parameter>: This parameter enables
|
|
|
|
threaded output.</para>
|
2005-05-16 18:24:08 +08:00
|
|
|
|
|
|
|
<para><parameter>--without-omni</parameter>: This switch disables the
|
|
|
|
omni driver support.</para>
|
|
|
|
|
|
|
|
<para><option>--without-ijs</option>: This switch disables the
|
|
|
|
IJS driver support.</para>
|
|
|
|
|
2006-05-05 11:13:12 +08:00
|
|
|
<para><command>install -v -m644 src/*.h /usr/include/ps</command>: Some
|
|
|
|
packages (<application>ImageMagick</application> is one) need the
|
2005-09-18 05:12:28 +08:00
|
|
|
<application>Ghostscript</application> interface headers in place to link
|
|
|
|
to the shared library. These commands install the headers.</para>
|
|
|
|
|
|
|
|
<para><command>ln -v -s ps /usr/include/ghostscript</command>: Some
|
|
|
|
packages expect to find the interface headers in an alternate
|
|
|
|
location.</para>
|
2005-05-16 18:24:08 +08:00
|
|
|
|
2005-12-19 03:17:23 +08:00
|
|
|
<para><command>for INSTFILE in `ls doc` ...</command>: This
|
|
|
|
<quote>for</quote> loop installs some documentation files that were not
|
|
|
|
installed during the installation process.</para>
|
|
|
|
|
2005-05-16 18:24:08 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>bdftops, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj, gsc, gsdj,
|
|
|
|
gsdj500, gslj, gslp, gsnd, gsx, lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
|
2005-12-19 03:17:23 +08:00
|
|
|
pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf,ps2pdf12,
|
|
|
|
ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, pv.sh, unix-lpr.sh, and
|
|
|
|
wftopfa</seg>
|
2005-05-16 18:24:08 +08:00
|
|
|
<seg>libgs.so </seg>
|
|
|
|
<seg>/usr/include/ps and /usr/share/ghostscript</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="gs-prog-gs">
|
|
|
|
<term><command>gs</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>invokes <application>Ghostscript</application>, an interpreter
|
|
|
|
of Adobe Systems' PostScript(tm) and Portable Document Format
|
|
|
|
(PDF) languages.</para>
|
|
|
|
<indexterm zone="espgs gs-prog-gs">
|
|
|
|
<primary sortas="b-gs">gs</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pstoraster">
|
|
|
|
<term><filename>pstoraster</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a filter used by <application>CUPS</application> to convert
|
|
|
|
PostScript to a generic raster image format that is acceptable as an
|
|
|
|
input to drivers for non-PostScript printers (e.g., from
|
2007-08-09 19:36:59 +08:00
|
|
|
<xref linkend="gutenprint"/>). It is built and installed only if
|
2005-05-16 18:24:08 +08:00
|
|
|
<xref linkend="cups"/> is found.</para>
|
|
|
|
<indexterm zone="espgs pstoraster">
|
|
|
|
<primary sortas="g-pstoraster">pstoraster</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para><application>ESP Ghostscript</application> provides many different
|
|
|
|
scripts used to render PostScript/PDF files back and forth. Please refer
|
|
|
|
to the HTML documentation or try <command>man gs</command> for information
|
|
|
|
about the capabilities provided by the package.</para>
|
|
|
|
|
|
|
|
</sect2>
|
2003-02-21 00:19:36 +08:00
|
|
|
|
|
|
|
</sect1>
|