Ticket #11543: Portfile

File Portfile, 1.3 KB (added by takeshi@…, 18 years ago)
Line 
1PortSystem 1.0
2name            netcdf
3version         3.6.2
4revision      0
5maintainers     fulton@cmu.edu
6platforms       darwin
7categories      science
8
9description     NetCDF - Network Common Data Form
10long_description        NetCDF is an interface \
11                        for array-oriented data access and a library that \
12                        provides an implementation of the interface. The \
13                        netCDF library also defines a machine-independent \
14                        format for representing scientific data. Together, \
15                        the interface, library, and format support the \
16                        creation, access, and sharing of scientific data. \
17                        The netCDF software was developed at the Unidata \
18                        Program Center in Boulder, Colorado.
19
20homepage        http://unidata.ucar.edu/packages/netcdf/
21
22master_sites    ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
23                ftp://www.gfd-dennou.org/arch/netcdf/unidata-mirror/
24checksums       sha1 ff2d11d2708df08a2370999b19e2c277607afc06
25use_bzip2 yes
26
27configure.env CPPFLAGS="-DNDEBUG -Df2cFortran" \
28              CXXFLAGS="-O2 -fno-common" \
29              CFLAGS="-O2 -fno-common"
30
31destroot.destdir        prefix=${destroot}${prefix} \
32                        MANDIR=\\\${prefix}/share/man
33
34post-destroot {
35        file delete -force ${destroot}${prefix}/share/man/whatis.db
36}
37
38variant g95 {
39        depends_build        port:g95
40        configure.env-append FC=${prefix}/bin/g95 \
41                       FCFLAGS=-O2
42}