| 1 | # $Id: Portfile,v 1.2 2005/10/19 08:10:15 blb Exp $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | name triangle |
|---|
| 5 | version 1.6 |
|---|
| 6 | categories science |
|---|
| 7 | maintainers jyrki.wahlstedt@hut.fi |
|---|
| 8 | description A Two-Dimensional Quality Mesh Generator and Delaunay Triangulator |
|---|
| 9 | long_description Triangle generates exact Delaunay triangulations, \ |
|---|
| 10 | constrained Delaunay triangulations, conforming Delaunay \ |
|---|
| 11 | triangulations, Voronoi diagrams, and high-quality triangular \ |
|---|
| 12 | meshes. The latter can be generated with no small or large \ |
|---|
| 13 | angles, and are thus suitable for finite element analysis. |
|---|
| 14 | |
|---|
| 15 | platforms darwin |
|---|
| 16 | |
|---|
| 17 | homepage http://www.cs.cmu.edu/~quake/triangle.html |
|---|
| 18 | master_sites http://cm.bell-labs.com/netlib/voronoi/ |
|---|
| 19 | distname ${name}.shar |
|---|
| 20 | |
|---|
| 21 | worksrcdir ${name} |
|---|
| 22 | |
|---|
| 23 | checksums sha1 b581366c09340f33c634eb2bb724881924fe87a3 |
|---|
| 24 | |
|---|
| 25 | extract.suffix .gz |
|---|
| 26 | extract.cmd gzip |
|---|
| 27 | extract.pre_args -dc |
|---|
| 28 | extract.post_args "| sh" |
|---|
| 29 | |
|---|
| 30 | post-extract { |
|---|
| 31 | cd ${workpath} |
|---|
| 32 | file mkdir ${worksrcdir} |
|---|
| 33 | eval file rename [glob \[A-s\]* t*.?] ${worksrcdir} |
|---|
| 34 | reinplace "s/-DLINUX//" ${worksrcdir}/makefile |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | depends_lib lib:libX11.6:XFree86 |
|---|
| 38 | |
|---|
| 39 | use_configure no |
|---|
| 40 | |
|---|
| 41 | destroot { |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | destroot.destdir BINDIR=${destroot}/${prefix}/bin |
|---|
| 45 | |
|---|
| 46 | post-destroot { |
|---|
| 47 | xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} \ |
|---|
| 48 | ${destroot}/${prefix}/bin |
|---|
| 49 | eval xinstall -m 644 -W ${worksrcpath} A.poly README ${destroot}/${prefix}/share/doc/${name} |
|---|
| 50 | xinstall -m 755 -W ${worksrcpath} triangle showme ${destroot}/${prefix}/bin |
|---|
| 51 | } |
|---|