Pdflib version 7.0.4 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 7.0.4

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The pdflib Portfile 58917 2009-10-07 07:50:32Z blb macports.org $

      PortSystem 1.0

      Name: pdflib
      Version: 7.0.4
      Category: print
      Platform: darwin
      Maintainers: nomaintainer
      use_parallel_build yes
      Description: PDFlib Lite (Source Code) is a subset of PDFlib
      Long Description: ${description}, a library of C routines that allow to programmatically generate PDF, the Adobe's Portable Document File format.

      Homepage: http://www.pdflib.com/products/pdflib-family/pdflib-lite/
      Master Sites: http://www.pdflib.com/binaries/PDFlib/[string map {"." ""} ${version}]/
      distname PDFlib-Lite-${version}

      Checksums: md5 c4b8b9a8951b69090c6215eecc823e17 sha1 bc2fb4639bcb09d319ad7a1141616fcd50a7d7be rmd160 aa52773b49f31ebe95f51229f5ad10bfb5333a8c

      Patch Files: patch-perl_Makefile.diff

      test.run yes

      configure.args --without-java --without-perl --without-py --without-tcl --without-ruby
      configure.ccache no

      # The existence of tiff header files interferes with PDFLib (#11789).
      configure.cppflags-delete -I${prefix}/include
      configure.cppflags-append -isystem${prefix}/include

      post-patch {
      reinplace "s/PYTHONLIBDIR=`cat << EOF | python/PYTHONLIBDIR=`cat << EOF | \$PYTHONBIN/g" ${worksrcpath}/configure
      }

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/
      file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
      }

      Variant: java description {Enable Java language binding} {
      configure.args-delete --without-java
      configure.args-append --with-java=yes
      }

      Variant: perl description {Enable Perl language binding} {
      depends_lib path:bin/perl:perl5
      configure.args-delete --without-perl
      configure.args-append --with-perl=${prefix}/bin/perl
      }

      Variant: python24 description {Enable Python language binding using version 2.4} conflicts python25 python26 {
      set pyversion 2.4
      depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
      configure.args-delete --without-py
      configure.args-append --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
      configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}

      post-destroot {
      # ${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/ is a link, which MacPorts can not install into
      xinstall -d -m 755 ${destroot}${prefix}/lib/python2.4/
      foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/* ] {
      file rename ${file} ${destroot}${prefix}/lib/python2.4/
      }
      }
      }

      Variant: python25 description {Enable Python language binding using version 2.5} conflicts python24 python26 {
      set pyversion 2.5
      depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
      configure.args-delete --without-py
      configure.args-append --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
      configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}

      post-destroot {
      # ${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/ is a link, which MacPorts can not install into
      xinstall -d -m 755 ${destroot}${prefix}/lib/python2.5/
      foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/* ] {
      file rename ${file} ${destroot}${prefix}/lib/python2.5/
      }
      }
      }

      Variant: python26 description {Enable Python language binding using version 2.6} conflicts python24 python25 {
      set pyversion 2.6
      depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
      configure.args-delete --without-py
      configure.args-append --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
      configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
      }

      Variant: tcl description {Enable Tcl language binding} {
      depends_lib-append path:bin/tclsh:tcl
      configure.args-delete --without-tcl
      configure.args-append --with-tcl=${prefix}/bin/tclsh
      }

      Variant: ruby description {Enable Ruby language binding} {
      depends_lib-append port:ruby
      pre-configure {
      set rubyIncl [file dirname [glob ${prefix}/lib/ruby/*/*/ruby.h]]
      configure.args-delete --without-ruby
      configure.args-append --with-ruby=${prefix} --with-rubyincl=${rubyIncl}
      }
      }

      if {[variant_isset universal]} {
      depends_build-append port:libtool
      post-configure {
      file delete ${worksrcpath}/libtool
      file link -s ${worksrcpath}/libtool ${prefix}/bin/glibtool
      }
      }

      livecheck.type regex
      livecheck.regex "PDFlib Lite \(\[\\d\\.\]+\)"

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.