Triangle version 1.6 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    triangle  most recent diff


    version 1.6

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


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

      PortSystem 1.0

      Name: triangle
      Version: 1.6
      Revision: 2
      Category: science
      Maintainers: jwa openmaintainer
      Description: A Two-Dimensional Quality Mesh Generator and Delaunay Triangulator
      Long Description: Triangle generates exact Delaunay triangulations, constrained Delaunay triangulations, conforming Delaunay triangulations, Voronoi diagrams, and high-quality triangular meshes. The latter can be generated with no small or large angles, and are thus suitable for finite element analysis.

      Platform: darwin

      Homepage: http://www.cs.cmu.edu/~quake/triangle.html
      Master Sites: http://www.netlib.org/voronoi/
      distname ${name}

      worksrcdir ${name}

      Checksums: md5 10aff8d7950f5e0e2fb6dd2e340be2c9 sha1 63d11e0b5bf097eb946a4da4ee18ddf279e16fc4 rmd160 12be39ae4e34fc14ef3f9982e28a242abe200307

      use_zip yes

      post-extract {
      file mkdir ${worksrcpath}
      eval file rename [glob -directory ${workpath} \[A-s\]* t*.?] ${worksrcpath}
      reinplace "s/-DLINUX//" ${worksrcpath}/makefile
      reinplace "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/makefile
      }

      post-configure {
      reinplace "s|CC = cc|CC = ${configure.cc}|g" ${worksrcpath}/makefile
      }

      depends_lib port:xorg-libX11

      use_configure no

      destroot {
      }

      destroot.destdir BINDIR=${destroot}${prefix}/bin

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} ${destroot}${prefix}/bin
      eval xinstall -m 644 -W ${worksrcpath} A.poly README ${destroot}${prefix}/share/doc/${name}
      xinstall -m 755 -W ${worksrcpath} triangle showme ${destroot}${prefix}/bin
      }

      livecheck.type regex
      livecheck.url ${homepage}
      livecheck.regex Version (1\.\[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/triangle
      % sudo port install triangle
      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 triangle
      ---> Verifying checksum for triangle
      ---> Extracting triangle
      ---> Configuring triangle
      ---> Building triangle with target all
      ---> Staging triangle into destroot
      ---> Installing triangle
    - 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 triangle with these commands:
      %  man triangle
      % apropos triangle
      % which triangle
      % locate triangle

     Where to find more information:

    Darwin Ports



    Lightbox this page.