source: trunk/dports/science/cdf/Portfile @ 28632

Last change on this file since 28632 was 28632, checked in by gwright@…, 13 years ago

New port: CDF 31, the Common Data Format from NASA Goddard Space Flight Center.

File size: 1.6 KB
Line 
1# $Id: Portfile 22908 2007-03-18 17:04:14Z takanori@macports.org $
2
3PortSystem 1.0
4name            cdf
5version         31
6maintainers     gwright@macports.org
7platforms       darwin
8categories      science
9
10description     CDF: Common Data Format
11long_description        \
12                The Common Data Format (CDF) is a self-describing data  \
13                format for the storage and manipulation of scalar and   \
14                multidimensional data in a platform and discipline      \
15                independent fashion.
16
17homepage        http://cdf.gsfc.nasa.gov/
18master_sites    ftp://rumba.gsfc.nasa.gov/pub/cdf/dist/${name}${version}/unix
19
20distfiles       ${name}${version}-dist-all${extract.suffix}
21
22checksums       sha1 dfef1275fb4f7966633f6e6ca331b06ee7fc48f0
23
24depends_build   port:gcc42
25
26fetch.use_epsv  no
27configure       { }
28worksrcdir      ${name}${version}-dist
29
30platform darwin i386 {
31                  global cdf_arch
32                  set cdf_arch i386
33}
34
35platform darwin powerpc {
36                  global cdf_arch
37                  set cdf_arch ppc
38                }
39
40patchfiles      patch-Makefile
41
42build           {
43                  system "make OS=macosx ENV=${cdf_arch} FORTRAN=yes FC=gfortran-mp-4.2 all"
44                }
45
46destroot        {
47                  reinplace "s|(INSTALLDIR)/bin/definitions.B|/${prefix}/bin/definitions.B|" ${worksrcpath}/Makefile
48                  reinplace "s|(INSTALLDIR)/bin/definitions.C|/${prefix}/bin/definitions.C|" ${worksrcpath}/Makefile
49                  reinplace "s|(INSTALLDIR)/bin/definitions.K|/${prefix}/bin/definitions.K|" ${worksrcpath}/Makefile
50                  system "make INSTALLDIR=${destroot}${prefix} install"
51                }
52
53post-destroot   {
54                  reinplace "s|${destroot}${prefix}|${prefix}|" ${destroot}${prefix}/bin/definitions.B
55                  reinplace "s|${destroot}${prefix}|${prefix}|" ${destroot}${prefix}/bin/definitions.C
56                  reinplace "s|${destroot}${prefix}|${prefix}|" ${destroot}${prefix}/bin/definitions.K
57                }
58
Note: See TracBrowser for help on using the repository browser.