Difference between revisions of "GPL Ghostscript"

From CBLFS
Jump to navigationJump to search
 
(Multilib)
 
(20 intermediate revisions by 8 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://prdownloads.sourceforge.net/ghostscript/ghostscript-8.54-gpl.tar.bz2?download
+
| http://ftp.gnu.org/gnu/ghostscript/gnu-ghostscript-{{GPL Ghostscript-Version}}.tar.bz2
 +
|-
 +
!Standard Fonts:
 +
| http://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/ghostscript-fonts-std-{{Ghostscript-Fonts-Std-Version}}.tar.gz
 +
|-
 +
!Other Fonts:
 +
| http://ftp.gnu.org/pub/gnu/ghostscript/gnu-gs-fonts-other-{{GNU-GS-Fonts-Version}}.tar.gz
 
|}
 
|}
  
 
----
 
----
 +
 +
{{Package-Introduction|The GPL Ghostscript package provides an interpreter for the PostScript language and the PDF file format,
 +
a set of C procedures (the Ghostscript library) that implement the graphics capabilities that appear as primitive operations in the PostScript language, and a wide variety of output drivers for various file formats and printers.|http://www.gnu.org/software/ghostscript/ghostscript.html}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 11: Line 20:
 
=== Optional ===
 
=== Optional ===
 
* [[CUPS]]
 
* [[CUPS]]
 +
* [[Gtk2]]
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 +
 +
The following causes -fPIC to be passed to the compiler when building shared libraries:
 +
 +
sed -i "s/CFLAGS='/&-fPIC /g" src/unix-dll.mak
  
 
Compile the package:
 
Compile the package:
Line 19: Line 33:
 
  make
 
  make
  
Install the package
+
To build the shared libgs.so library you must have GTK+ installed and issue the following command:
 +
 
 +
make so
 +
 
 +
Install the package:
  
 
  make install
 
  make install
 +
 +
If you built the shared library, install it and the associated programs by issuing the following commands as the root user:
 +
 +
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 ==
 
== Multilib ==
  
 
=== 32Bit ===
 
=== 32Bit ===
 +
 +
The following causes -fPIC to be passed to the compiler when building shared libraries:
 +
 +
sed -i "s/CFLAGS='/&-fPIC /g" src/unix-dll.mak
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc -m32" LDFLAGS="-L/usr/lib" ./configure --prefix=/usr
+
  CC="gcc ${BUILD32}" LDFLAGS="-L/usr/lib" USE_ARCH=32 \
 +
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
 +
./configure --prefix=/usr &&
 
  make
 
  make
 +
 +
To build the shared libgs.so library you must have GTK+ installed and issue the following command:
 +
 +
make so
  
 
Install the package
 
Install the package
  
 
  make install
 
  make install
 +
 +
If you built the shared library, install it and the associated programs by issuing the following commands as the root user:
 +
 +
make soinstall &&
 +
install -v -d -m755 /usr/include/ps &&
 +
install -v -m644 src/*.h /usr/include/ps &&
 +
ln -v -s ps /usr/include/ghostscript
  
 
=== N32 ===
 
=== N32 ===
Line 41: Line 83:
  
 
=== 64Bit ===
 
=== 64Bit ===
 +
 +
The following causes -fPIC to be passed to the compiler when building shared libraries:
 +
 +
sed -i "s/CFLAGS='/&-fPIC /g" src/unix-dll.mak
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
+
  CC="gcc ${BUILD64}" LDFLAGS="-L/usr/lib64" USE_ARCH=64 \
 +
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
 +
./configure --prefix=/usr --libdir=/usr/lib64 &&
 
  make
 
  make
 +
 +
To build the shared libgs.so library you must have GTK+ installed and issue the following command:
 +
 +
make so
  
 
Install the package
 
Install the package
  
 
  make install
 
  make install
 +
 +
If you built the shared library, install it and the associated programs by issuing the following commands as the root user:
 +
 +
make soinstall &&
 +
install -v -d -m755 /usr/include/ps &&
 +
install -v -m644 src/*.h /usr/include/ps &&
 +
ln -v -s ps /usr/include/ghostscript
 +
 +
== Fonts ==
 +
 +
To finish the installation, unpack all fonts you've downloaded to /usr/share/ghostscript
 +
 +
tar -xvf ../ghostscript-fonts-std-{{Ghostscript-Fonts-Std-Version}}.tar.gz -C /usr/share/ghostscript
 +
tar -xvf ../gnu-gs-fonts-other-{{GNU-GS-Fonts-Version}}.tar.gz -C /usr/share/ghostscript
 +
 +
Ensure the ownerships of the files are root:root:
 +
 +
chown -v root:root /usr/share/ghostscript/fonts/*

Latest revision as of 17:55, 22 September 2008

Download Source: http://ftp.gnu.org/gnu/ghostscript/gnu-ghostscript-8.62.0.tar.bz2
Standard Fonts: http://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 GPL Ghostscript

The GPL Ghostscript package provides an interpreter for the PostScript language and the PDF file format, a set of C procedures (the Ghostscript library) that implement the graphics capabilities that appear as primitive operations in the PostScript language, and a wide variety of output drivers for various file formats and printers.

Project Homepage: http://www.gnu.org/software/ghostscript/ghostscript.html

Dependencies

Optional

Non-Multilib

The following causes -fPIC to be passed to the compiler when building shared libraries:

sed -i "s/CFLAGS='/&-fPIC /g" src/unix-dll.mak

Compile the package:

./configure --prefix=/usr  &&
make

To build the shared libgs.so library you must have GTK+ installed and issue the following command:

make so

Install the package:

make install

If you built the shared library, install it and the associated programs by issuing the following commands as the root user:

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

The following causes -fPIC to be passed to the compiler when building shared libraries:

sed -i "s/CFLAGS='/&-fPIC /g" src/unix-dll.mak

Compile the package:

CC="gcc ${BUILD32}" LDFLAGS="-L/usr/lib" USE_ARCH=32 \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
./configure --prefix=/usr &&
make

To build the shared libgs.so library you must have GTK+ installed and issue the following command:

make so

Install the package

make install

If you built the shared library, install it and the associated programs by issuing the following commands as the root user:

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

N32

TO DO!

64Bit

The following causes -fPIC to be passed to the compiler when building shared libraries:

sed -i "s/CFLAGS='/&-fPIC /g" src/unix-dll.mak

Compile the package:

CC="gcc ${BUILD64}" LDFLAGS="-L/usr/lib64" USE_ARCH=64 \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

To build the shared libgs.so library you must have GTK+ installed and issue the following command:

make so

Install the package

make install

If you built the shared library, install it and the associated programs by issuing the following commands as the root user:

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

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/*