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

    version 3.02

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


      The xpdf Portfile 41832 2008-11-11 01:31:18Z ryandesign macports.org $

      PortSystem 1.0

      Name: xpdf
      Version: 3.02
      Revision: 2
      Description: Xpdf is a viewer for PDF files.
      Long Description: Xpdf is a viewer for Portable Document Format (PDF) files. These are also sometimes also called Acrobat files, from the name of Adobes PDF software.

      Maintainers: nomaintainer
      Category: graphics print
      Platform: darwin
      Homepage: http://www.foolabs.com/xpdf/

      Master Sites: ftp://ftp.funet.fi/pub/TeX/CTAN/support/xpdf/ ftp://ctan.unsw.edu.au/tex-archive/support/xpdf/ ftp://ftp.tex.ac.uk/tex-archive/support/xpdf/ ftp://ftp.kddlabs.co.jp/CTAN/support/xpdf/ ftp://ftp.meiji.ac.jp/pub/TeX/CTAN/support/xpdf/ ftp://ctan.tug.org/tex-archive/support/xpdf/ ftp://ftp.dante.de/tex-archive/support/xpdf/ ftp://gd.tuwien.ac.at/publishing/tex/CTAN/support/xpdf/ ftp://ftp.ntnu.no/pub/tex/CTAN/support/xpdf/ ftp://www.dnsbalance.ring.gr.jp/pub/text/CTAN/support/xpdf/ http://www.t.ring.gr.jp/archives/text/CTAN/support/xpdf/ ftp://ftp.chg.ru/pub/TeX/CTAN/support/xpdf/ ftp://ftp.foolabs.com/pub/xpdf/

      ## checksums md5 599dc4cc65a07ee868cf92a667a913d2

      set xpdfmain ${distname}${extract.suffix}
      distfiles ${xpdfmain} xpdf-3.02pl1.patch xpdf-3.02pl2.patch

      Checksums: ${xpdfmain} md5 599dc4cc65a07ee868cf92a667a913d2 xpdf-3.02pl1.patch 877118786dfe27d1b7aa5a6759cc6e45 xpdf-3.02pl2.patch 3a5cb165ae66781e0b21e6219ae06795
      extract.only ${xpdfmain}

      depends_lib lib:libX11.6:XFree86 lib:libfreetype.6:freetype port:libpaper port:openmotif port:t1lib
      depends_run path:share/ghostscript/fonts:ghostscript

      Patch Files: xpdf-3.02-salvage-your-eye.patch


      pre-patch {
      system "cd ${workpath} && patch -p0 < ${distpath}/xpdf-3.02pl1.patch"
      system "cd ${workpath} && patch -p0 < ${distpath}/xpdf-3.02pl2.patch"
      }

      post-patch {
      reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/doc/sample-xpdfrc ${worksrcpath}/xpdf/GlobalParams.cc
      }

      configure.args --with-x --mandir=${prefix}/share/man --with-appdef-dir=${prefix}/etc/X11/app-defaults --with-Xp-library=${prefix}/lib --with-Xp-includes=${prefix}/include --with-Xt-library=${prefix}/lib --with-Xt-includes=${prefix}/include --with-Xm-library=${prefix}/lib --with-Xm-includes=${prefix}/include --with-t1-library=${prefix}/lib --with-t1-includes=${prefix}/include --with-libpaper-library=${prefix}/lib --with-libpaper-includes=${prefix}/include --with-freetype2-library=${prefix}/lib --with-freetype2-includes=${prefix}/include/freetype2 --enable-wordlist --enable-opi
      configure.cxxflags-append "-I${prefix}/include/freetype2 -I${prefix}/include"
      configure.cflags-append "-I${x11prefix}/include"
      configure.cppflags-append "-I${x11prefix}/include"
      configure.ldflags-append "-lz"

      Variant: a4 description {Use A4 as the default paper size instead of Letter} {
      configure.args-append --enable-a4-paper
      }

      Variant: with_poppler description {Add Poppler support} {
      depends_run-append port:poppler
      post-destroot {
      foreach i { pdffonts pdfimages pdfinfo pdftoppm pdftops pdftotext } {
      delete ${destroot}${prefix}/bin/${i}
      delete ${destroot}${prefix}/share/man/man1/${i}.1
      }
      }
      }

      platform puredarwin {
      depends_lib-delete port:openmotif
      depends_lib-append port:lesstif
      configure.args-delete --with-Xp-library=${prefix}/lib --with-Xp-includes=${prefix}/include --with-Xt-library=${prefix}/lib --with-Xt-includes=${prefix}/include --with-Xm-library=${prefix}/lib --with-Xm-includes=${prefix}/include
      }

      Variant: drm description {Obey access restrictions in PDF files} {
      patchfiles-delete xpdf-3.02-salvage-your-eye.patch
      }

      post-install {
      ui_msg " Xpdf language support packages are also available at http://www.foolabs.com/xpdf/download.html"
      }


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.