Ghostscript version 8.70 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    ghostscript  most recent diff


    version 8.70

      View the most recent changes for the ghostscript port at: ghostscript.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for ghostscript.
      The raw portfile for ghostscript 8.70 is located here:
      http://ghostscript.darwinports.com/dports/print/ghostscript/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/ghostscript


      The ghostscript Portfile 57453 2009-09-11 08:17:15Z ryandesign macports.org $

      PortSystem 1.0

      Name: ghostscript
      Version: 8.70
      Category: print
      Maintainers: takanori openmaintainer
      Description: GPL Ghostscript, An interpreter for PostScript and PDF
      Long Description: Ghostscript is the well-known PostScript interpreter which is available for all common and most esoteric platforms and supports many different printers and some displays.
      Platform: darwin
      Homepage: http://www.cs.wisc.edu/~ghost/
      Master Sites: sourceforge:${name}:source sourceforge:gs-fonts:fonts
      distfiles ${distname}.tar.gz:source ghostscript-fonts-other-6.0.tar.gz:fonts
      Patch Files: patch-base_unix-dll.mak.diff
      Checksums: ${distname}.tar.gz rmd160 1516246b2a6b41650f2baeac8c7ae0fd88cfe43d ghostscript-fonts-other-6.0.tar.gz rmd160 ab60dbf71e7d91283a106c3df381cadfe173082f

      depends_lib port:xorg-libXext port:xorg-libXt path:lib/pkgconfig/cairo.pc:cairo port:expat port:fontconfig port:jpeg port:libiconv port:libpng port:zlib path:bin/perl:perl5

      depends_build port:pkgconfig

      post-extract {
      foreach d {zlib libpng jpeg} {
      move "${worksrcpath}/${d}" "${worksrcpath}/${d}_local"
      }
      }

      post-patch {
      reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/base/unix-dll.mak

      # Ensure that MacPorts perl is used
      foreach f {lib/fixmswrd.pl toolbin/bugsByEngineer.pl toolbin/pscet_status.pl} {
      reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" ${worksrcpath}/${f}
      }
      }

      use_autoreconf yes
      autoreconf.args -fv

      # Make included JasPer uses its own headers rather than the system ones
      configure.cppflags-delete "-I${prefix}/include"
      configure.cppflags-append "-isystem${prefix}/include"

      configure.args --disable-compile-inits --disable-cups --disable-gtk

      build.target so
      use_parallel_build no

      destroot.target soinstall
      post-destroot {
      system "strip ${destroot}${prefix}/bin/gsc ${destroot}${prefix}/bin/gsx"
      ln -s gsc ${destroot}${prefix}/bin/gs

      xinstall -m 755 -d ${destroot}${prefix}/share/${name}/fonts
      foreach f {*.afm *.gsf *.pfa *.pfm} {
      eval xinstall -m 644 [glob ${workpath}/fonts/${f}] ${destroot}${prefix}/share/${name}/fonts
      }

      xinstall -m 755 -d ${destroot}${prefix}/share/doc
      ln -s ../${name}/${version}/doc ${destroot}${prefix}/share/doc/${name}

      xinstall -m 755 -d ${destroot}${prefix}/share/${name}/${version}/examples/cjk
      eval xinstall -m 644 [glob ${worksrcpath}/examples/cjk/*.ps] ${destroot}${prefix}/share/${name}/${version}/examples/cjk
      }

      livecheck.distname GPL Ghostscript

      universal_variant no

      Variant: no_x11 {
      depends_lib-delete port:xorg-libXext
      depends_lib-delete port:xorg-libXt
      configure.args-append --without-x
      }

      Variant: cups description {Enable cups support} {
      configure.args-delete --disable-cups
      configure.args-append --enable-cups

      # Informing user enable cups will install files outside of the common directory structure
      destroot.violate_mtree yes
      }

      Variant: framework description {(removed)} {
      pre-fetch {
      ui_msg "IMPORTANT NOTICE: Support for Ghostscript.framework has been removed. Please use libgs.dylib instead. libgs is now installed by default."
      }
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/ghostscript
      % sudo port install ghostscript
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching ghostscript
      ---> Verifying checksum for ghostscript
      ---> Extracting ghostscript
      ---> Configuring ghostscript
      ---> Building ghostscript with target all
      ---> Staging ghostscript into destroot
      ---> Installing ghostscript
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using ghostscript with these commands:
      %  man ghostscript
      % apropos ghostscript
      % which ghostscript
      % locate ghostscript

     Where to find more information:

    Darwin Ports



    Lightbox this page.