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

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

triangle: install triangle.h and triangle.c in ${prefix}/share/${name}
ncarg: copy triangle.h and triangle.c from ${prefix}/share/triangle
See #34706

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