source: trunk/dports/science/vapor/Portfile

Last change on this file was 147494, checked in by mmoll@…, 18 months ago

hdf5: update to version 1.10.0, bump revision of ports that depend on hdf5 and need to be rebuilt. closes #51062

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 147494 2016-04-05 20:52:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                vapor
7version             2.2.4
8revision            11
9categories          science
10maintainers         nomaintainer
11description         interactive 3D scientific visualization environment
12long_description    VAPOR is the Visualization and Analysis Platform \
13                    for Ocean, Atmosphere, and Solar Researchers. \
14                    VAPOR provides an interactive 3D visualization environment \
15                    that runs on most UNIX and Windows systems \
16                    equipped with modern 3D graphics cards.
17homepage            http://www.vapor.ucar.edu/
18platforms           darwin
19master_sites        https://www.vapor.ucar.edu/sites/default/files/
20distname            ${name}-${version}-src
21
22checksums           rmd160  a690f7f587f858195db8bdbb6736ccb4f5ba8626 \
23                    sha256  e43721801c89dc31766ae9304768670f24bea022690cefdd5cc73684249999af
24
25depends_build       port:gmake
26
27depends_lib         port:assimp2 \
28                    port:expat \
29                    port:glew \
30                    port:hdf5 \
31                    port:libgeotiff \
32                    port:netcdf \
33                    port:proj \
34                    port:py27-numpy \
35                    port:py27-scipy \
36                    port:qt4-mac \
37                    port:udunits2
38
39patchfiles          patch-options.mk.diff \
40                    patch-make-config-Darwin.mk.diff
41
42use_configure       no
43
44post-configure {
45    reinplace "s|@@MP_INSTALL_PREFIX@@|${destroot}${prefix}|g" ${worksrcpath}/options.mk
46    reinplace "s|@@MP_PREFIX@@|${prefix}|g" ${worksrcpath}/options.mk ${worksrcpath}/make/config/Darwin.mk
47    reinplace "s|@@MP_CC@@|${configure.cc}|" ${worksrcpath}/options.mk
48    reinplace "s|@@MP_CXX@@|${configure.cxx}|" ${worksrcpath}/options.mk
49    reinplace "s|-F.*/lib|-F${prefix}/Library/Frameworks|" ${worksrcpath}/apps/vaporgui/Makefile ${worksrcpath}/apps/asciitf2vtf/Makefile
50    if {${build_arch} eq "x86_64"} {
51        set f [open ${worksrcpath}/site.mk "w"]
52        puts $f "MACHTYPE=x86_64"
53        close $f
54    }
55}
56
57use_parallel_build  no
58
59build.cmd           gmake
60destroot.cmd        gmake
61
62post-destroot {
63    file delete -force ${destroot}${prefix}/share/udunits
64}
65
66universal_variant   no
67
68livecheck.type      regex
69livecheck.url       ${homepage}
70livecheck.regex     "Version (\\d+(?:\\.\\d+)*) of VAPOR"
Note: See TracBrowser for help on using the repository browser.