ghostscript version 8.61 for Mac OS X 10.5 Leopard
Sunday the 11th of May, 2008

    ghostscript  most recent diff


      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.61 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
      Google
      Web Darwinports.com



      # $Id: Portfile 31524 2007-11-27 09:59:15Z takanori macports.org $

      PortSystem 1.0
      Name: ghostscript
      Version: 8.61
      Homepage: http://www.cs.wisc.edu/~ghost/
      Description: GPL Ghostscript, An interpreter for PostScript and PDF
      Category: print
      Platform: darwin
      Maintainers: digdog macports.org

      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.

      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
      patchfiles patch-configure.diff patch-src_macos-fw.mak.diff patch-src_macosx.mak.diff patch-src_unix-aux.mak.diff

      checksums ${distname}.tar.gz md5 aa55ca90b891c1b3b7402a09a2146a87 ghostscript-fonts-std-8.11.tar.gz md5 6865682b095f8c4500c54b285ff05ef6 ghostscript-fonts-other-6.0.tar.gz md5 1a643ae62ef166562e4d422b1a601272

      depends_lib lib:libX11.6:XFree86 port:zlib port:libiconv port:fontconfig port:expat

      # Ticket #11901, Thanks to Christian Cornelssen (ccorn cs.tu-berlin.de).
      # Make included JasPer find its own headers rather than the system ones
      configure.cppflags-delete "-I${prefix}/include"
      configure.cppflags-append "-I${worksrcpath}/jasper/src/libjasper/include"
      configure.cppflags-append "-I${prefix}/include"

      configure.args --mandir='\${prefix}/share/man'

      build.target

      destroot.violate_mtree yes

      post-destroot {
      copy ${workpath}/fonts ${destroot}${prefix}/share/ghostscript/fonts
      }

      pre-activate {
      # remove some files accidentally installed by gs 8.60. (#12637)
      if {![variant_isset no_cups]} {
      set renamed_files {}
      foreach f {/private/etc/cups/pstoraster.convs
      /usr/libexec/cups/filter/pstopxl
      /usr/libexec/cups/filter/pstoraster
      /usr/share/cups/model/pxlcolor.ppd
      /usr/share/cups/model/pxlmono.ppd} {
      if {[file exists ${f}]} {
      if {[file exists ${f}.old]} {
      delete ${f}.old
      }
      move ${f} ${f}.old
      lpush renamed_files ${f}
      }
      }
      if {[llength ${renamed_files}]} {
      ui_msg "\nThe following files have been renamed (and should be removed):"
      foreach f ${renamed_files} {
      ui_msg " ${f} -> ${f}.old"
      }
      ui_msg ""
      }
      }
      }

      # Added variant that build the Ghostscript framework. (Thanks, Sal!)
      Variant: gslib {
      post-patch {
      foreach f {src/macosx.mak src/macos-fw.mak} {
      reinplace "s| DESTROOT |${destroot}|" ${worksrcpath}/${f}
      reinplace "s| PREFIX |${prefix}|" ${worksrcpath}/${f}
      }
      }

      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
      }
      }

      # this should probably be the default because the port breaks the destroot without that
      Variant: no_cups description "Disable CUPS support" {
      configure.args-append --disable-cups
      }

    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



    image test