Ticket #43154: Portfile

File Portfile, 1.5 KB (added by lockhart (Thomas Lockhart), 10 years ago)

Initial portfile modified to use two patch files. Passes "port lint --nitpick". Does not use the original patch file terra.patches.

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$
3
4PortSystem          1.0
5
6name                terra
7version             0.7
8
9categories          gis science
10maintainers         gmail.com:tlockhart1976 openmaintainer
11
12description         Generate polygonal approximations of terrains and other height fields.
13
14long_description \
15Generate polygonal approximations of terrains and other height fields. \
16Terra is based on algorithms described in: \
17Fast Polygonal Approximation of Terrains and Height Fields \
18by Michael Garland and Paul Heckbert (Technical Report CMU-CS-95-181).
19
20license             Public Domain
21platforms           darwin
22
23homepage            http://mgarland.org/software/scape.html
24master_sites        http://mgarland.org/dist/
25
26checksums           rmd160  885639282ffe5244f5289ef3f453390c8acdb30f \
27                    sha256  22470e13e1f0659d23dbf7e0ecbfd8f6490bcd1d0a953537c1dfec18f4df3bd7
28
29depends_lib         port:freeglut
30
31worksrcdir          ${name}
32patch.pre_args      -p1
33patchfiles          patch-compiler.diff patch-opengl.diff
34use_configure       no
35
36destroot {
37    xinstall -m 755 ${worksrcpath}/terra ${destroot}${prefix}/bin/terra
38    xinstall -m 755 ${worksrcpath}/xterra ${destroot}${prefix}/bin/xterra
39
40    # documentation
41    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
42    xinstall -m 644 ${worksrcpath}/README.html ${destroot}${prefix}/share/${name}
43    xinstall -m 644 ${worksrcpath}/crater.pgm ${destroot}${prefix}/share/${name}
44}