source: trunk/dports/science/grads2/Portfile @ 91551

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

grads: revamped to 2.0.1.
grads2: set to nomaintainer.
grads2 was created to take advantages of new features
using the development version from OpenGrADS project.
grads from IGES has released the non-alpha non-beta version
with the new features of GrADS 2
so I decided to update from 1.9b4 to 2.0.1.
grads2 is kept as it is.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 91551 2012-04-05 00:58:49Z takeshi@macports.org $
3
4PortSystem          1.0
5
6name                grads2
7version             2.0.a9.oga.1
8revision            3
9platforms           darwin
10maintainers         nomaintainer
11categories          science
12description         interactive visualization tool for earth science data
13master_sites        sourceforge:opengrads
14distname            grads-${version}-bundle
15worksrcdir          grads-${version}
16checksums           md5     d8f11e55f4d1f43eedb59e81cac177c4 \
17                    sha1    b54c63c3124765561426453a5e13148d046acb09 \
18                    rmd160  9b3cec052c57cb13e406242b9b516c4884209087
19homepage            http://www.opengrads.org/
20long_description   \
21    The Grid Analysis and Display System (GrADS) is an interactive     \
22    desktop tool that is used for easy access, manipulation, and       \
23    visualization of earth science data. The format of the data may    \
24    be either binary, GRIB, NetCDF, or HDF-SDS (Scientific Data Sets). \
25    GrADS has been implemented worldwide on a variety of commonly used \
26    operating systems and is freely distributed over the Internet.
27
28depends_lib         port:readline   port:rx         \
29                    port:netcdf     port:udunits                    \
30                    port:hdf4       port:gd2        port:libnc-dap  \
31                    port:gadap      port:wgrib2                     \
32                    port:curl       port:libgeotiff port:shapelib
33depends_build       port:pkgconfig
34
35patchfiles          patch-configure.diff
36post-patch {
37    reinplace "s|png12|png14|g" ${worksrcpath}/configure
38}
39
40if {${configure.compiler}=="clang"} {
41    configure.compiler llvm-gcc-4.2
42}
43configure.env-append    SUPPLIBS="${prefix}"
44configure.args          --with-readline                             \
45                        --enable-dyn-supplibs                       \
46                        --with-nc --with-dap                        \
47                        --with-netcdf=${prefix}                     \
48                        --with-geotiff                              \
49                        --with-x --with-printim --without-gui       \
50                        --with-shp                                  \
51                        --program-suffix="-2"
52
53test.run            yes
54test.target         check
55
56post-destroot {
57    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
58    eval xinstall -m 644 [glob -directory ${worksrcpath}/data *.dat *res] \
59        ${destroot}${prefix}/share/${name}
60    xinstall -d -m 755 ${destroot}${prefix}/share/${name}/tables
61    eval xinstall -m 644 [glob -directory ${worksrcpath}/data/tables *] \
62        ${destroot}${prefix}/share/${name}/tables
63}
64
65platform darwin 8 {
66    depends_lib-delete      libnc-dap
67    configure.args-delete   --with-dap
68    configure.args-append   --without-dap
69}
Note: See TracBrowser for help on using the repository browser.