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

    version 7.07.1

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


      The espgs Portfile 50572 2009-05-04 19:19:09Z jeremyhu macports.org $

      PortSystem 1.0

      Name: espgs
      Version: 7.07.1
      Revision: 1
      Category: print textproc
      Platform: darwin
      Maintainers: nomaintainer
      Description: Interpreter for PostScript and PDF
      Long Description: Easy Software Products now produces maintenance updates of GNU Ghostscript under the name ESP Ghostscript. These updates incorporate bug fixes to the current GNU version of Ghostscript as well as the latest CUPS, GIMP-print, and other add-ons to Ghostscript.

      Homepage: http://www.cups.org/ghostscript.php
      Master Sites: sourceforge http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:fonts http://www.ijg.org/files/:jpeg sourceforge:libpng:libpng
      distname ${name}-${version}-source
      set std_fonts ghostscript-fonts-std-8.11
      set other_fonts ghostscript-fonts-other-6.0
      set png_src libpng-1.2.8
      distfiles ${distname}${extract.suffix} ${std_fonts}${extract.suffix}:fonts ${other_fonts}${extract.suffix}:fonts ${png_src}${extract.suffix}:libpng
      Checksums: ${name}-${version}-source${extract.suffix} md5 20dfdc45c3aeb9893b75d41087f828d9 ${std_fonts}${extract.suffix} md5 6865682b095f8c4500c54b285ff05ef6 ${other_fonts}${extract.suffix} md5 1a643ae62ef166562e4d422b1a601272 ${png_src}${extract.suffix} md5 cac1512878fb98f2456df6dc50bc9bc7
      worksrcdir ${name}-${version}

      depends_lib port:jpeg port:libpng port:zlib

      # Should be depends_extract, but that isn't implemented
      # To understand why doing this, please check official document:
      # http://www.ghostscript.com/doc/AFPL/8.00/Make.htm#Third-party_libraries
      post-extract {
      system "cd ${workpath}; mv ${png_src} ${worksrcdir}/libpng"
      }

      configure.args --without-gimp-print --disable-cups --mandir=${prefix}/share/man --with-fontpath="${prefix}/share/ghostscript/fonts:/usr/share/ghostscript/fonts"

      pre-build {
      # Ensure the macports include/ directory is added. Don't know why
      # configure doesn't do this already.
      set search {CFLAGS=-O2 $(GCFLAGS) $(XCFLAGS) $(ACDEFS)}
      reinplace "s|${search}|${search} -I${prefix}/include|g" ${worksrcpath}/Makefile
      }

      build.target
      destroot.destdir prefix=${destroot}${prefix} datadir=${destroot}${prefix}/share

      post-destroot {
      system "mkdir -p ${destroot}${prefix}/share/ghostscript/"
      system "cd ${workpath} && tar -cf - fonts | tar -xf - -C ${destroot}${prefix}/share/ghostscript/"
      }

      Variant: x11 {
      depends_lib-append port:xorg-libXext port:xorg-libXt
      configure.args-append --with-x
      }

      # Their Makefile.in is busted
      configure.cflags-append ${configure.cppflags}


    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/espgs
      % sudo port install espgs
      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 espgs
      ---> Verifying checksum for espgs
      ---> Extracting espgs
      ---> Configuring espgs
      ---> Building espgs with target all
      ---> Staging espgs into destroot
      ---> Installing espgs
    - 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 espgs with these commands:
      %  man espgs
      % apropos espgs
      % which espgs
      % locate espgs

     Where to find more information:

    Darwin Ports



    Lightbox this page.