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

    graphviz  most recent diff


    version 2.20.3

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


      The graphviz Portfile 41813 2008-11-10 23:55:47Z ryandesign macports.org $

      PortSystem 1.0

      Name: graphviz
      set my_name graphviz
      Version: 2.20.3
      Category: graphics
      Maintainers: ryandesign
      Homepage: http://www.graphviz.org/
      Platform: darwin
      use_parallel_build yes
      dist_subdir ${my_name}
      distname ${my_name}-${version}
      distfiles ${distname}${extract.suffix}:source

      Description: Graph visualization software from AT&T and Bell Labs

      Long Description: Graph Visualization Software from AT&T Laboratories and Bell Laboratories (Lucent Technologies). The package contains: dot - batch program for drawing directed graphs as hierarchies neato - batch program for drawing undirected graphs using Kamada-Kawai spring models. Users wishing to have only the graph layout programs (for non-interactive use) can use the +no_x11 variant to build graphviz without its display routines.

      Master Sites: ${homepage}pub/graphviz/stable/SOURCES/:source http://www.pixelglow.com/downloads/:guiapp

      Checksums: ${distname}${extract.suffix} md5 4d94c4b809a5c095acfc973d8d207fa9 sha1 63ae6bdb6b410387477d339225cc4f61c2bc7322 rmd160 64c80f3af55668e487f911132407c332c3c38e87

      platform darwin 6 {
      pre-fetch {
      ui_msg "Note: dot2gxl and gxl2dot do not build on Mac OS X 10.2 Jaguar,"
      ui_msg "but the rest of Graphviz should work correctly."
      }
      patchfiles-append patch-Makefile.in
      }

      platform darwin 7 {
      configure.env-append MACOSX_DEPLOYMENT_TARGET=10.3
      build.env-append MACOSX_DEPLOYMENT_TARGET=10.3
      depends_lib-append port:gnuregex
      post-extract {
      reinplace "s|||g" ${worksrcpath}/lib/gvc/gvconfig.c
      }
      }

      platform darwin 8 {
      configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4
      build.env-append MACOSX_DEPLOYMENT_TARGET=10.4
      }

      platform darwin 9 {
      # http://developer.apple.com/qa/qa2007/qa1567.html
      configure.ldflags-append "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
      }

      depends_lib lib:libX11.6:XFree86 port:cairo path:lib/pkgconfig/pango.pc:pango port:jpeg port:libpng port:freetype port:expat port:zlib port:gettext

      depends_build port:pkgconfig

      depends_run port:urw-fonts

      configure.args --mandir=${prefix}/share/man --with-codegens --with-x --without-devil --without-smyrna --with-digcola --without-ipsepcola --without-rsvg --with-pangocairo --with-freetype2 --with-fontconfig --without-gdk-pixbuf --without-gtk --without-gtkgl --without-gtkglext --without-glade --without-gnomeui --without-ming --without-quartz --with-mylibgd --disable-swig --disable-sharp --disable-guile --disable-io --disable-java --disable-lua --disable-ocaml --disable-perl --disable-php --disable-python --disable-python23 --disable-python24 --disable-python25 --disable-r --disable-ruby --disable-tcl

      Variant: guile description {Include Guile language bindings} {
      depends_lib-append port:guile
      depends_build-append port:swig
      configure.args-delete --disable-swig --disable-guile
      configure.args-append --enable-guile
      }

      Variant: lua description {Include Lua language bindings} {
      depends_lib-append port:lua
      depends_build-append port:swig
      configure.args-delete --disable-swig --disable-lua
      configure.args-append --enable-lua
      }

      Variant: ocaml description {Include Objective Caml language bindings} {
      depends_lib-append port:ocaml
      depends_build-append port:swig
      configure.args-delete --disable-swig --disable-ocaml
      configure.args-append --enable-ocaml
      }

      Variant: perl description {Include PERL 5 language bindings} {
      depends_lib-append path:bin/perl:perl5.8
      depends_build-append port:swig
      configure.args-delete --disable-swig --disable-perl
      configure.args-append --enable-perl
      }

      Variant: php description {Include PHP 4 language bindings} {
      depends_lib-append port:php4
      depends_build-append port:swig
      configure.args-delete --disable-swig --disable-php
      configure.args-append --enable-php
      }

      Variant: python description {Include Python 2.4 language bindings} {
      depends_lib-append port:python24
      depends_build-append port:swig
      configure.args-delete --disable-swig --disable-python
      configure.args-append --enable-python
      }

      Variant: ruby description {Include Ruby language bindings} {
      depends_lib-append port:ruby
      depends_build-append port:swig
      configure.args-delete --disable-swig --disable-ruby
      configure.args-append --enable-ruby
      }

      Variant: tcl description {Include Tcl language bindings} {
      depends_lib-append port:tcl
      depends_build-append port:swig
      configure.args-delete --disable-swig --disable-tcl
      configure.args-append --enable-tcl
      }

      Variant: smyrna description {Include the Smyrna large graph viewer} {
      configure.args-delete --without-smyrna --without-gtk --without-gtkglext --without-glade
      configure.args-append --with-smyrna --with-gtk --with-gtkglext --with-glade
      depends_lib-append port:gtk2 port:gtkglext port:libglade2
      }

      Variant: no_pangocairo description {Remove pangocairo support (no antialiased bitmapped output; no PDF output)} {
      depends_lib-delete port:cairo port:pango
      configure.args-delete --with-pangocairo
      configure.args-append --without-pangocairo
      }

      Variant: no_x11 requires no_pangocairo description {Remove X11 support (removes lefty; implies no_pangocairo)} {
      depends_lib-delete lib:libX11.6:XFree86
      configure.args-append --without-x
      }

      # Can be removed once MacPorts 1.7.0 is released
      if {![info exists applications_dir]} {
      set applications_dir /Applications/MacPorts
      }

      Variant: gui description {Include the Pixelglow graph viewer} {
      distfiles-append graphviz-1.13-v16.tgz:guiapp
      checksums-append graphviz-1.13-v16.tgz md5 a3278f993ef3ce021043a17b16a9fd5f sha1 87ee05a99088a98aef4937d72c3bb6cf488e3074 rmd160 35eac7c7013bddc0d1f107fcaf8e9c7d1e078231
      post-extract {
      copy "${workpath}/Graphviz 1.13 (v16)/Graphviz.app" ${worksrcpath}
      delete ${worksrcpath}/Graphviz.app/Contents/Frameworks
      system "cd ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj && iconv -f utf-16 -t utf-8 InfoPlist.strings > InfoPlist.strings.utf8"
      }
      patchfiles-append patch-gv-extension.diff
      post-patch {
      reinplace "s|1\.13|${version}|g" ${worksrcpath}/Graphviz.app/Contents/Info.plist ${worksrcpath}/Graphviz.app/Contents/Resources/Info.plist ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj/InfoPlist.strings.utf8
      system "cd ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj && iconv -f utf-8 -t utf-16 InfoPlist.strings.utf8 > InfoPlist.strings"
      delete ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj/InfoPlist.strings.utf8
      }
      post-destroot {
      set apppath ${destroot}${applications_dir}
      set macospath ${apppath}/Graphviz.app/Contents/MacOS
      set dispatcher graphviz-dispatcher.php
      xinstall -d ${apppath}
      copy ${worksrcpath}/Graphviz.app ${apppath}
      xinstall -m 755 ${filespath}/${dispatcher}.in ${macospath}/${dispatcher}
      reinplace "s% PREFIX %${prefix}%g" ${macospath}/${dispatcher}
      foreach prog {acyclic bcomps ccomps circo cvtgxl dijkstra dot gc gvcolor gvpack gvpr neato nop sccmap tred twopi unflatten} {
      delete ${macospath}/${prog}
      ln -s ${dispatcher} ${macospath}/${prog}
      }
      }
      }

      # Make the configuration file that makes the plugins work:
      post-activate {
      system "dot -c"
      }

      livecheck.check regex
      livecheck.url ${homepage}Download_source.php
      livecheck.regex ${my_name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)\\.tar

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.