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

    version 4.0.1

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


      The metis Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: metis
      Version: 4.0.1
      Category: math
      Platform: darwin
      Maintainers: nomaintainer
      Description: A package for unstructured graph partitioning
      Long Description: METIS is a set of programs for partitioning graphs and for producing fill reducing orderings for sparse matrices. The algorithms implemented by METIS are based on the multilevel graph partitioning scheme described in \[KK95a\] and \[KK95e\]. METIS provides high quality partitions, is extremely fast, and produces low fill orderings.

      Homepage: http://www-users.cs.umn.edu/~karypis/metis/metis/
      Master Sites: http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/ freebsd

      # File name did not change from versions 4.0.0 -> 4.0.1.
      dist_subdir ${name}/${version}
      distname ${name}-[join [lrange [split ${version} .] 0 1] .]
      Checksums: sha1 580568308e1fa40e5a7a77cacbf27f865d6c01af

      Patch Files: patch-Makefile.diff

      build.target

      # Prevent -lmetis from finding library ${prefix}/lib
      configure.ldflags-delete -L${prefix}/lib

      set ver0 [join [lrange [split ${version} .] 0 0] .]
      set ver1 [join [lrange [split ${version} .] 0 1] .]

      configure {
      # ensure that the correct compiler and compiler options are used.
      reinplace "s|CC = .*|CC = ${configure.cc}|" ${worksrcpath}/Makefile.in
      reinplace "s|OPTFLAGS = .*|OPTFLAGS = ${configure.cflags}|" ${worksrcpath}/Makefile.in
      if { [info exists configure.ldflags] } {
      reinplace "s|LDOPTIONS = .*|LDOPTIONS = ${configure.ldflags}|" ${worksrcpath}/Makefile.in
      }

      reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/Makefile
      reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/Lib/Makefile
      reinplace "s|__COMPAT_VER__|${ver0}|g" ${worksrcpath}/Lib/Makefile
      }

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/include/metis ${destroot}${prefix}/share/doc/${name}
      xinstall -m 755 -W ${worksrcpath} graphchk kmetis mesh2dual mesh2nodal oemetis onmetis partdmesh partnmesh pmetis ${destroot}${prefix}/bin
      xinstall -W ${worksrcpath}/Lib -m 644 defs.h macros.h metis.h proto.h rename.h struct.h ${destroot}${prefix}/include/metis
      reinplace "s,#include ,#include ," ${destroot}${prefix}/include/metis/metis.h
      reinplace "s,#include ,#include ," ${destroot}${prefix}/include/metis/metis.h
      reinplace "s,#include ,#include ," ${destroot}${prefix}/include/metis/metis.h
      reinplace "s,#include ,#include ," ${destroot}${prefix}/include/metis/metis.h
      reinplace "s,#include ,#include ," ${destroot}${prefix}/include/metis/metis.h
      xinstall -m 644 ${worksrcpath}/libmetis.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/Doc/manual.ps ${destroot}${prefix}/share/doc/${name}

      xinstall -m 0755 ${worksrcpath}/libmetis.dylib ${destroot}${prefix}/lib/libmetis.${version}.dylib
      ln -s libmetis.${version}.dylib ${destroot}${prefix}/lib/libmetis.dylib
      ln -s libmetis.${version}.dylib ${destroot}${prefix}/lib/libmetis.${ver0}.dylib
      ln -s libmetis.${version}.dylib ${destroot}${prefix}/lib/libmetis.${ver1}.dylib
      }

      livecheck.type regex
      livecheck.url http://glaros.dtc.umn.edu/gkhome/metis/metis/changes
      livecheck.regex {Ver: ([0-9.]+),}

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.