Ghostscript version 8.63 - How to Download and Install on Mac OS X
Saturday the 4th of July, 2009

    ghostscript  most recent diff


    version 8.63

      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.63 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 42568 2008-11-24 11:31:37Z takanori macports.org $

      PortSystem 1.0

      Name: ghostscript
      Version: 8.63
      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-std-8.11.tar.gz:fonts ghostscript-fonts-other-6.0.tar.gz:fonts
      Patch Files: patch-src_macos-fw.mak.diff patch-src_macosx.mak.diff patch-src_unix-aux.mak.diff
      Checksums: ${distname}.tar.gz md5 b22e689b237a6594d1ca408f2b55a891 ghostscript-fonts-std-8.11.tar.gz md5 6865682b095f8c4500c54b285ff05ef6 ghostscript-fonts-other-6.0.tar.gz md5 1a643ae62ef166562e4d422b1a601272

      depends_lib lib:libX11:xorg port:cairo port:expat port:fontconfig port:libiconv port:zlib path:bin/perl:perl5.8

      depends_build port:pkgconfig

      # Can be removed once MacPorts 1.7.0 is released
      if {![info exists frameworks_dir]} {
      set frameworks_dir ${prefix}/Library/Frameworks
      }

      post-patch {
      foreach f {src/macosx.mak src/macos-fw.mak} {
      reinplace "s| DESTROOT |${destroot}|" ${worksrcpath}/${f}
      reinplace "s| FRAMEWORKS_DIR |${frameworks_dir}|" ${worksrcpath}/${f}
      }

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

      # 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 --x-includes=${x11prefix}/include --x-libraries=${x11prefix}/lib --disable-cups

      build.target
      use_parallel_build no

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/${name}/fonts
      foreach f {*.afm *.gsf *.pfa *.pfb *.pfm fonts.dir fonts.scale} {
      eval xinstall -m 644 [glob ${workpath}/fonts/${f}] ${destroot}${prefix}/share/${name}/fonts
      }
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}-fonts
      xinstall -m 644 -W ${workpath}/fonts COPYING ChangeLog README README.tweaks TODO ${destroot}${prefix}/share/doc/${name}-fonts

      ln -s ../${name}/${version}/doc ${destroot}${prefix}/share/doc/${name}
      }

      livecheck.distname GPL Ghostscript

      universal_variant no

      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
      }

      # Added variant that build the Ghostscript framework. (Thanks, Sal!)
      Variant: framework description {Build and install Ghostscript.framework} {
      post-build {
      move ${worksrcpath}/Makefile ${worksrcpath}/Makefile.CONFIGURE
      ln -s ${worksrcpath}/src/macosx.mak ${worksrcpath}/Makefile
      system "cd ${worksrcpath} && make framework"
      delete ${worksrcpath}/Makefile
      move ${worksrcpath}/Makefile.CONFIGURE ${worksrcpath}/Makefile
      }

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/Library/Frameworks
      move ${worksrcpath}/Makefile ${worksrcpath}/Makefile.CONFIGURE
      ln -s ${worksrcpath}/src/macosx.mak ${worksrcpath}/Makefile
      system "cd ${worksrcpath} && make framework_install"
      delete ${worksrcpath}/Makefile
      move ${worksrcpath}/Makefile.CONFIGURE ${worksrcpath}/Makefile
      }
      }

    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.