suitesparse version 2.4.0 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    suitesparse  most recent diff


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



      # $Id: Portfile 24134 2007-04-17 09:08:34Z ryandesign macports.org $

      PortSystem 1.0
      Name: SuiteSparse
      Version: 2.4.0
      Category: math science
      Maintainers: stechert macports.org
      Platform: darwin
      Description: Sparse matrix routines
      Long Description: SuiteSparse is a single archive that contains all packages authored by Tim Davis.

      Homepage: http://www.cise.ufl.edu/research/sparse/SuiteSparse/
      master_sites http://www.cise.ufl.edu/research/sparse/SuiteSparse/
      distname SuiteSparse-$version
      worksrcdir ${name}

      depends_build port:metis

      checksums md5 30233f0b42e9ea12e47a287f0f50fe47

      patchfiles patch-config patch-macports-metis patch-cholmod-headers

      use_configure no

      pre-configure {
      reinplace "s,METIS_PATH = ../../metis-4.0,METIS_PATH = ${prefix}/include," ${worksrcpath}/UFconfig/UFconfig.mk
      reinplace "s,METIS = ../../metis-4.0/libmetis.a,METIS = ${prefix}/lib/libmetis.a," ${worksrcpath}/UFconfig/UFconfig.mk
      }

      build.target default

      destroot {
      xinstall -m 644 ${worksrcpath}/AMD/Lib/libamd.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/BTF/Lib/libbtf.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/CAMD/Lib/libcamd.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/CCOLAMD/libccolamd.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/CHOLMOD/Lib/libcholmod.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/COLAMD/libcolamd.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/CXSparse/Source/libcxsparse.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/KLU/Lib/libklu.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/KLU/User/libklu_cholmod.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/LDL/libldl.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/UFconfig/xerbla/libcerbla.a ${destroot}${prefix}/lib
      xinstall -m 644 ${worksrcpath}/UMFPACK/Lib/libumfpack.a ${destroot}${prefix}/lib

      xinstall -m 755 -d ${destroot}${prefix}/include/ufsparse

      xinstall -m 644 ${worksrcpath}/AMD/Include/amd.h ${destroot}${prefix}/include/ufsparse
      xinstall -m 644 ${worksrcpath}/BTF/Include/btf.h ${destroot}${prefix}/include/ufsparse
      xinstall -m 644 ${worksrcpath}/CAMD/Include/camd.h ${destroot}${prefix}/include/ufsparse
      xinstall -m 644 ${worksrcpath}/CCOLAMD/ccolamd.h ${destroot}${prefix}/include/ufsparse

      xinstall -m 644 -W ${worksrcpath}/CHOLMOD/Include cholmod.h cholmod_blas.h cholmod_check.h cholmod_cholesky.h cholmod_complexity.h cholmod_config.h cholmod_core.h cholmod_internal.h cholmod_io64.h cholmod_matrixops.h cholmod_modify.h cholmod_partition.h cholmod_supernodal.h cholmod_template.h ${destroot}${prefix}/include/ufsparse

      xinstall -m 644 ${worksrcpath}/COLAMD/colamd.h ${destroot}${prefix}/include/ufsparse
      xinstall -m 644 ${worksrcpath}/CXSparse/Source/cs.h ${destroot}${prefix}/include/ufsparse
      xinstall -m 644 ${worksrcpath}/KLU/Include/klu.h ${destroot}${prefix}/include/ufsparse
      xinstall -m 644 ${worksrcpath}/LDL/ldl.h ${destroot}${prefix}/include/ufsparse
      xinstall -m 644 ${worksrcpath}/UFconfig/UFconfig.h ${destroot}${prefix}/include/ufsparse

      xinstall -m 644 -W ${worksrcpath}/UMFPACK/Include umfpack.h umfpack_col_to_triplet.h umfpack_defaults.h umfpack_free_numeric.h umfpack_free_symbolic.h umfpack_get_determinant.h umfpack_get_lunz.h umfpack_get_numeric.h umfpack_get_symbolic.h umfpack_global.h umfpack_load_numeric.h umfpack_load_symbolic.h umfpack_numeric.h umfpack_qsymbolic.h umfpack_report_control.h umfpack_report_info.h umfpack_report_matrix.h umfpack_report_numeric.h umfpack_report_perm.h umfpack_report_status.h umfpack_report_symbolic.h umfpack_report_triplet.h umfpack_report_vector.h umfpack_save_numeric.h umfpack_save_symbolic.h umfpack_scale.h umfpack_solve.h umfpack_symbolic.h umfpack_tictoc.h umfpack_timer.h umfpack_transpose.h umfpack_triplet_to_col.h umfpack_wsolve.h ${destroot}${prefix}/include/ufsparse
      }

      post-destroot {
      system "ranlib ${destroot}${prefix}/lib/libamd.a"
      system "ranlib ${destroot}${prefix}/lib/libbtf.a"
      system "ranlib ${destroot}${prefix}/lib/libcamd.a"
      system "ranlib ${destroot}${prefix}/lib/libccolamd.a"
      system "ranlib ${destroot}${prefix}/lib/libcholmod.a"
      system "ranlib ${destroot}${prefix}/lib/libcolamd.a"
      system "ranlib ${destroot}${prefix}/lib/libcxsparse.a"
      system "ranlib ${destroot}${prefix}/lib/libklu.a"
      system "ranlib ${destroot}${prefix}/lib/libklu_cholmod.a"
      system "ranlib ${destroot}${prefix}/lib/libldl.a"
      system "ranlib ${destroot}${prefix}/lib/libcerbla.a"
      system "ranlib ${destroot}${prefix}/lib/libumfpack.a"
      }

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

     Where to find more information:

    Darwin Ports



    image test