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

    version 5.9.4

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


      # -*- 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 plplot Portfile 57749 2009-09-16 04:30:02Z ryandesign macports.org $

      PortSystem 1.0

      Name: plplot
      Version: 5.9.4
      Revision: 2
      Platform: darwin
      Maintainers: takeshi
      Category: science
      Description: Scientific plotting package
      Master Sites: sourceforge
      Checksums: md5 db172aaf0a7aa429b63d9bbd28637fd4 sha1 2649f3628d7d6b2d9267e55b33b56cae3b20fb3d rmd160 926ceda7e7821d5ca82affed05a90611476584a0
      Homepage: http://plplot.sourceforge.net/
      Long Description: PLplot is a cross-platform software package for creating scientific plots. To help accomplish that task it is organized as a core C library, language bindings for that library, and device drivers which control how the plots are presented in non-interactive and interactive plotting contexts.

      depends_build port:cmake path:bin/pkg-config:pkgconfig
      depends_lib port:expat port:fontconfig port:freefont-ttf port:freetype port:libiconv port:libLASi port:libpng path:lib/pkgconfig/pango.pc:pango port:swig port:tcl port:tk port:aquaterm port:antigraingeometry port:zlib

      Patch Files: patch-x18f.f90.diff
      post-patch {
      reinplace "s|-framework AquaTerm|-F${prefix}/Library/Frameworks -framework AquaTerm|" ${worksrcpath}/cmake/modules/aqt.cmake
      }

      configure.dir ${workpath}/build
      configure.cmd cmake
      configure.env HOME=${workpath}
      configure.pre_args -DCMAKE_INSTALL_PREFIX=${prefix}
      configure.args -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_Fortran_FLAGS=-O2 -DCMAKE_C_COMPILER=/usr/bin/cc -DCMAKE_C_FLAGS=\"-O2 -I${prefix}/include\" -DCMAKE_CXX_COMPILER=/usr/bin/c++ -DCMAKE_CXX_FLAGS=\"-O2 -I${prefix}/include\" -DCMAKE_INCLUDE_PATH=${prefix}/include -DCMAKE_LIBRARY_PATH=${prefix}/lib -DTCL_INCLUDE_PATH=${prefix}/include -DTCL_LIBRARY=${prefix}/lib/libtcl.dylib -DTCL_STUB_LIBRARY=${prefix}/lib/libtclstub8.5.a -DTK_INCLUDE_PATH=${prefix}/include -DTK_LIBRARY=${prefix}/lib/libtk.dylib -DTK_STUB_LIBRARY=${prefix}/lib/libtkstub8.5.a -DFREETYPE_INCLUDE_DIR=${prefix}/include/freetype2 -DFREETYPE_LIBRARY=${prefix}/lib/libfreetype.dylib -DPL_FREETYPE_FONT_PATH=${prefix}/share/fonts/freefont-ttf -DWITH_FREETYPE=ON -DPLD_aqt=ON -DPLD_extcairo=ON -DPLD_memcairo=ON -DPLD_psttf=ON -DPLD_pscairo=ON -DPLD_pdfcairo=ON -DPLD_pngcairo=ON -DPLD_svgcairo=ON -DPLD_wxwidgets=OFF -DPLD_xcairo=ON -DPLD_tkwin=OFF -DENABLE_gnome2=OFF -DENABLE_java=OFF -DENABLE_python=OFF -DENABLE_octave=OFF -DENABLE_pdl=OFF -DENABLE_itcl=OFF -DENABLE_itk=OFF -DENABLE_wxwidgets=OFF -DBUILD_TEST=OFF -DSWIG_DIR=${prefix}/bin
      configure.post_args ../${distname}

      pre-configure {
      file mkdir ${workpath}/build
      if {[file exists ${prefix}/lib/libplplotd.dylib]} {
      return -code error "Before upgrading plplot, please uninstall (or deactivate) the old version of plplot."
      }
      }

      if {[variant_isset universal]} {
      configure.args-append -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\" -DENABLE_f77:BOOL=OFF -DENABLE_f95:BOOL=OFF
      }

      build.dir ${workpath}/build

      pre-destroot {
      set mods "${workpath}/build/bindings/f95/plplot.mod
      ${workpath}/build/bindings/f95/plplotp.mod
      ${workpath}/build/bindings/f95/plplot_flt.mod"
      foreach m $mods {
      if {[file exists $m]} {
      file copy $m ${workpath}/build/
      }
      }
      }

      platform i386 {
      configure.args-append -DCMAKE_MODULE_LINKER_FLAGS=\"-undefined dynamic_lookup\" -DCMAKE_EXE_LINKER_FLAGS=\"-undefined dynamic_lookup\"
      }

      # variant gcw is deleted since it has been deprecated
      # gd driver (gif, jpeg, png, svg) has been deprecated

      if {![variant_isset g95] && ![variant_isset universal]} {
      default_variants +gcc43
      }
      Variant: gcc43 conflicts g95 conflicts universal description {Build using gcc43} {
      depends_lib-append port:gcc43
      configure.args-append -DCMAKE_Fortran_COMPILER=\"${prefix}/bin/gfortran-mp-4.3\"
      }
      Variant: g95 conflicts gcc43 conflicts universal description {Build using g95} {
      depends_lib-append port:g95
      configure.args-append -DCMAKE_Fortran_COMPILER=\"${prefix}/bin/g95\"
      }

      Variant: octave description {Add support for Octave} {
      depends_lib-append port:octave
      configure.args-delete -DENABLE_octave=OFF
      configure.args-append -DENABLE_octave=ON
      }

      Variant: java description {Add support for Java} {
      configure.args-delete -DENABLE_java=OFF
      configure.args-append -DENABLE_java=ON
      }

      Variant: python25 description {Add support for python25} {
      depends_lib-append port:python25 port:py25-numpy
      configure.args-delete -DENABLE_python=OFF
      configure.args-append -DENABLE_python=ON -DHAVE_NUMPY:BOOL=ON -DPYTHON_INCLUDE_PATH=${prefix}/include/python2.5
      }

      Variant: gdc description {Add support for D} {
      depends_lib-append port:gdc
      configure.args-append -DENABLE_d=ON
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.