Difference between revisions of "ESP Ghostscript"

From CBLFS
Jump to navigationJump to search
Line 39: Line 39:
 
  make install &&
 
  make install &&
 
  install -d /usr/share/doc/espgs-{{ESP Ghostscript-Version}}
 
  install -d /usr/share/doc/espgs-{{ESP Ghostscript-Version}}
  ln -v -s ../../ghostscript/{{ESP Ghostscript2-Version}}/doc /usr/share/doc/espgs-{{ESP Ghostscript-Version}}&&
+
  ln -v -s ../../ghostscript/{{ESP Ghostscript-Version2}}/doc /usr/share/doc/espgs-{{ESP Ghostscript-Version}}&&
 
  for INSTFILE in `ls doc`
 
  for INSTFILE in `ls doc`
 
  do
 
  do

Revision as of 08:39, 23 December 2006

Download Source: http://ftp.easysw.com/pub/ghostscript/8.15.4/espgs-8.15.4-source.tar.bz2
Standard Fonts: ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/ghostscript-fonts-std-8.11.tar.gz
Other Fonts: http://ftp.gnu.org/pub/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz

Introduction to ESP Ghostscript

ESP Ghostscript is a versatile processor for PostScript data with the ability to render PostScript to different targets. ESP Ghostscript is a customized version of GNU Ghostscript that includes an enhanced configuration script, the CUPS raster driver to support CUPS raster printer drivers, and additional patches and drivers from various Linux distributors.

Dependencies

Optional

Non-Multilib

Compile the package:

sed -i "s/bbox.dev$/x11.dev/" Makefile.in &&
./configure --prefix=/usr --enable-threads --without-omni &&
make

Install the package

make install &&
install -d /usr/share/doc/espgs-8.15.4
ln -v -s ../../ghostscript/8.15/doc /usr/share/doc/espgs-8.15.4&&
for INSTFILE in `ls doc`
do
  if [ ! -f /usr/share/doc/espgs-8.15.4/$INSTFILE ]; then
    install -v -m644 doc/$INSTFILE /usr/share/doc/espgs-8.15.4/
  fi
done

To install the shared library libgs.so you will need Gtk1. Note that the shared library is only used in external programs.

make CFLAGS_SO='-fPIC $(ACDEFS)' so

Install the shared library:

make soinstall &&
install -v -d -m755 /usr/include/ps &&
install -v -m644 src/*.h /usr/include/ps &&
ln -v -s ps /usr/include/ghostscript

Multilib

32Bit

Compile the package:

sed -i "s/bbox.dev$/x11.dev/" Makefile.in &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
./configure --prefix=/usr --enable-threads --without-omni &&
make

Install the package

make install

To install the shared library libgs.so you will need Gtk1. Note that the shared library is only used in external programs.

USE_ARCH=32 make CFLAGS_SO='-fPIC $(ACDEFS)' so

Install the shared library:

make soinstall

N32

Compile the package:

sed -i "s/bbox.dev$/x11.dev/" Makefile.in &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
./configure --prefix=/usr --enable-threads --without-omni --libdir=/usr/lib32  &&
make

Install the package

make install

To install the shared library libgs.so you will need Gtk1. Note that the shared library is only used in external programs.

USE_ARCH=n32 make CFLAGS_SO='-fPIC $(ACDEFS)' so

Install the shared library:

make soinstall

64Bit

Compile the package:

sed -i "s/bbox.dev$/x11.dev/" Makefile.in &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
./configure --prefix=/usr --enable-threads --without-omni --libdir=/usr/lib64 &&
make

Install the package

make install &&
install -d /usr/share/doc/espgs-8.15.4
ln -v -s ../../ghostscript/8.15/doc /usr/share/doc/espgs-8.15.4 &&
for INSTFILE in `ls doc`
do
  if [ ! -f /usr/share/doc/espgs-8.15.4/$INSTFILE ]; then
    install -v -m644 doc/$INSTFILE /usr/share/doc/espgs-8.15.4/
  fi
done

To install the shared library libgs.so you will need Gtk1. Note that the shared library is only used in external programs.

USE_ARCH=64 make CFLAGS_SO='-fPIC $(ACDEFS)' so

Install the shared library:

make soinstall &&
install -v -d -m755 /usr/include/ps &&
install -v -m644 src/*.h /usr/include/ps &&
ln -v -s ps /usr/include/ghostscript

Configuring

Fonts

To finish the installation, unpack all fonts you've downloaded to /usr/share/ghostscript

tar -xvf ../ghostscript-fonts-std-8.11.tar.gz -C /usr/share/ghostscript
tar -xvf ../gnu-gs-fonts-other-6.0.tar.gz -C /usr/share/ghostscript

Ensure the ownerships of the files are root:root:

chown -v root:root /usr/share/ghostscript/fonts/*