Ticket #8222: Portfile.2

File Portfile.2, 1.4 KB (added by jyrki.wahlstedt@…, 18 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.2 2005/10/19 08:10:15 blb Exp $
2
3PortSystem              1.0
4name                    triangle
5version                 1.6
6categories              science
7maintainers             jyrki.wahlstedt@hut.fi
8description             A Two-Dimensional Quality Mesh Generator and Delaunay Triangulator
9long_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
15platforms               darwin
16
17homepage                http://www.cs.cmu.edu/~quake/triangle.html
18master_sites            http://cm.bell-labs.com/netlib/voronoi/
19distname                ${name}.shar
20
21worksrcdir              ${name}
22
23checksums               sha1 b581366c09340f33c634eb2bb724881924fe87a3
24
25extract.suffix          .gz
26extract.cmd                     gzip
27extract.pre_args        -dc
28extract.post_args       "| sh"
29
30post-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
37depends_lib             lib:libX11.6:XFree86
38
39use_configure           no
40
41destroot        {
42}
43
44destroot.destdir        BINDIR=${destroot}/${prefix}/bin
45
46post-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}