source: trunk/dports/gis/terra/Portfile

Last change on this file was 134561, checked in by jeremyhu@…, 2 years ago

misc: Revbump dependents of freeglut

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 134561 2015-03-30 08:46:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                terra
7version             0.7
8revision            2
9
10categories          gis science
11maintainers         gmail.com:tlockhart1976 openmaintainer
12
13description         Generate polygonal approximations of terrains and other height fields.
14
15long_description \
16Generate polygonal approximations of terrains and other height fields. \
17Terra is based on algorithms described in: \
18Fast Polygonal Approximation of Terrains and Height Fields \
19by Michael Garland and Paul Heckbert (Technical Report CMU-CS-95-181).
20
21license             Public Domain
22platforms           darwin
23
24homepage            http://mgarland.org/software/scape.html
25master_sites        http://mgarland.org/dist/
26
27checksums           rmd160  885639282ffe5244f5289ef3f453390c8acdb30f \
28                    sha256  22470e13e1f0659d23dbf7e0ecbfd8f6490bcd1d0a953537c1dfec18f4df3bd7
29
30depends_lib         port:freeglut
31
32worksrcdir          ${name}
33patch.pre_args      -p1
34patchfiles          patch-compiler.diff patch-opengl.diff
35
36post-patch {
37    reinplace -E "s,@CC@,${configure.cc},g" ${worksrcpath}/Makefile
38    reinplace -E "s,@CXX@,${configure.cxx},g" ${worksrcpath}/Makefile
39    reinplace -E "s,@OPTFLAGS@,${configure.optflags},g" ${worksrcpath}/Makefile
40    reinplace -E "s,@PREFIX@,${prefix},g" ${worksrcpath}/Makefile
41}
42
43use_configure       no
44
45destroot {
46    xinstall -m 755 ${worksrcpath}/terra ${destroot}${prefix}/bin/terra
47    xinstall -m 755 ${worksrcpath}/xterra ${destroot}${prefix}/bin/xterra
48
49    # documentation
50    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
51    xinstall -m 644 ${worksrcpath}/README.html ${destroot}${prefix}/share/${name}
52    xinstall -m 644 ${worksrcpath}/crater.pgm ${destroot}${prefix}/share/${name}
53}
Note: See TracBrowser for help on using the repository browser.