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

    version 10

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


      # -*- 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 newmat Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: newmat
      Version: 10
      Category: math
      Maintainers: jameskyle

      Description: This C++ library is intended for scientists and engineers who need to manipulate a variety of types of matrices using standard matrix operations.

      Long Description: This C++ library is intended for scientists and engineers who need to manipulate a variety of types of matrices using standard matrix operations. Emphasis is on the kind of operations needed in statistical calculations such as least squares, linear equation solve and eigenvalues. It supports matrix types,e.g., Matrix (rectangular matrix), UpperTriangularMatrix, LowerTriangularMatrix, DiagonalMatrix, SymmetricMatrix, BandMatrix, UpperBandMatrix, LowerBandMatrix, SymmetricBandMatrix, IdentityMatrix, RowVector, ColumnVector.

      Homepage: http://www.robertnz.net
      Platform: darwin
      Master Sites: http://www.robertnz.net/ftp/
      distname ${name}${version}

      Checksums: md5 cc7408a10ee3d4775fc5f86e523bf56a sha1 91cfcaba03f5fa69a3e3c77a9ce6762f7eb6b963 rmd160 90a396fa888d0f87c345c13262ccad2d9de4adf4

      depends_build port:cmake
      configure.cmd cmake

      configure.pre_args
      configure.args -DCMAKE_INSTALL_PREFIX:PATH=${prefix}

      use_parallel_build yes
      extract.mkdir yes
      pre-configure {
      file copy ${filespath}/CMakeLists.txt ${worksrcpath}
      }

      livecheck.type regex
      livecheck.url ${homepage}/download.html
      livecheck.regex {newmat([0-9.]+).tar.gz.*}
      livecheck.md5 cc7408a10ee3d4775fc5f86e523bf56a

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.