Graphviz-devel version 2.25.20091122.0545 - How to Download and Install on Mac OS X
Monday the 22nd of March, 2010

    graphviz-devel  most recent diff


    version 2.25.20091122.0545

      View the most recent changes for the graphviz-devel port at: graphviz-devel.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for graphviz-devel.
      The raw portfile for graphviz-devel 2.25.20091122.0545 is located here:
      http://graphviz-devel.darwinports.com/dports/graphics/graphviz-devel/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-devel


      The graphviz-devel Portfile 60756 2009-11-22 10:04:54Z ryandesign macports.org $

      PortSystem 1.0

      Name: graphviz-devel
      conflicts graphviz
      set my_name graphviz
      # keep version in sync between graphviz-devel and graphviz-gui-devel
      Version: 2.25.20091122.0545
      Category: graphics
      Maintainers: ryandesign
      license CPLv1.0
      Homepage: http://www.graphviz.org/
      Master Sites: ${homepage}pub/graphviz/development/SOURCES/
      Platform: darwin
      use_parallel_build yes
      dist_subdir ${my_name}
      distname ${my_name}-${version}

      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.

      Checksums: md5 5b96c7e83b77d53ac150951e016fb9c0 sha1 357aa9d3881898f38d6b677c19a7b1707d27b2d1 rmd160 fc66d6a94bfa0c361aa302ae3d354d90e385e223

      pre-extract {
      if {"darwin" == ${os.platform} && 9 == ${os.major}} {
      # graphviz-devel needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
      # graphviz-gui-devel needs Xcode 3.1.2+; see #18811
      set minimum_xcodeversion 3.1.2
      set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
      if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
      ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
      return -code error "incompatible Xcode version"
      }
      }
      }

      depends_lib port:xorg-libXaw path:lib/pkgconfig/pango.pc:pango port:jpeg port:libpng port:fontconfig port:freetype port:expat port:gd2 port:zlib port:gettext

      depends_build port:pkgconfig

      depends_run port:urw-fonts

      configure.args --with-codegens --with-x --without-devil --without-smyrna --with-digcola --with-ipsepcola --without-rsvg --with-pangocairo --without-glitz --with-freetype2 --with-fontconfig --without-gdk-pixbuf --without-gtk --without-gtkgl --without-gtkglext --without-glade --without-gnomeui --without-ming --without-quartz --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

      platform macosx {
      if {${os.major} > 8} {
      configure.args-delete --without-quartz
      configure.args-append --with-quartz
      }
      }

      Variant: guile description {Include Guile language bindings} {
      depends_lib-append port:guile
      depends_build-append port:swig-guile
      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-lua
      configure.args-delete --disable-swig --disable-lua
      configure.args-append --enable-lua
      post-patch {
      reinplace "s|/usr/lib\$LIBPOSTFIX/lua|${prefix}/lib\$LIBPOSTFIX/lua|g" ${worksrcpath}/configure
      }
      }

      Variant: ocaml description {Include Objective Caml language bindings} {
      depends_lib-append port:ocaml
      depends_build-append port:swig-ocaml
      configure.args-delete --disable-swig --disable-ocaml
      configure.args-append --enable-ocaml
      configure.cppflags-append -I${prefix}/lib/ocaml
      }

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

      Variant: php description {Include PHP language bindings} {
      depends_lib-append path:bin/php:php5
      depends_build-append port:swig-php5
      configure.args-delete --disable-swig --disable-php
      configure.args-append --enable-php
      post-patch {
      reinplace "s|/usr/include/php|${prefix}/include/php|g" ${worksrcpath}/configure
      reinplace "s|/usr/lib\${LIBPOSTFIX}/php|${prefix}/lib\${LIBPOSTFIX}/php|g" ${worksrcpath}/configure
      reinplace "s|/usr/share/php|${prefix}/share/php|g" ${worksrcpath}/configure
      }
      }

      Variant: python24 description {Include Python 2.4 language bindings} conflicts python25 python26 {
      depends_lib-append port:python24
      depends_build-append port:swig-python
      configure.args-delete --disable-swig --disable-python
      configure.args-append --enable-python
      configure.python ${prefix}/bin/python2.4
      # The configure script asks python where to install
      # This doesn't work for 2.4 and 2.5 (see #16334)
      post-patch {
      reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.4|" ${worksrcpath}/configure
      }
      }

      Variant: python25 description {Include Python 2.5 language bindings} conflicts python24 python26 {
      depends_lib-append port:python25
      depends_build-append port:swig-python
      configure.args-delete --disable-swig --disable-python
      configure.args-append --enable-python
      configure.python ${prefix}/bin/python2.5
      # The configure script asks python where to install
      # This doesn't work for 2.4 and 2.5 (see #16334)
      post-patch {
      reinplace "s|PYTHON_INSTALL_DIR=.*|PYTHON_INSTALL_DIR=${prefix}/lib/python2.5|" ${worksrcpath}/configure
      }
      }

      Variant: python26 description {Include Python 2.6 language bindings} conflicts python24 python25 {
      depends_lib-append port:python26
      depends_build-append port:swig-python
      configure.args-delete --disable-swig --disable-python
      configure.args-append --enable-python
      configure.python ${prefix}/bin/python2.6
      }

      Variant: ruby description {Include Ruby language bindings} {
      depends_lib-append port:ruby
      depends_build-append port:swig-ruby
      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-tcl
      configure.args-delete --disable-swig --disable-tcl
      configure.args-append --enable-tcl
      }

      Variant: java description {Include Java language bindings} {
      depends_build-append port:swig-java
      configure.args-delete --disable-swig --disable-java
      configure.args-append --enable-java
      }

      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 port:gts
      }

      Variant: r description {Include R language bindings} {
      depends_build-append port:swig-r
      configure.args-delete --disable-swig --disable-r
      configure.args-append --enable-r
      }

      Variant: rsvg description {enable the rsvg plugin} {
      depends_lib-append port:librsvg
      configure.args-delete --without-rsvg
      configure.args-append --with-rsvg
      }

      Variant: gdk_pixbuf description {enable the gdk_pixbuf plugin} {
      depends_lib-append port:gtk2
      configure.args-delete --without-gdk-pixbuf
      configure.args-append --with-gdk-pixbuf
      }

      Variant: glitz description {enable the incomplete glitz plugin} {
      depends_lib-append port:glitz
      configure.args-delete --without-glitz
      configure.args-append --with-glitz
      }

      Variant: ming description {enable the incomplete ming plugin} {
      depends_lib-append port:ming
      configure.args-delete --without-ming
      configure.args-append --with-ming
      }

      Variant: no_pangocairo description {Remove pangocairo support (no antialiased bitmapped output; no PDF output)} {
      depends_lib-delete path:lib/pkgconfig/pango.pc:pango
      configure.args-delete --with-pangocairo
      configure.args-append --without-pangocairo
      }

      Variant: no_x11 requires no_pangocairo {
      depends_lib-delete port:xorg-libXaw
      configure.args-append --without-x
      }

      Variant: gui description {Obsolete; install graphviz-gui port instead} {
      pre-configure {
      set newport graphviz-gui-devel
      if {${os.major} < 9} {
      set newport graphviz-oldgui
      }
      ui_msg "The +gui variant is obsolete. Please install the ${newport} port instead."
      }
      }

      post-destroot {
      # Make the configuration file that makes the plugins work.
      system "GVBINDIR=${destroot}${prefix}/lib/graphviz DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/dot -c"
      }

      pre-install {
      # Remove old configuration files left behind by old versions of this port.
      foreach file [glob -nocomplain -directory ${prefix}/lib/graphviz config*] {
      delete ${file}
      }
      }

      # keep livecheck in sync between graphviz-devel and graphviz-gui-devel
      livecheck.type regex
      livecheck.url ${homepage}Download_source.php
      livecheck.regex ${my_name}-(\[0-9\]+\\.\[0-9\]*\[13579\](\\.\[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-devel
      % sudo port install graphviz-devel
      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-devel
      ---> Verifying checksum for graphviz-devel
      ---> Extracting graphviz-devel
      ---> Configuring graphviz-devel
      ---> Building graphviz-devel with target all
      ---> Staging graphviz-devel into destroot
      ---> Installing graphviz-devel
    - 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-devel with these commands:
      %  man graphviz-devel
      % apropos graphviz-devel
      % which graphviz-devel
      % locate graphviz-devel

     Where to find more information:

    Darwin Ports



    Lightbox this page.