source: trunk/dports/science/triangle/Portfile @ 99741

Last change on this file since 99741 was 99741, checked in by jmr@…, 8 years ago

triangle: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 99741 2012-11-15 16:18:39Z jmr@macports.org $
2
3PortSystem              1.0
4
5name                    triangle
6version                 1.6
7revision                3
8categories              science
9license                 Noncommercial Copyleft
10maintainers             jwa openmaintainer
11description             A Two-Dimensional Quality Mesh Generator and Delaunay Triangulator
12long_description        Triangle generates exact Delaunay triangulations, \
13    constrained Delaunay triangulations, conforming Delaunay \
14    triangulations, Voronoi diagrams, and high-quality triangular \
15    meshes. The latter can be generated with no small or large \
16    angles, and are thus suitable for finite element analysis.
17
18platforms               darwin
19
20homepage                http://www.cs.cmu.edu/~quake/triangle.html
21master_sites            http://www.netlib.org/voronoi/
22distname                ${name}
23
24checksums               md5 10aff8d7950f5e0e2fb6dd2e340be2c9 \
25                        sha1 63d11e0b5bf097eb946a4da4ee18ddf279e16fc4 \
26                        rmd160 12be39ae4e34fc14ef3f9982e28a242abe200307
27
28use_zip                 yes
29
30extract.mkdir           yes
31
32post-patch      {
33    reinplace "s/-DLINUX//" ${worksrcpath}/makefile
34    reinplace "s|/usr/X11R6|${prefix}|g" ${worksrcpath}/makefile
35    reinplace "s|CC = cc|CC = ${configure.cc}|g" ${worksrcpath}/makefile
36    reinplace "s|CSWITCHES = -O|CSWITCHES = ${configure.cflags} ${configure.cc_archflags}|" ${worksrcpath}/makefile
37}
38
39depends_lib             port:xorg-libX11
40
41use_configure           no
42
43destroot        {
44    xinstall -d ${destroot}${prefix}/share/doc/${name}
45    xinstall -m 644 -W ${worksrcpath} A.poly README ${destroot}${prefix}/share/doc/${name}
46    xinstall -W ${worksrcpath} triangle showme ${destroot}${prefix}/bin
47    xinstall -d ${destroot}${prefix}/share/${name}
48    xinstall -m 644 -W ${worksrcpath} triangle.h triangle.c ${destroot}${prefix}/share/${name}
49}
50
51livecheck.type  regex
52livecheck.url   ${homepage}
53livecheck.regex Version (1\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.